  /* ============================================
           IBSINAI — MINI DESIGN SYSTEM (UI Profesional)
        ============================================ */

        :root {
            --color-primario: #0C4A6E;        /* Azul IBSINAI */
            --color-primario-oscuro: #083952;
            --color-dorado: #FBBF24;
            --color-texto-nav: #ffffff;

            --gris-texto: #0F172A;
            --gris-secundario: #64748B;
            --gris-borde: #E2E8F0;
            --fondo-claro: #F8FAFC;

            --font-principal: 'Inter', sans-serif;
            --font-titulos: 'Poppins', sans-serif;

            --navbar-altura: 72px;
        }

        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

        html, body {
            height: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-principal);
            color: var(--gris-texto);
            background-color: #ffffff;
            padding-top: 90px; /* espacio para navbar fixed-top */
        }
        @media (max-width: 768px) {
            body {
                padding-top: 72px;
            }
        }

        h1, h2, h3, h4, .section-title {
            font-family: var(--font-titulos);
            color: var(--color-primario);
            font-weight: 600;
        }
       
        .section-subtitle {
            font-family: var(--font-principal);
            color: var(--gris-secundario);
        }

        .linea-dorada {
            width: 60px;
            height: 4px;
            background: var(--color-dorado);
            border-radius: 2px;
            margin: 0.6rem auto 1.1rem;
        }

        /* ===== NAVBAR IBSINAI ===== */
        .navbar-ibsinai {
            background-color: #475569; /*rgba(12, 74, 110, 0.85); /*var(--color-primario);*/
            font-family: var(--font-principal);
            height: var(--navbar-altura);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
            z-index: 1030;
        }

        .navbar-ibsinai .navbar-brand {
            color: var(--color-texto-nav);
            font-family: var(--font-titulos);
            font-weight: 600;
            letter-spacing: .06em;
            text-transform: uppercase;
            font-size: 0.95rem;
        }
        .navbar-ibsinai .navbar-brand:hover {
            color: var(--color-texto-nav);
        }
        .navbar-ibsinai .nav-link {
            color: var(--color-texto-nav);
            font-weight: 500;
            padding: 0.55rem 0.9rem;
            position: relative;
        }
        .navbar-ibsinai .nav-link::after {
            content: "";
            position: absolute;
            left: 0.9rem;
            right: 0.9rem;
            bottom: 0.25rem;
            height: 2px;
            background: var(--color-dorado);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .22s ease;
            opacity: 0.9;
        }
        .navbar-ibsinai .nav-link:hover::after,
        .navbar-ibsinai .nav-link.active::after {
            transform: scaleX(1);
        }
        .navbar-ibsinai .nav-link:hover {
            color: #ffffff;
        }
        .navbar-ibsinai .nav-link.active {
            font-weight: 600;
        }
        .navbar-ibsinai .navbar-toggler {
            border-color: rgba(255,255,255,0.4);
        }
        .navbar-ibsinai .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
        @media (max-width: 991.98px) {
            .navbar-ibsinai {
                height: auto;
                padding-top: .35rem;
                padding-bottom: .35rem;
            }
            .navbar-ibsinai .navbar-collapse {
                padding-top: .4rem;
            }
            .navbar-ibsinai .nav-link {
                padding: 0.55rem 0.4rem;
            }
        }

        /* ===== HERO FULLSCREEN ===== */
        /* Reemplaza la regla .hero-fullscreen por esta (o ajústala) */
/* Ajusta la altura del slider por dispositivo */
.hero-fullscreen {
  position: relative;
  height: clamp(320px, 55vh, 700px);
  background: #000; /* el fondo del “letterboxing” */
  color: #fff;
}

.hero-fullscreen .carousel,
.hero-fullscreen .carousel-inner,
.hero-fullscreen .carousel-item {
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ✅ sin distorsión, muestra todo */
  object-position: center;
  background: #000;          /* relleno detrás de la imagen */
  display: block;
}


.carousel-inner .hero-img {
  cursor: zoom-in;
  transition: transform .2s ease;
  transform-origin: center center;
}

.carousel-inner .hero-img.is-zoomed {
  cursor: zoom-out;
  transform: scale(2);        /* ajusta la escala */
}

.carousel-item {
  overflow: hidden; /* contiene la imagen ampliada dentro del slide */
}

.carousel-inner .hero-img {
  cursor: zoom-in;
  transition: transform .2s ease;
  transform-origin: center center;
  will-change: transform;
}

.carousel-inner .hero-img.is-zoomed {
  cursor: zoom-out;            /* cambiará a grab/grabbing en JS al arrastrar */
  transition: transform .05s linear; /* más responsivo al arrastrar */
}
       
        .hero-gradient-top,
        .hero-gradient-bottom {
            position: absolute;
            left: 0;
            right: 0;
            height: 25%;
            pointer-events: none;
        }
        .hero-gradient-top {
            top: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
        }
        .hero-gradient-bottom {
            bottom: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        }
        .hero-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            pointer-events: none;
            padding: 0 1.5rem;
        }
        .hero-overlay-inner {
            max-width: 720px;
        }
        .hero-overlay h1 {
            font-size: clamp(2.2rem, 4vw, 3rem);
            font-weight: 700;
            text-shadow: 0 8px 20px rgba(0,0,0,0.6);
        }
        .hero-overlay p {
            font-size: clamp(1rem, 1.7vw, 1.2rem);
            text-shadow: 0 6px 18px rgba(0,0,0,0.6);
        }
        .hero-overlay .badge {
            background: rgba(15, 118, 110, 0.9);
            font-size: .8rem;
            letter-spacing: .06em;
        }
        .hero-fullscreen .carousel-control-prev,
        .hero-fullscreen .carousel-control-next {
            width: 8%;
        }
        .hero-fullscreen .carousel-indicators [data-bs-target] {
            width: 10px;
            height: 10px;
            border-radius: 999px;
        }

       /* ===== SECCIÓN VIDEOS ===== */
        #videos {
            padding: 3rem 0;
        }
        #videos h2 {
            font-size: 1.8rem;
            font-weight: 700;
        }
        .videos-slider-wrapper {
            max-width: 1400px;
        }
        .video-thumb {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            cursor: pointer;
        }

        /* ===== SECCIÓN LÍDERES (Minimal UI) ===== */
        .section-lideres {
            background:    var(--fondo-claro);
            padding: 3rem 0;
        }
        .section-lideres .section-title {
            font-size: 1.9rem;
        }
        .section-lideres .section-subtitle {
            max-width: 100%;
            margin-inline: auto;
        }
        .lider-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px 18px 22px;
            border: 1px solid var(--gris-borde);
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            transition: transform .18s ease,
                        box-shadow .18s ease,
                        border-color .18s ease;
        }
        .lider-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
            border-color: #cbd5f5;
        }
        .lider-photo-wrap {
            width: 112px;
            height: 112px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid #e0f2fe;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
            margin-bottom: 10px;
        }
        .lider-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .lider-nombre {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--gris-texto);
            margin-bottom: 4px;
        }
        .lider-cargo {
            font-size: 0.9rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--gris-secundario);
        }
        @media (max-width: 576px) {
            .section-lideres {
                padding-top: 1.5rem;
                padding-bottom: 2.5rem;
            }
            .lider-card {
                padding: 20px 16px;
            }
        }

        /* ===== REDES SOCIALES ===== */
        /* ===== Redes sociales más altas ===== */
/* El contenedor manda el alto; el iframe se adapta al 100% */
.redes_sociales .maxheight {
  /* define el alto visible que quieres (ajusta a tu gusto) */
  height: 600px;                 /* desktop */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15,23,42,.18);
  display: flex;
  flex-direction: column;
}

/* Elimina el truco 16:9 para usar altura fija del contenedor */
.redes_sociales .embed-responsive {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 0 !important;
}

/* El iframe llena todo el contenedor */
.redes_sociales .embed-responsive > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsivo */
@media (max-width: 992px) {
  .redes_sociales .maxheight { height: 520px; }
}
@media (max-width: 576px) {
  .redes_sociales .maxheight { height: 420px; }
}

        /* ===== FOOTER ESTILO IBSINAI ===== */
        .sinai-footer {
            margin-top: 40px;
            background: #475569;    /* var(--color-primario);*/
            color: #f1f5f9;
            padding: 50px 0 0 0;
            border-top: 4px solid #0F172A;/* var(--color-dorado);*/
            font-family: var(--font-principal);
        }
        .footer-container {
            width: min(1400px, 92%);
            margin: auto;
            display: grid;
            grid-template-columns: 1fr 1.6fr;
            gap: 40px;
            align-items: center;
        }
        .footer-title {
            font-size: 1.6rem;
            color: #2563EB;/*var(--color-dorado);*/
            margin-bottom: 12px;
            font-weight: 600;
            letter-spacing: .5px;

        }
        .footer-text {
            font-size: 1rem;
            margin-bottom: 12px;
            opacity: .95;
            color:#E2E8F0;
        }
        .footer-map iframe {
            width: 100%;
            height: 350px;
            border-radius: 18px;
            border: 0;
            box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        }
        .footer-bottom {
            background: #475569;/*var(--color-primario-oscuro);*/
            color: #dce7ef;
            margin-top: 40px;
            text-align: center;
            padding: 15px;
            font-size: .9rem;
        }
        @media (max-width: 900px) {
            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .footer-map iframe {
                height: 280px;
            }
        }

        /* Nuevo de Lideres */
        /* Ajustes específicos del carrusel de líderes */
#lideresCarousel .carousel-control-prev,
#lideresCarousel .carousel-control-next {
  width: 7%;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.45));
}

#lideresCarousel .carousel-control-prev-icon,
#lideresCarousel .carousel-control-next-icon {
  background-color: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  background-size: 60% 60%;
}

#lideresCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--gris-secundario);
}

#lideresCarousel .carousel-indicators .active {
  background-color: var(--color-dorado);
}

/* ===== AUDIOS — Player + Lista (UI agradable + compacta + playing) ===== */
.audios-proverbios { background: var(--fondo-claro); }

/* ---------------- LISTA: fondo cálido pergamino ---------------- */
.audios-proverbios .audio-list{
  background: linear-gradient(180deg,#F8FAFC  0%, #E2E8F0 100%);
  border-radius: 18px;
  position: relative;
}
.audios-proverbios .audio-list::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  border:1px solid rgba(251,191,36,.35);
  pointer-events:none;
}
.audios-proverbios .audio-list h4{
  color:#92400e;
  font-weight:600;
}
.audios-proverbios .audio-list .badge{
  background: rgba(251,191,36,.25);
  color:#92400e;
  border:1px solid rgba(251,191,36,.45);
}

/* Padding reducido en card-body de la lista */
.audios-proverbios .audio-list .card-body{ padding: 12px; }
@media (max-width: 576px){
  .audios-proverbios .audio-list .card-body{ padding: 10px; }
}

/* Scroll: más alto + bonito */
.audios-proverbios .audio-scroll{
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scroll-behavior: smooth;

  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,.45) transparent;
}
@media (max-width: 992px){
  .audios-proverbios .audio-scroll{ max-height: 360px; }
}
.audios-proverbios .audio-scroll::-webkit-scrollbar{ width: 10px; }
.audios-proverbios .audio-scroll::-webkit-scrollbar-track{ background: transparent; }
.audios-proverbios .audio-scroll::-webkit-scrollbar-thumb{
  background: rgba(100,116,139,.35);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.audios-proverbios .audio-scroll::-webkit-scrollbar-thumb:hover{
  background: rgba(100,116,139,.55);
}

/* Items compactos */
.audios-proverbios .audio-item{
  width:100%;
  border:1px solid rgba(251,191,36,.25);
  background:#fffdfa;
  border-radius:12px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  text-align:left;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  margin-bottom:8px;
}
.audios-proverbios .audio-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  background:#fffbeb;
  border-color: rgba(251,191,36,.45);
}
.audios-proverbios .audio-item.active{
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border-color: rgba(251,191,36,.55);
  box-shadow: 0 10px 22px rgba(251,191,36,.15);
}
.audios-proverbios .audio-item-title{
  font-weight:600;
  color:#78350f;
  font-size:.88rem;
  line-height:1.15;
}
.audios-proverbios .audio-item-meta{
  margin-top:2px;
  font-size:.72rem;
  color:#9a3412;
  opacity:.92;
}
.audios-proverbios .audio-item-title,
.audios-proverbios .audio-item-meta{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.audios-proverbios .audio-item-icon{
  width:28px;height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: rgba(251,191,36,.22);
  color:#92400e;
  font-weight:700;
  flex:0 0 auto;
}

/* ---------------- PLAYER: cálido IBSINAI ---------------- */
.audios-proverbios .audio-player{
  background:
    radial-gradient(1200px 400px at -10% -30%, rgba(251,191,36,.18), transparent 60%),
    linear-gradient(180deg, #0c4a6e 0%, #083952 100%);
  color:#f8fafc;
  border-radius:20px;
  position:relative;
  overflow:hidden;
}
.audios-proverbios .audio-player::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  border:1px solid rgba(251,191,36,.35);
  pointer-events:none;
}
.audios-proverbios .audio-player .card-body{ padding:26px 26px 22px; }
@media (max-width: 576px){
  .audios-proverbios .audio-player .card-body{ padding:20px; }
}
.audios-proverbios .audio-player .badge{
  background: rgba(251,191,36,.18);
  color:#fde68a;
  border:1px solid rgba(251,191,36,.35);
  letter-spacing:.04em;
}
.audios-proverbios .audio-player h3{ color:#fff; font-weight:600; }
.audios-proverbios .audio-player #audioMeta{ color: rgba(226,232,240,.9); }
.audios-proverbios .audio-player audio{
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  border-radius:10px;
}

/* Ondas */
.audios-proverbios .audio-wave{
  border-radius:14px;
  border:1px dashed rgba(251,191,36,.45);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.92));
  padding:14px;
}
.audios-proverbios .wave-bars{
  display:flex;
  gap:6px;
  align-items:flex-end;
  height:56px;
}
.audios-proverbios .wave-bars span{
  width:6px;height:18px;
  border-radius:8px;
  background: linear-gradient(180deg, #fbbf24, #fde68a);
  box-shadow: 0 4px 10px rgba(251,191,36,.35);
  animation: audWave 1.2s ease-in-out infinite;
  transform-origin: bottom;
  opacity:.9;
}
.audios-proverbios .wave-bars span:nth-child(3n){ animation-delay:.15s; }
.audios-proverbios .wave-bars span:nth-child(4n){ animation-delay:.25s; }
.audios-proverbios .wave-bars span:nth-child(5n){ animation-delay:.35s; }
@keyframes audWave{
  0%,100%{ transform: scaleY(.55); opacity:.55; }
  50%{ transform: scaleY(1.1); opacity:1; }
}
.audios-proverbios .audio-player.is-paused .wave-bars span{
  animation-play-state: paused;
  opacity:.4;
}

/* Botón detener */
.audios-proverbios #btnStopAudio{
  background: rgba(255,255,255,.9);
  color:#0c4a6e;
  border:1px solid rgba(12,74,110,.35);
  font-weight:500;
}
.audios-proverbios #btnStopAudio:hover{ background:#fff; }

/* ---------------- Descargar: dorado pill ---------------- */
.audios-proverbios .audio-player .btn-outline-primary{
  border-radius:999px;
  padding:8px 18px;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
  color:#78350f;
  border:1px solid rgba(251,191,36,.85);
  font-weight:600;
  letter-spacing:.03em;
  box-shadow: 0 6px 14px rgba(251,191,36,.35), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.audios-proverbios .audio-player .btn-outline-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(251,191,36,.45), inset 0 1px 0 rgba(255,255,255,.75);
  color:#78350f;
}
.audios-proverbios .audio-player .btn-outline-primary:active{
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(251,191,36,.35), inset 0 2px 6px rgba(120,53,15,.25);
}
.audios-proverbios .audio-player .btn-outline-primary:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(251,191,36,.45), 0 10px 22px rgba(251,191,36,.35);
}

/* ---------------- Sticky player (desktop) ---------------- */
@media (min-width: 992px){
  .audios-proverbios .audio-player{
    position: sticky;
    top: calc(var(--navbar-altura) + 18px); /* respeta navbar fixed-top */ /* [1](https://itdelicias-my.sharepoint.com/personal/raul_vt_delicias_tecnm_mx/Documents/Archivos%20de%20Microsoft%C2%A0Copilot%20Chat/index.php) */
    z-index: 10;
  }
}

/* ---------------- Animación al cambiar audio ---------------- */
.audios-proverbios .audio-player.is-changing{
  animation: playerWarmPulse .38s ease;
}
.audios-proverbios .audio-player #audioTitle,
.audios-proverbios .audio-player #audioMeta{
  transition: opacity .22s ease, transform .22s ease;
  will-change: opacity, transform;
}
.audios-proverbios .audio-player.is-changing #audioTitle,
.audios-proverbios .audio-player.is-changing #audioMeta{
  opacity:.35;
  transform: translateY(4px);
}
@keyframes playerWarmPulse{
  0%   { transform: translateY(0); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
  50%  { transform: translateY(-1px); box-shadow: 0 18px 45px rgba(251,191,36,.20); }
  100% { transform: translateY(0); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
}

/* ---------------- Reproduciendo (highlight) ---------------- */
.audios-proverbios .audio-item.playing{
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(251,191,36,.75);
  box-shadow: 0 14px 28px rgba(251,191,36,.25);
  position:relative;
}
.audios-proverbios .audio-item.playing::before{
  content:"Reproduciendo";
  position:absolute;
  top:-9px;
  left:12px;
  font-size:.68rem;
  padding:2px 8px;
  border-radius:999px;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  color:#78350f;
  border:1px solid rgba(251,191,36,.85);
}

/* Equalizer mini */
.audios-proverbios .audio-eq{
  display:none;
  width:16px;height:14px;
  gap:2px;
  align-items:flex-end;
  margin-left:6px;
}
.audios-proverbios .audio-eq span{
  display:block;
  width:4px;height:6px;
  border-radius:6px;
  background: linear-gradient(180deg, #fbbf24, #fde68a);
  animation: eqBounce .9s ease-in-out infinite;
  transform-origin: bottom;
  opacity:.9;
}
.audios-proverbios .audio-eq span:nth-child(2){ animation-delay:.12s; height:10px; }
.audios-proverbios .audio-eq span:nth-child(3){ animation-delay:.24s; height:8px; }
.audios-proverbios .audio-item.playing .audio-eq{ display:inline-flex; }

@keyframes eqBounce{
  0%,100%{ transform: scaleY(.55); opacity:.6; }
  50%{ transform: scaleY(1.2); opacity:1; }
}




/*  MEJORAS DE CARRUSEL DE VIDEOS */

/* =========================================: 100%;
  cursor: pointer;
}

/* Mejor experiencia táctil */
#videos .carousel {
  touch-action: pan-y;
}
/*   VIDEOS — MEJORA CARRUSEL MÓVIL
   ========================================= */

/* Grid base */
#videos .videos-grid {
  display: grid;
  gap: 12px;
}

/* 📱 MÓVIL: 1 video por slide */
@media (max-width: 575.98px) {
  #videos .videos-grid {
    grid-template-columns: 1fr;
  }

  #videos .video-thumb {
    border-radius: 14px;
  }

  /* Flechas más grandes y centradas */
  #videos .carousel-control-prev,
  #videos .carousel-control-next {
    width: 14%;
  }

  #videos .carousel-control-prev-icon,
  #videos .carousel-control-next-icon {
    background-size: 70% 70%;
  }

  /* Indicadores más visibles */
  #videos .carousel-indicators {
    margin-top: 1rem;
  }
}

/* 📱📱 TABLET: 2 videos */
@media (min-width: 576px) and (max-width: 991.98px) {
  #videos .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 💻 DESKTOP: 4 videos */
@media (min-width: 992px) {
  #videos .videos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mantener proporción 16:9 correcta */
#videos .video-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  #videos .carousel-control-prev,
  #videos .carousel-control-next {
    display: none;
  }
}



/* =====================================================
   VIDEOS — CARRUSEL LINEAL MÓVIL + SKELETON
   ===================================================== */
/* GRID BASE */
.videos-grid {
  display: grid;
  gap: 16px;
}

/* DESKTOP */
@media (min-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* TABLET */
@media (min-width: 576px) and (max-width: 991px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 575px) {
  .videos-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .video-card {
    width: 92%;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

/* CARD */
.video-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

/* THUMB */
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* PLAY OVERLAY */
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15),
    rgba(0,0,0,.55)
  );
  opacity: .9;
  pointer-events: none;
}

/* SKELETON */
.video-skeleton {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  z-index: -1;
}

@media (max-width: 575px) {
  #videos .videos-grid {
    pointer-events: none;
  }

  #videos .video-card {
    pointer-events: auto;
  }
}




/* ============================
   SNAP PARA CARRUSEL DE VIDEOS
   ============================ */

/* Solo móvil */
@media (max-width: 575px) {

  #videos .carousel-inner {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #videos .carousel-item {
    scroll-snap-align: center;
  }

  /* Asegura ancho completo del slide */
  #videos .carousel-item {
    width: 100%;
  }
}

@media (max-width: 575px) {
  #videos .carousel-inner {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  #videos .carousel-item {
    scroll-snap-align: center;
  }
}

/* ============================
   CURSOR + DRAG UX
   ============================ */
#videosCarousel {
  cursor: grab;
  user-select: none;
}

#videosCarousel.is-dragging {
  cursor: grabbing;
}

@media (max-width: 575px) {
  #videos .videos-grid {
    pointer-events: none;
  }

  #videos .video-card {
    pointer-events: auto;
  }
}
@media (min-width: 576px) {
  #videos .videos-grid {
    pointer-events: auto;
  }
}


/* Mejoras a Proverbios del Día */
/* ============================
   AUDIOS — MEJORA MÓVIL ✅
   (DESKTOP NO SE TOCA)
   ============================ */
@media (max-width: 575.98px) {

  /* Orden vertical natural */
  #audios .row {
    flex-direction: column;
  }

  /* PLAYER */
  #audios .audio-player {
    border-radius: 18px;
  }

  #audios .audio-player .card-body {
    padding: 18px;
  }

  #audios .audio-player h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  /* Audio control más cómodo */
  #audios .audio-player audio {
    height: 42px;
  }

  /* Botones táctiles más grandes */
  #audios #btnStopAudio,
  #audios #audioDownload {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  /* Mensaje de ayuda */
  #audios .audio-player p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  /* LISTA */
  #audios .audio-list {
    border-radius: 18px;
  }

  #audios .audio-list .card-body {
    padding: 16px;
  }

  /* Lista con mejor scroll */
  #audios .audio-scroll {
    max-height: 320px; /* ✅ ideal móvil */
    padding-right: 4px;
  }

  /* Item de audio más fácil de tocar */
  #audios .audio-item {
    padding: 10px 12px;
    border-radius: 14px;
  }

  #audios .audio-item-title {
    font-size: 0.92rem;
  }

  /* Espaciado entre secciones */
  #audios .col-12 {
    margin-bottom: 12px;
  }

}
 

 /* =====================================
   AUDIOS – LISTA COMPACTA EN CELULAR ✅
   (Desktop NO se toca)
   ===================================== */
@media (max-width: 575.98px) {

  /* Contenedor de la lista */
  #audios .audio-list {
    border-radius: 16px;
  }

  /* Scroll más chico y controlado */
  #audios .audio-scroll {
    max-height: 220px;   /* ✅ MÁS CHICO */
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 6px;
  }

  /* Scrollbar elegante */
  #audios .audio-scroll::-webkit-scrollbar {
    width: 6px;
  }

  #audios .audio-scroll::-webkit-scrollbar-thumb {
    background: rgba(100,116,139,.35);
    border-radius: 999px;
  }

  /* Item compacto */
  #audios .audio-item {
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  /* Texto más pequeño */
  #audios .audio-item-title {
    font-size: 0.85rem;
    line-height: 1.15;
  }

  /* Ícono más discreto */
  #audios .audio-item-icon {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  /* Quitar ruido visual extra */
  #audios .audio-item-meta {
    display: none;
  }

  /* Colores Generales */
  /*Primary: */  .color_principal {background-color:#475569; }
  
}