/* ==========================================================
   AURASUR – TARJETAS DE EVENTOS (GRID)
   ========================================================== */

/* Wrapper general */
.aurasur-event-cards-wrapper {
  width: 100%;
}

/* Home: centrado dentro del hero (igual que archive en padding para que se vea igual) */
.aurasur-event-cards-wrapper--home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; /* <-- CLAVE: igualar a /proximos-eventos/ */
}

/* Archive: centrado + padding lateral */
.aurasur-event-cards-wrapper--archive {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

/* LIVE: mismo layout que archive */
.aurasur-event-cards-wrapper--live {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

/* ==========================================================
   FILTROS (solo /proximos-eventos/)
   ========================================================== */

.aurasur-event-cards__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.aurasur-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels blancos + un poco más grandes */
.aurasur-filter label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #ffffff;
}

/* Selects iguales al input Buscar */
.aurasur-filter__select {
  width: 100%;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.aurasur-filter__select:focus {
  border-color: #006bed;
}

/* Responsive filtros */
@media (max-width: 640px) {
  .aurasur-event-cards__filters {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================
   GRID DE TARJETAS
   ========================================================== */

.aurasur-event-cards {
  display: grid;
  gap: 24px;
}

/* Escritorio: 3 columnas */
@media (min-width: 1025px) {
  .aurasur-event-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet: 2 columnas */
@media (max-width: 1024px) and (min-width: 641px) {
  .aurasur-event-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: 1 columna */
@media (max-width: 640px) {
  .aurasur-event-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   TARJETA INDIVIDUAL
   ========================================================== */

.aurasur-event-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative; /* para el badge */
}

/* Contenido */
.aurasur-event-card__body {
  padding: 24px 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Título */
.aurasur-event-card__title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: #000000;
  text-align: center;
}

/* Fecha principal (inscripciones hasta) */
.aurasur-event-card__date {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #006bed;
  margin: 0 0 8px;
  text-align: center;
}

/* Imagen dentro de la tarjeta, debajo de la fecha */
.aurasur-event-card__image--inner {
  margin: 0 auto 14px;
  width: 100%;
  max-width: 160px; /* límite razonable (evita “gigante” en home) */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* IMPORTANTÍSIMO:
   Evita que Elementor/Astra fuerce el logo a “100% ancho” */
.aurasur-event-card__image--inner img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 120px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

/* Texto de detalle (Lugar, Fecha, Organizador, Disciplina) */
.aurasur-event-card__excerpt {
  font-size: 14px;
  line-height: 1.35;
  color: #000000;
  margin: 0 0 3px; /* un poco más junto */
}

/* Compacto en HOME y ARCHIVE (para que se vean IGUAL) */
.aurasur-event-cards-wrapper--archive .aurasur-event-card__date,
.aurasur-event-cards-wrapper--archive .aurasur-event-card__excerpt,
.aurasur-event-cards-wrapper--home .aurasur-event-card__date,
.aurasur-event-cards-wrapper--home .aurasur-event-card__excerpt {
  margin-bottom: 3px;
}

/* ==========================================================
   BADGE EN VIVO / FINALIZADO (solo tarjetas live)
   ========================================================== */

.aurasur-live-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(0,0,0,0.12);
  z-index: 5;
}

.aurasur-live-badge__text{ color: #000000; }

.aurasur-live-badge__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 0 rgba(255,0,0,0.0);
}

@keyframes aurasurPulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,0,0,0.55); }
  70%  { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255,0,0,0.0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,0,0,0.0); }
}

.aurasur-live-badge--live .aurasur-live-badge__dot{
  animation: aurasurPulse 1.2s infinite;
}

.aurasur-live-badge--final{
  background: rgba(235,235,235,0.95);
  border-color: rgba(0,0,0,0.10);
}

.aurasur-live-badge--final .aurasur-live-badge__dot{
  background: #9e9e9e;
  animation: none;
}

.aurasur-live-badge__check{
  font-weight: 900;
  color: #000000;
  margin-left: 2px;
}

/* ==========================================================
   BOTÓN INSCRÍBETE / VER RESULTADOS (MISMO HOVER EN TODO)
   ========================================================== */

.aurasur-event-card__actions {
  margin-top: auto;
  text-align: center;
}

.aurasur-event-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  border-radius: 6px;

  background: #006bed !important;
  color: #ffffff !important;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;

  border: 2px solid #006bed !important; /* default azul */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  transition: all 0.18s ease;

  width: auto; /* ancho al texto */
}

/* Hover: TODO blanco, SIN filo azul */
.aurasur-event-card__btn:hover {
  background: #ffffff !important;
  color: #006bed !important;
  border-color: #ffffff !important; /* <-- quita el filo azul */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Evitar outline azul del navegador/tema */
.aurasur-event-card__btn:focus,
.aurasur-event-card__btn:focus-visible,
.aurasur-event-card__btn:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ffffff !important;
}

/* ==========================================================
   ESTADO VACÍO / BOTÓN "MÁS EVENTOS" (AZUL + MISMO HOVER)
   ========================================================== */

.aurasur-event-cards__empty {
  text-align: center;
  font-size: 14px;
  color: #444444;
}

.aurasur-event-cards__footer {
  margin-top: 32px;
  text-align: center;
}

.aurasur-event-cards__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 32px;
  border-radius: 10px;

  background: #006bed !important;
  color: #ffffff !important;

  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  border: 2px solid #006bed !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;

  width: auto; /* ancho al texto */
}

/* Hover: blanco total, SIN filo azul */
.aurasur-event-cards__more-btn:hover {
  background: #ffffff !important;
  color: #006bed !important;
  border-color: #ffffff !important; /* <-- quita el filo azul */
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.aurasur-event-cards__more-btn:focus,
.aurasur-event-cards__more-btn:focus-visible,
.aurasur-event-cards__more-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ffffff !important;
}

/* ==========================================================
   LIVE: ESTADO VACÍO (SIN “CAJÓN”)
   ========================================================== */

/* Si por alguna razón algo le puso background/borde al contenedor, lo apagamos */
.aurasur-event-cards-wrapper--live .aurasur-event-cards{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Mensaje principal */
.aurasur-event-cards__empty--live{
  color: #ffffff !important;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  padding: 16px 16px; /* menos “caja” */
}

/* Centrado total */
.aurasur-event-cards-wrapper--live .aurasur-event-cards {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aurasur-live-empty{
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* hints */
.aurasur-live-empty__hint{
  margin: 0 0 10px;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.95 !important;
}

/* Botones live: ancho al texto y mismo hover */
.aurasur-live-empty__btn{
  width: auto !important;
  max-width: 92% !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  white-space: nowrap;
  margin: 0 0 18px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none !important;
}

/* ==========================================================
   OVERRIDE ULTRA-FUERTE: ASTRA/ELEMENTOR
   ========================================================== */

.aurasur-event-cards-wrapper .aurasur-event-card__actions a.aurasur-event-card__btn,
.aurasur-event-cards-wrapper .aurasur-event-card__actions a.aurasur-event-card__btn:link,
.aurasur-event-cards-wrapper .aurasur-event-card__actions a.aurasur-event-card__btn:visited,
.aurasur-event-cards-wrapper .aurasur-event-card__actions a.aurasur-event-card__btn:hover,
.aurasur-event-cards-wrapper .aurasur-event-card__actions a.aurasur-event-card__btn:active,
.aurasur-event-cards-wrapper .aurasur-event-card__actions a.aurasur-event-card__btn:focus {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
}

/* ==========================================================
   FIX: el badge no debe tapar el título (solo LIVE)
   ========================================================== */

.aurasur-event-cards-wrapper--live .aurasur-event-card__body{
  padding-top: 56px;
}

@media (max-width: 640px){
  .aurasur-event-cards-wrapper--live .aurasur-event-card__body{
    padding-top: 62px;
  }
}