
/* =========================================================
   💻 BREAKPOINT: < 1279px (3 CARDS)
========================================================= */
@media (max-width: 1279px) {
  .card2-carrusel {
    max-width: 300px;
  }
  .card2-imagen {
    height: 160px;
    width: 160px;
  }
    .section-banner {
    width: 550px;
  }
}

/* =========================================================
   📱 BREAKPOINT: < 991px (3 CARDS, más pequeñas)
========================================================= */
@media (max-width: 991px) {
  .carrusel-slide {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .card2-carrusel {
    max-width: 280px;
  }
  .card2-imagen {
    height: 150px;
    width: 150px;
  }
  .card2-titulo {
    font-size: 0.8rem;
  }
}

/* =========================================================
   📱 BREAKPOINT: < 768px (Ajustes generales)
========================================================= */
@media (max-width: 768px) {
  .abecedario-container {
    margin: 60px 0;
  }
  .abecedario a {
    font-size: 0.85rem;
    margin: 0.25rem;
    padding: 0.35rem 0.6rem;
  }
  .grid-autores {
    gap: 1.5rem;
  }
  .autor-card {
    flex: 1 1 150px;
    max-width: 180px;
  }
  .autor-imagen {
    height: 110px;
    width: 110px;
  }
      .section-banner {
    width: 450px;
  }
}

/* =========================================================
   📱 BREAKPOINT: < 767px (2 CARDS)
========================================================= */
@media (max-width: 767px) {
  .carrusel-slide {
    gap: 2rem;
    padding: 0 1.5rem;
  }
  .card2-carrusel {
    max-width: 320px;
  }
  .card2-imagen {
    height: 140px;
    width: 140px;
  }
        .section-banner {
    margin-top: 10px;
  }
}

/* =========================================================
   📱 BREAKPOINT: < 650 Texto titulo
========================================================= */

@media (max-width: 650px) {
  .section-subtitle {
    margin-top: 0;
  }
}



/* =========================================================
   📱 BREAKPOINT: < 575px (2 CARDS, más pequeñas)
========================================================= */
@media (max-width: 575px) {
  .carrusel-slide {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .card2-carrusel {
    max-width: 280px;
  }
  .card2-imagen {
    height: 130px;
    width: 130px;
  }
  .card2-titulo {
    font-size: 0.75rem;
    min-height: 2rem;
  }
  .nav-button {
    font-size: 1.3rem;
    height: 35px;
    width: 35px;
  }
  .next-button {
    right: 5px;
  }
  .prev-button {
    left: 5px;
  }
}

/* =========================================================
   📲 BREAKPOINT: < 480px (Grid más pequeño)
========================================================= */
@media (max-width: 480px) {
  .grid-autores {
    gap: 1rem;
  }
  .autor-card {
    flex: 1 1 140px;
    max-width: 160px;
  }
  .autor-imagen {
    height: 100px;
    width: 100px;
  }
  .autor-nombre {
    font-size: 0.85rem;
  }
}

/* =========================================================
   📲 BREAKPOINT: < 469px (VISTA MÓVIL PRINCIPAL)
========================================================= */
@media (max-width: 469px) {
  /* Ocultar carrusel y mostrar hero */

  .presenciales {
    padding: 0
  }
  .carrusel-container,
  .virtuales-grid {
    display: none !important;
  }
  .autores-hero-mobile {
    display: block !important;
    margin: 2rem auto;
    padding: 0px;
    text-align: center;
    width: 100%;
  }
  .autores-hero-mobile img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: auto;
    max-width: 100%;
    width: 100%;
  }
    .section-banner {
    display: none;
  }
.section-subtitle-mobile {
  display: block !important;
   margin-top: -1.5rem;
}


  /* Ajustes de tipografía y espaciado */
  
  .titulo-seccion {
    font-size: clamp(1rem, 4vw, 2rem) !important;
    font-weight: 600;
    margin: 30px 0 50px 0 !important;
  }
  .abecedario-container {
    margin: 50px 0;
  }
  .abecedario a {
    font-size: 0.8rem;
    margin: 0.2rem;
    padding: 0.3rem 0.5rem;
  }
   .carrusel-container,
   .section-subtitle {
    display: none;
  }
  .abecedario-container p {
    font-size: 1.2rem;
    font-weight: 600;
  }
  .abecedario a {
    font-size: 1.2rem;
  }
.presenciales-section {
  position: relative;           /* el marco de referencia */
  width: 100%;
  overflow: hidden;
}
.presenciales-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* 👇 Texto centrado vertical y horizontal */
.presenciales-section p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #fff;
  font-family: var(--fuente-inter);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  text-align: center;
  text-shadow: 1px 2px 2px var(--color-principal);
  background: var(--surface-overlay); 
  backdrop-filter: blur(1px); 
  padding: 0.8em 1.7em;
  border-radius: 0.5rem;
  line-height: 1.5;
  opacity: 0.8;
}
}




/* ========================================================
   AJUSTES RESPONSIVE - MANTENER ALTURAS MÍNIMAS
   ======================================================== */

@media (max-width: 767px) {
  .carrusel-container {
    min-height: 280px;
  }
  
  .carrusel-wrapper {
    min-height: 240px;
  }
}

@media (max-width: 575px) {
  .carrusel-container {
    min-height: 260px;
  }
  
  .carrusel-wrapper {
    min-height: 220px;
  }
  
  .card2-imagen {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 469px) {
  /* En mobile se oculta el carrusel, así que no necesita fixes */
  .carrusel-container {
    min-height: 0;
  }
}