/* ===== ESTILOS PARA TARJETAS DE EXAMEN - OPTIMIZADO MOBILE-FIRST ===== */

/* Main Container */
.exam-main {
  padding: 40px var(--space-3) var(--space-8); /* ← Valor fijo inicial */
  background: linear-gradient(135deg, var(--background-light) 0%, var(--gray-50) 100%);
  min-height: 100vh;
}

.exam-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ===== CONTENEDORES ===== */
#contenedor-niveles,
#contenedor-simulacros {
  padding: 0;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 0.2s;
}

#contenedor-niveles.loaded,
#contenedor-simulacros.loaded {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BANNER ÚNICO DE VALOR ===== */
.banner-hero {
  background: var(--white);
  border: 2px solid #e0f2fe;
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-hero-content {
  max-width: 100%;
}

.banner-hero-title {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.3;
  color: var(--dark-text);
  text-align: center;
}

.banner-hero-benefits {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: #f0f9ff;
  border-radius: var(--radius-lg);
  border-left: 3px solid #3b82f6;
  transition: transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateX(4px);
}

.benefit-highlight {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  border-left: 3px solid #22c55e !important;
}

.benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: var(--text-xs);
}

.benefit-highlight .benefit-icon {
  color: #22c55e !important;
}

.benefit-text {
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--medium-text);
}

.benefit-text strong {
  font-weight: 600;
  color: var(--dark-text);
}

.benefit-highlight .benefit-text strong {
  color: #166534 !important;
}

.banner-hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary:active {
  transform: translateY(0);
}

.banner-hero-secondary {
  font-size: var(--text-xs);
  color: var(--medium-text);
  text-align: center;
}

.banner-hero-secondary a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.banner-hero-secondary a:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* ===== TÍTULO PRINCIPAL ===== */
.titulo-niveles-principal {
  color: var(--dark-text);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 800;
  text-align: center;
  margin: 0 0 var(--space-8);
  line-height: 1.2;
}

.titulo-niveles-principal span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SUBTÍTULO DE CONCURSO ===== */
.subtitulo-concurso {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--primary-dark);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: var(--space-12) 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--primary-light);
}

.subtitulo-concurso i {
  color: var(--primary);
}

/* ===== GRID DE TARJETAS ===== */
.grid-simulacros {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

/* ===== TARJETA DE NIVEL/EXAMEN ===== */
.tarjeta-nivel {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.tarjeta-nivel.fade-in {
  animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tarjeta-nivel:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.tarjeta-nivel:active {
  transform: translateY(-4px);
}

/* Icono de Tarjeta */
.tarjeta-icono {
  width: 80px;
  height: 80px;
  margin: var(--space-8) auto var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-3xl);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
  transition: transform 0.3s ease;
}

.tarjeta-nivel:hover .tarjeta-icono {
  transform: scale(1.1) rotate(5deg);
}

/* Contenido de Tarjeta */
.tarjeta-contenido {
  padding: 0 var(--space-8);
  flex: 1;
  text-align: center;
}

.tarjeta-titulo {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.tarjeta-descripcion {
  font-size: var(--text-sm);
  color: var(--medium-text);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.tarjeta-descripcion strong {
  color: var(--primary);
  font-weight: 600;
}

/* Detalles de Tarjeta */
.tarjeta-detalles {
  list-style: none;
  padding: var(--space-6);
  margin: 0 0 var(--space-6) 0;
  background: var(--background-light);
  border-radius: var(--radius-lg);
  text-align: left;
}

.tarjeta-detalles li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--medium-text);
  margin-bottom: var(--space-3);
}

.tarjeta-detalles li:last-child {
  margin-bottom: 0;
}

.tarjeta-detalles i {
  color: var(--primary);
  font-size: var(--text-base);
  flex-shrink: 0;
  width: 18px;
}

.tarjeta-detalles strong {
  color: var(--dark-text);
  font-weight: 600;
}

/* Badge de cuadernillos */
.badge-cuadernillos {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1px solid #7dd3fc;
  margin-bottom: var(--space-4);
}

.badge-cuadernillos i {
  color: #0369a1;
}

/* Footer de Tarjeta */
.tarjeta-footer {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.btn-ver-simulacros {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.btn-ver-simulacros:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-ver-simulacros:active {
  transform: translateY(0);
}

.btn-ver-simulacros i {
  transition: transform 0.3s ease;
}

.btn-ver-simulacros:hover i {
  transform: translateX(4px);
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
  pointer-events: none;
  border-color: transparent;
}

.skeleton-header,
.skeleton-text,
.skeleton-button {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-lg);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-header {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl);
  margin: var(--space-8) auto var(--space-6);
}

.skeleton-text {
  height: 16px;
  margin: 0 var(--space-8) var(--space-4);
}

.skeleton-text.short {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.skeleton-button {
  height: 44px;
  margin: var(--space-6) var(--space-8) var(--space-8);
  border-radius: var(--radius-full);
}

/* ===== MENSAJE DE ESTADO ===== */
.mensaje-estado {
  text-align: center;
  padding: var(--space-12);
  margin: var(--space-8) auto;
  max-width: 600px;
  border-radius: var(--radius-2xl);
  background: var(--background-light);
  border: 2px solid var(--gray-200);
}

.mensaje-estado i {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  display: block;
}

.mensaje-estado.mensaje-info i {
  color: var(--info);
}

.mensaje-estado.mensaje-error i {
  color: var(--error);
}

.mensaje-estado p {
  font-size: var(--text-lg);
  color: var(--medium-text);
  margin: 0;
}

/* ===== RESPONSIVE TABLET ===== */
@media (min-width: 640px) {
  .grid-simulacros {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  
  .banner-hero-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  .benefit-highlight {
    grid-column: 1 / -1;
  }
}

/* ===== RESPONSIVE DESKTOP ===== */
@media (min-width: 1024px) {
  .exam-main {
    padding-top: calc(var(--space-20) + 40px); /* ← AHORA SÍ AUMENTA */
  }
  
  .grid-simulacros {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
  }
  
  .tarjeta-nivel:hover {
    transform: translateY(-8px);
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .titulo-niveles-principal {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
  }

  .subtitulo-concurso {
    font-size: var(--text-xl);
    margin: var(--space-8) 0 var(--space-4);
  }
  
  .grid-simulacros {
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .tarjeta-icono {
    width: 70px;
    height: 70px;
    font-size: var(--text-2xl);
  }

  .tarjeta-titulo {
    font-size: var(--text-xl);
  }

  .tarjeta-contenido {
    padding: 0 var(--space-6);
  }

  .tarjeta-footer {
    padding: var(--space-4) var(--space-6) var(--space-6);
  }
}

/* ===== OPTIMIZACIÓN DE RENDIMIENTO ===== */
* {
  -webkit-tap-highlight-color: transparent;
}

.tarjeta-nivel,
.btn-ver-simulacros,
.btn-hero-primary {
  -webkit-touch-callout: none;
  user-select: none;
}


/* ===== FILTROS ===== */
.filtros-examenes {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.filtro-grupo {
  margin-bottom: var(--space-6);
}

.filtro-grupo:last-child {
  margin-bottom: 0;
}

.filtro-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: var(--space-3);
}

.filtro-label i {
  color: var(--primary);
}

.input-buscar {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  transition: border-color 0.2s ease;
}

.input-buscar:focus {
  outline: none;
  border-color: var(--primary);
}

.botones-filtro {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn-filtro {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--medium-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filtro:hover {
  background: var(--gray-200);
  border-color: var(--primary-light);
}

.btn-filtro.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--white);
}

.btn-filtro i {
  font-size: var(--text-xs);
}

/* ===== SECCIONES COLAPSABLES POR AÑO ===== */
.seccion-anio {
  margin-bottom: var(--space-6);
}

.anio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--space-4);
}

.anio-header:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.anio-titulo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 700;
}

.anio-titulo i {
  font-size: var(--text-2xl);
}

.anio-contador {
  background: rgba(255, 255, 255, 0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.anio-toggle {
  color: var(--white);
  font-size: var(--text-xl);
  transition: transform 0.3s ease;
}

.anio-header.expandido .anio-toggle {
  transform: rotate(180deg);
}

.examenes-lista {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.examenes-lista.expandido {
  max-height: 10000px;
}

/* ===== ACCIONES DE TARJETA ===== */
.tarjeta-acciones {
  display: flex;
  gap: var(--space-2);
}

.btn-tarjeta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-descargar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
}

.btn-descargar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-empezar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.btn-empezar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.banner-hero-subtitle {
  text-align: center;
  color: var(--medium-text);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.banner-hero-subtitle i {
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .botones-filtro {
    flex-direction: column;
  }
  
  .btn-filtro {
    width: 100%;
    justify-content: center;
  }
  
  .tarjeta-acciones {
    flex-direction: column;
  }
}

/* ===== BOTÓN REGRESAR ===== */
.banner-header-with-back {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.banner-header-with-back .banner-hero-title {
  grid-column: 2;
  text-align: center;
  margin: 0;
}

.banner-header-with-back .btn-back {
  grid-column: 1;
  justify-self: start;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--medium-text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back:hover {
  background: var(--gray-200);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-4px);
}

.btn-back i {
  font-size: var(--text-xs);
}

.banner-hero-title {
  flex: 1;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-header-with-back {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .banner-header-with-back .btn-back {
    grid-column: 1;
    width: 100%;
    justify-content: center;
  }

  .banner-header-with-back .banner-hero-title {
    grid-column: 1;
    text-align: center;
  }
}

/* ===== ESTILOS PARA BOTONES DEL MODAL ===== */
.btn-modal-descargar,
.btn-modal-practicar {
  font-size: 14px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.btn-modal-descargar:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(113, 128, 150, 0.4) !important;
}

.btn-modal-practicar:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
}

/* Ajustes para SweetAlert2 */
.swal2-popup {
  border-radius: 16px !important;
}

.swal2-title {
  font-size: 22px !important;
  font-weight: 700 !important;
}

.swal2-html-container ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.swal2-html-container ul li {
  position: relative !important;
  padding-left: 24px !important;
}

.swal2-html-container ul li:before {
  content: '•' !important;
  position: absolute !important;
  left: 8px !important;
  font-weight: bold !important;
}

/* ═══════════════════════════════════════════════════════════════
   🖼️ ESTILOS PARA TARJETAS CON IMAGEN (tarjeta-simulacro)
═══════════════════════════════════════════════════════════════ */

.tarjeta-simulacro {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--gray-100);
  opacity: 0;
  transform: translateY(20px);
}

.tarjeta-simulacro.fade-in {
  animation: cardFadeIn 0.5s ease forwards;
}

.tarjeta-simulacro:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

/* Imagen de la tarjeta */
.tarjeta-imagen-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--gray-100);
}

.imagen-simulacro {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Contenido de la tarjeta con imagen */
.info-simulacro {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.simulacro-titulo {
  color: var(--dark-text);
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
}

.simulacro-descripcion {
  color: var(--medium-text);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-6) 0;
  flex-grow: 1;
}

/* Meta información */
.simulacro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--background-light);
  border-radius: var(--radius-lg);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--medium-text);
  font-weight: 600;
}

.meta-item i {
  color: var(--primary);
  font-size: var(--text-base);
}

/* Botones específicos para tarjetas con imagen */
.tarjeta-simulacro .btn-tarjeta {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 2px solid transparent;
}

.tarjeta-simulacro .btn-ver {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tarjeta-simulacro .btn-ver:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Responsive para tarjetas con imagen */
@media (max-width: 768px) {
  .tarjeta-imagen-wrapper {
    height: 180px;
  }
  
  .info-simulacro {
    padding: var(--space-5);
  }
  
  .tarjeta-simulacro .tarjeta-acciones {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .tarjeta-simulacro .btn-tarjeta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tarjeta-imagen-wrapper {
    height: 160px;
  }
  
  .simulacro-titulo {
    font-size: var(--text-lg);
  }
  
  .info-simulacro {
    padding: var(--space-4);
  }
  
  .simulacro-meta {
    flex-direction: column;
    gap: var(--space-2);
  }
}


/* ===== CUENTA REGRESIVA ===== */
/* ===== CUENTA REGRESIVA ===== */
.countdown-wrapper {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0;
    text-align: center;
}

.countdown-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--medium-text, #555);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.countdown-label i {
    color: var(--primary, #3498db);
}

.countdown-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap; /* ← nunca rompe en dos filas */
}

.countdown-box {
    background: var(--primary, #3498db);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 52px;
    text-align: center;
}

.countdown-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.countdown-unit {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 3px;
}

.countdown-sep {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary, #3498db);
    line-height: 1;
    padding-bottom: 12px;
}

/* Móvil muy pequeño */
@media (max-width: 380px) {
    .countdown-box {
        min-width: 44px;
        padding: 5px 6px;
    }
    .countdown-num {
        font-size: 18px;
    }
    .countdown-sep {
        font-size: 14px;
    }
}

/* ===== FILTROS DE TIPO (EBR / EBE / EBA) ===== */
.filtros-tipo-wrapper {
  margin-bottom: var(--space-6);
}

.filtros-tipo-botones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-filtro-tipo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--medium-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filtro-tipo:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-filtro-tipo.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Badges de tipo dentro del botón */
.tipo-badge {
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  letter-spacing: 0.5px;
}

.btn-filtro-tipo.active .tipo-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* Colores distintos por tipo (opcional pero útil) */
.tipo-ebr { color: inherit; }
.tipo-ebe { color: inherit; }
.tipo-eba { color: inherit; }

@media (max-width: 480px) {
  .filtros-tipo-botones {
    flex-direction: column;
  }

  .btn-filtro-tipo {
    width: 100%;
    justify-content: center;
  }
}