/* Plus Jakarta Sans (licencia OFL), servida desde /fonts. Un solo archivo cubre los pesos 400–800 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html {
    color-scheme: dark;
    scroll-padding-top: 80px;
    scrollbar-color: #222 #030303;
    scrollbar-width: thin;
}

body {
    overflow-x: hidden;
}

/* Tarjetas con efecto de cristal */
.glass-card {
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

/* Hover solo en dispositivos que lo soportan (no táctiles) */
@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

/* Tipografía */
.glow-text {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.section-title {
    letter-spacing: -.04em;
    line-height: .95;
}

/* Etiqueta pequeña sobre cada título de sección, con una línea antes */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #94a3b8;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, .4);
}

/* Texto de párrafo: el peso 300 se ve débil sobre negro; 400 se lee mejor */
p.font-light,
span.font-light,
a.font-light {
    font-weight: 400;
}

/* Ventana para ver un mensaje sin salir del sitio (la crea main.js) */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.video-modal[hidden] { display: none; }
.video-modal.is-open { opacity: 1; }
.video-modal-fondo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.video-modal-caja {
    position: relative;
    width: min(64rem, 100%);
    transform: translateY(12px) scale(.98);
    transition: transform .4s var(--ease);
}
.video-modal.is-open .video-modal-caja { transform: none; }
.video-modal-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.video-modal-titulo {
    min-width: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-modal-cerrar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .25s, color .25s;
}
.video-modal-cerrar:hover { background: #fff; color: #000; }
.video-modal-marco {
    aspect-ratio: 16 / 9;
    max-height: calc(100svh - 9rem);
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.video-modal-marco iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal-yt {
    display: inline-block;
    margin-top: .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color .25s;
}
.video-modal-yt:hover { color: #fff; }
html.video-abierto { overflow: hidden; }

/* Barra "EN VIVO" (la crea main.js solo cuando hay transmisión) */
.en-vivo {
    position: relative;
    z-index: 60;
    background: #fff;
    color: #000;
}
.en-vivo-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .2em;
    color: #dc2626;
}
.en-vivo-punto {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #dc2626;
    animation: en-vivo-pulso 1.6s ease-in-out infinite;
}
@keyframes en-vivo-pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.en-vivo-titulo {
    min-width: 0;
    font-size: .8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.en-vivo-boton {
    flex-shrink: 0;
    padding: .4rem .9rem;
    border-radius: .6rem;
    background: #000;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    transition: background .25s;
}
.en-vivo-boton:hover { background: #333; }

/* Texto largo del aviso de privacidad (privacidad.html) */
.aviso h2 {
    margin: 2.5rem 0 .75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.aviso h2:first-child { margin-top: 0; }
.aviso p { margin-bottom: 1rem; }
.aviso strong { color: #fff; font-weight: 700; }
.aviso ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.aviso li { margin-bottom: .35rem; }
.aviso a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Encabezado: más compacto y con fondo más sólido al bajar */
#site-header {
    transition: background-color .3s, box-shadow .3s;
}
#site-header.is-scrolled {
    background-color: rgba(3, 3, 3, .96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
#site-header > div > div:first-child {
    transition: height .3s var(--ease);
}
@media (min-width: 640px) {
    #site-header.is-scrolled > div > div:first-child { height: 4rem; }
}

/* Tarjetas de Nosotros: brillo sutil en el borde superior */
#nosotros .glass-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01) 40%), rgba(10, 10, 10, .8);
}
#nosotros .glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    opacity: .5;
    transition: opacity .4s;
}
@media (hover: hover) {
    #nosotros .glass-card:hover::before { opacity: 1; }
}

/* Campos del formulario */
#prayer-form input[type="text"],
#prayer-form input[type="email"],
#prayer-form textarea {
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
#prayer-form input[type="text"]:focus,
#prayer-form input[type="email"]:focus,
#prayer-form textarea:focus {
    background-color: rgba(0, 0, 0, .8);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

/* Enlace "Saltar al contenido": invisible hasta que se llega a él con Tab */
.skip-link {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 200;
    padding: .75rem 1.25rem;
    border-radius: .75rem;
    background: #fff;
    color: #000;
    font-size: .875rem;
    font-weight: 800;
    transform: translateY(-200%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

/* Cajones de Reuniones: borde visible al llegar con el teclado */
#reuniones-carrusel .rq-box:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Foco visible para quien navega con teclado */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: .5rem;
}

/* Aparición suave del contenido al hacer scroll (la clase la pone main.js) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Sección Hero */
.hero-overlay {
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, rgba(3, 3, 3, 0.35), rgba(3, 3, 3, 0.85) 100%),
        linear-gradient(rgba(3, 3, 3, 0.55), rgba(3, 3, 3, 0.75) 60%, #030303);
}

/* Foto en blanco y negro, apenas desenfocada para que el letrero no compita con el título.
   El blanco y negro, el desenfoque y el oscurecido ya vienen en el archivo: si los hiciera el
   navegador (filter) tendría que recalcularlos en cada cuadro del acercamiento, y en celular pesa. */
.hero-bg {
    background-image: url('../imagen/portada.webp');
    background-position: center;
    background-size: cover;
    animation: hero-zoom 30s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-title {
    letter-spacing: -.035em;
}

/* Los tres lemas siempre en una sola fila; en celular la letra se ajusta al ancho para que quepan */
.hero-lemas {
    white-space: nowrap;
    font-size: clamp(8px, 2.5vw, 12px);
    letter-spacing: .08em;
    gap: .45em;
    line-height: 2;
}
@media (min-width: 640px) {
    .hero-lemas { font-size: .75rem; letter-spacing: .2em; gap: .75em; }
}
@media (min-width: 768px) {
    .hero-lemas { font-size: .875rem; }
}

.hero-badge {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.hero-dot {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

.btn-primary {
    transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(255, 255, 255, .12);
    }
}

@keyframes hero-zoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}

/* Navegación */
.nav-link {
    position: relative;
    transition: color .3s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-link.is-active {
    color: #fff;
}

/* Botones de redes sociales */
.social-button {
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}

@media (hover: hover) {
    .social-button:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Carrusel de prédicas */
.sermon-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
}

.sermon-track::-webkit-scrollbar { display: none; }

/* Flechas del carrusel: ocultas en móvil, visibles en desktop */
#sermon-prev,
#sermon-next {
    display: none;
}
@media (min-width: 768px) {
    #sermon-prev,
    #sermon-next {
        display: flex;
    }
}

/* Móvil: casi ancho completo para que se vea un card completo */
.sermon-vcard {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 480px)  { .sermon-vcard { flex: 0 0 288px; } }
@media (min-width: 768px)  { .sermon-vcard { flex: 0 0 300px; } }
@media (min-width: 1024px) { .sermon-vcard { flex: 0 0 320px; } }

/* Skeleton de carga — mismo ancho que las tarjetas reales */
.sermon-card-skel {
    flex: 0 0 calc(100% - 2rem);
    border-radius: 1.5rem;
    background: rgba(10,10,10,.8);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}

@media (min-width: 480px)  { .sermon-card-skel { flex: 0 0 288px; } }
@media (min-width: 768px)  { .sermon-card-skel { flex: 0 0 300px; } }
@media (min-width: 1024px) { .sermon-card-skel { flex: 0 0 320px; } }

.skel-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg,
        rgba(255,255,255,.04) 25%,
        rgba(255,255,255,.08) 50%,
        rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: skel-pulse 1.6s ease-in-out infinite;
}

.skel-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.skel-line {
    height: 13px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(255,255,255,.04) 25%,
        rgba(255,255,255,.08) 50%,
        rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: skel-pulse 1.6s ease-in-out infinite;
}

@keyframes skel-pulse {
    0%,100% { background-position: 200% center; }
    50%     { background-position:   0% center; }
}

/* Modales y Menú móvil */
/*
 * CORRECCIÓN: el display:none original cancelaba las transiciones de CSS
 * porque el navegador elimina el elemento del árbol de renderizado de inmediato,
 * impidiendo cualquier animación de max-height u opacity.
 * Solución: usar visibility:hidden + pointer-events:none para ocultar el menú
 * sin sacarlo del flujo de renderizado, lo que permite que las transiciones funcionen.
 */
.mobile-menu-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-visible {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    html.scroll-smooth { scroll-behavior: auto; }
    .hero-bg { animation: none; transform: scale(1.05); }
    .reveal { opacity: 1; transform: none; transition: none; }
    .video-modal, .video-modal-caja { transition: none; }
    .en-vivo-punto { animation: none; }
}
/* =====================================================================
   REUNIONES — cajones
   Computadora: cuatro cuadros en fila (un poco más altos que anchos);
   el activo se abre a la derecha con su información.
   Celular: la misma idea. Los cuatro cuadros en fila; al tocar uno, se
   abre a lo ancho con su foto y su información a la derecha, y los
   otros se encogen a tiras delgadas (se pueden tocar para cambiar).
   Tocar fuera de los cajones los cierra (ver script en index.html).
   ===================================================================== */
#reuniones-carrusel {
    /* Ancho de cada cuadro: caben 4 cerrados + el panel del abierto (1.45 cuadros) */
    --rq-h: min(15rem, calc((100vw - 4rem) / 5.6));
    --rq-alto-d: calc(var(--rq-h) * 1.3);
    --rq-panel-d: calc(var(--rq-h) * 1.45);
    --rq-ease: cubic-bezier(.22, .61, .36, 1);
}
#reuniones-carrusel .rq-row {
    display: flex;
    justify-content: center;
    gap: .75rem;
    height: var(--rq-alto-d);
    transition: height .9s var(--rq-ease);
}
/* Si el texto del cajón abierto no cabe, la fila crece (el script calcula --rq-alto) */
#reuniones-carrusel.has-active .rq-row {
    height: max(var(--rq-alto-d), var(--rq-alto, 0px));
}
#reuniones-carrusel .rq-box {
    position: relative;
    flex: none;
    width: var(--rq-h);
    height: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: width .9s var(--rq-ease);
}
#reuniones-carrusel .rq-box.is-active {
    width: calc(var(--rq-h) + var(--rq-panel-d));
    cursor: default;
}

/* Fotos y videos de cada cajón (algunos alternan, ej. Íntegros / Únicas) */
#reuniones-carrusel .rq-box > .rq-foto {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--rq-h);
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.8s var(--rq-ease), opacity .9s ease;
}
#reuniones-carrusel .rq-box > img.rq-foto { object-position: center top; }
#reuniones-carrusel .rq-box > .rq-foto:not(.is-visible) { opacity: 0; }
#reuniones-carrusel .rq-box.is-active > .rq-foto { transform: scale(1.06); }

/* Velo para que se lea la etiqueta del día */
#reuniones-carrusel .rq-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.05) 55%);
    transition: opacity .9s ease;
}
#reuniones-carrusel .rq-box.is-active::before { opacity: .55; }

/* Etiqueta del día (píldora) */
#reuniones-carrusel .rq-tab {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.25rem;
    transition: opacity .6s ease;
}
#reuniones-carrusel .rq-tab span {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .7);
    border: 1px solid rgba(255, 255, 255, .25);
    white-space: nowrap;
}
#reuniones-carrusel .rq-box.is-active .rq-tab {
    opacity: 0;
    pointer-events: none;
}

/* Panel blanco con la información */
#reuniones-carrusel .rq-panel {
    position: absolute;
    z-index: 3;
    top: 0;
    left: var(--rq-h);
    width: var(--rq-panel-d);
    height: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #f8f8f6;
    color: #111;
    border-radius: 0 1.5rem 1.5rem 0;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity .7s var(--rq-ease) .2s,
                transform .9s var(--rq-ease) .2s;
}
#reuniones-carrusel .rq-box.is-active .rq-panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
#reuniones-carrusel .rq-panel > * {
    max-width: 100%;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .7s ease, transform .9s var(--rq-ease);
}
#reuniones-carrusel .rq-box.is-active .rq-panel > * {
    opacity: 1;
    transform: none;
}
#reuniones-carrusel .rq-box.is-active .rq-panel > *:nth-child(1) { transition-delay: .5s; }
#reuniones-carrusel .rq-box.is-active .rq-panel > *:nth-child(2) { transition-delay: .58s; }
#reuniones-carrusel .rq-box.is-active .rq-panel > *:nth-child(3) { transition-delay: .66s; }
#reuniones-carrusel .rq-box.is-active .rq-panel > *:nth-child(4) { transition-delay: .74s; }
#reuniones-carrusel .rq-box.is-active .rq-panel > *:nth-child(n+5) { transition-delay: .82s; }

#reuniones-carrusel .rq-panel small {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #5f5f5f;
}
#reuniones-carrusel .rq-panel h3 {
    margin: .3rem 0 .4rem;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #111;
    white-space: nowrap;
}
#reuniones-carrusel .rq-panel h4 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
}
#reuniones-carrusel .rq-panel p,
#reuniones-carrusel .rq-panel li {
    margin: 0 0 .4rem;
    font-size: .8rem;
    line-height: 1.45;
    color: #444;
}
#reuniones-carrusel .rq-panel a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
#reuniones-carrusel .rq-panel ul {
    margin: 0 0 .5rem;
    padding-left: 1rem;
    list-style: disc;
}

/* Computadora: el tamaño de los cuadros se basa en el ancho real del contenedor,
   para que en laptops pequeñas el texto del panel no quede cortado */
@supports (width: 1cqw) {
    @media (min-width: 1024px) {
        #reuniones-carrusel {
            container-type: inline-size;
            --rq-h: min(15rem, calc((100cqw - 2.25rem) / 5.45));
        }
    }
}
@media (min-width: 1024px) and (max-width: 1179px) {
    #reuniones-carrusel .rq-panel { padding: 1.1rem 1.15rem; }
    #reuniones-carrusel .rq-panel small { font-size: .6rem; }
    #reuniones-carrusel .rq-panel h3 { font-size: 1.65rem; }
    #reuniones-carrusel .rq-panel h4 { font-size: .95rem; margin-bottom: .4rem; }
    #reuniones-carrusel .rq-panel p,
    #reuniones-carrusel .rq-panel li { font-size: .74rem; line-height: 1.4; margin-bottom: .3rem; }
}

/* ── Celular y tableta ── */
@media (max-width: 1023px) {
    #reuniones-carrusel {
        --rq-gap: .75rem;
        /* Ancho disponible: el del contenedor (respaldo: pantalla menos el margen de la sección) */
        --rq-ancho: calc(100vw - 3rem);
        /* Cuadro cerrado: cuatro caben en una fila (máximo el tamaño de computadora) */
        --rq-sq: min(15rem, calc((var(--rq-ancho) - 3 * var(--rq-gap)) / 4));
        /* Cuando uno se abre, los otros tres se vuelven tiras y la fila mide lo mismo */
        --rq-tira: 3.5rem;
        --rq-abierta: calc(4 * var(--rq-sq) - 3 * var(--rq-tira));
        /* Dentro del cajón abierto: foto a la izquierda, información a la derecha */
        --rq-foto-w: calc(var(--rq-abierta) * .36);
        --rq-panel-w: calc(var(--rq-abierta) - var(--rq-foto-w));
    }
    @supports (width: 1cqw) {
        #reuniones-carrusel {
            container-type: inline-size;
            --rq-ancho: 100cqw;
        }
    }

    #reuniones-carrusel .rq-row {
        gap: var(--rq-gap);
        height: calc(var(--rq-sq) * 1.3);
        transition: height .9s var(--rq-ease);
    }
    /* El alto del cajón abierto lo calcula el script (--rq-alto) según su texto */
    #reuniones-carrusel.has-active .rq-row {
        height: max(calc(var(--rq-sq) * 1.3), var(--rq-alto, 0px));
    }

    #reuniones-carrusel .rq-box {
        width: var(--rq-sq);
        height: 100%;
    }
    #reuniones-carrusel.has-active .rq-box { width: var(--rq-tira); }
    #reuniones-carrusel.has-active .rq-box.is-active { width: var(--rq-abierta); }

    #reuniones-carrusel .rq-box > .rq-foto {
        width: 100%;
        height: 100%;
    }
    #reuniones-carrusel .rq-box.is-active > .rq-foto { width: var(--rq-foto-w); }

    /* En las tiras la etiqueta va de lado, como lomo de libro */
    #reuniones-carrusel.has-active .rq-box:not(.is-active) .rq-tab {
        align-items: center;
        padding: 0;
    }
    #reuniones-carrusel.has-active .rq-box:not(.is-active) .rq-tab span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        padding: .8rem .35rem;
    }
    #reuniones-carrusel.has-active .rq-box:not(.is-active)::before {
        background: rgba(0, 0, 0, .35);
    }

    #reuniones-carrusel .rq-panel {
        left: var(--rq-foto-w);
        width: var(--rq-panel-w);
    }
}

/* ── Celular ── */
@media (max-width: 599px) {
    #reuniones-carrusel {
        --rq-gap: .5rem;
        --rq-tira: 1.75rem;
        --rq-foto-w: calc(var(--rq-abierta) * .3);
    }
    #reuniones-carrusel .rq-box { border-radius: 1rem; }
    #reuniones-carrusel.has-active .rq-box.is-active { border-radius: 1.25rem; }

    #reuniones-carrusel .rq-box::before {
        background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%);
    }

    #reuniones-carrusel .rq-tab { padding-bottom: .6rem; }
    #reuniones-carrusel .rq-tab span {
        font-size: .55rem;
        letter-spacing: .06em;
        padding: .3rem .35rem;
        background: rgba(0, 0, 0, .6);
    }
    #reuniones-carrusel.has-active .rq-box:not(.is-active) .rq-tab span {
        padding: .55rem .25rem;
    }

    #reuniones-carrusel .rq-panel {
        padding: 1.1rem .9rem;
        border-radius: 0 1.25rem 1.25rem 0;
        transform: translateX(20px);
    }
    #reuniones-carrusel .rq-panel small { font-size: .6rem; letter-spacing: .18em; }
    #reuniones-carrusel .rq-panel h3 { font-size: 1.6rem; margin: .25rem 0 .35rem; }
    #reuniones-carrusel .rq-panel h4 { font-size: .95rem; margin-bottom: .4rem; }
    #reuniones-carrusel .rq-panel p,
    #reuniones-carrusel .rq-panel li { font-size: .8rem; line-height: 1.4; margin-bottom: .35rem; }
    #reuniones-carrusel .rq-panel ul { padding-left: .9rem; }
}

/* Cajón de Heber: la portada (cruz + letrero) está hecha con HTML, así llena el cajón
   a cualquier alto sin recortar las letras ni dejar franjas */
#reuniones-carrusel .rq-box > .rq-portada {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    /* Abajo deja lugar para la etiqueta "Heber, CA" */
    padding: 0 .75rem 3rem;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: radial-gradient(120% 80% at 50% 45%, #2a2a2a 0%, #141414 55%, #070707 100%);
}
#reuniones-carrusel .rq-portada svg {
    width: 34%;
    max-width: 5.5rem;
    margin-bottom: .5rem;
}
#reuniones-carrusel .rq-portada-titulo {
    font-size: clamp(.62rem, 1.1vw, .85rem);
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1.35;
}
#reuniones-carrusel .rq-portada-lugar {
    font-size: clamp(.5rem, .8vw, .62rem);
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Abierto: como la portada es solo el logo, el texto usa todo el cajón; así cabe en menos
   alto y la fila casi no crece */
#reuniones-carrusel .rq-box--texto.is-active > .rq-foto { opacity: 0; }
#reuniones-carrusel .rq-box--texto .rq-panel {
    left: 0;
    /* Ancho fijo (no 100%): el script mide el alto del texto mientras el cajón todavía se abre */
    width: calc(var(--rq-h) + var(--rq-panel-d));
    padding: 1.4rem 1.6rem;
    border-radius: inherit;
}
#reuniones-carrusel .rq-box--texto .rq-panel p,
#reuniones-carrusel .rq-box--texto .rq-panel li { font-size: .76rem; line-height: 1.42; }

@media (max-width: 1023px) {
    #reuniones-carrusel .rq-box--texto .rq-panel { width: var(--rq-abierta); }
}

/* Celular: la portada y el texto un poco más compactos */
@media (max-width: 599px) {
    #reuniones-carrusel .rq-box > .rq-portada { gap: .3rem; padding: 0 .3rem 2rem; }
    #reuniones-carrusel .rq-portada svg { width: 46%; margin-bottom: .2rem; }
    #reuniones-carrusel .rq-portada-titulo { font-size: .5rem; letter-spacing: .1em; }
    #reuniones-carrusel .rq-portada-lugar { font-size: .4rem; letter-spacing: .08em; }
    #reuniones-carrusel .rq-box--texto .rq-panel { padding: 1.1rem .9rem; }
    #reuniones-carrusel .rq-box--texto .rq-panel p,
    #reuniones-carrusel .rq-box--texto .rq-panel li { font-size: .74rem; line-height: 1.4; }
}

/* Teléfonos muy angostos: un poco más de espacio para el texto */
@media (max-width: 359px) {
    #reuniones-carrusel {
        --rq-tira: 1.6rem;
        --rq-foto-w: calc(var(--rq-abierta) * .26);
    }
    #reuniones-carrusel .rq-tab span {
        font-size: .5rem;
        letter-spacing: .02em;
        padding: .25rem .25rem;
    }
    #reuniones-carrusel .rq-panel h3 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    #reuniones-carrusel .rq-row,
    #reuniones-carrusel .rq-box,
    #reuniones-carrusel .rq-box::before,
    #reuniones-carrusel .rq-box > .rq-foto,
    #reuniones-carrusel .rq-panel,
    #reuniones-carrusel .rq-panel > *,
    #reuniones-carrusel .rq-tab { transition: none !important; }
}
/* Íconos de redes con su color de marca (barra superior y pie de página) */
.marca-facebook { color: #1877F2; }
.marca-youtube { color: #FF0000; }
.marca-spotify { color: #1ED760; }
/* TikTok: blanco con su sombra cian y roja */
.marca-tiktok {
    color: #fff;
    filter: drop-shadow(-1px -1px 0 #25F4EE) drop-shadow(1px 1px 0 #FE2C55);
}

/* Botón flotante de Nucleus: en celular un poco más chico, y el pie deja espacio para que no tape el texto final */
@media (max-width: 767px) {
    #nucleus-launcher-container [shape="circle"] {
        transform: scale(.8);
        transform-origin: bottom right;
    }
    footer { padding-bottom: 4.5rem; }
}
