:root {
    --color-primary: #00556d;
    --color-primary-light: #36848b;
    --color-primary-dark: #003d4f;
    --color-secondary: #36848b;
    --color-warm: #d67d6d;
    --color-warm-light: #ffd7cc;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f8f8;
    --color-surface-elevated: rgba(255, 255, 255, 0.82);
    --color-glaciar: #b9d2d4;
    --color-text: #1a2a2e;
    --color-text-secondary: #5a6b6e;
    --color-text-muted: #8a9a9d;
    --color-border: #d4e0e1;
    --color-border-light: #e8eff0;
    --color-accent-blue: #36848b;
    --color-accent-green: #2a9d8f;
    --color-accent-purple: #7a9ea4;
    --color-accent-orange: #d67d6d;
    --font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1200px;
    --section-padding: 128px;
    --section-padding-mobile: 84px;
    --card-radius: 28px;
    --card-padding: 30px;
    --shadow-soft: 0 10px 28px rgba(0, 61, 79, 0.05);
    --shadow-frame: 0 30px 90px rgba(0, 61, 79, 0.18);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* body — sin override de background; usamos .bgDecor del proyecto.
   font-family, color, etc. ya los define styles.css del proyecto. */

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    /* padding lateral: lo da styles.css (32px); el shorthand 0 24px de aquí
       lo pisaba tras el cambio de orden de carga (fase 3). */
    margin: 0 auto;
}

.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-primary);
}

/* Eyebrow sin pill — solo texto (sin fondo, borde ni radius). */
.eyebrow {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.section-copy {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    margin: 22px 0 18px;
}

.spotlightSplitTitle {
    display: inline-block !important;
}

.spotlightSplitTitle,
#visual .spotlightSplitTitle,
.spotlight .spotlightSplitTitle,
.spotlightPin .spotlightSplitTitle {
    display: inline-block !important;
    width: fit-content !important;
    max-width: 100%;
    white-space: normal;
}

.spotlightSplitTitle span {
    display: block !important;
    white-space: nowrap !important;
    width: auto !important;
}

.spotlightSplitTitle span+span {
    margin-top: 0.12em !important;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.section-subtitle--left {
    margin-left: 0;
}

/* .btn base eliminado (fase 3): lo define styles.css; el border:none de aquí
   pisaba el contorno de .btnWhiteOutline al cargar esta hoja después. */



















/* Reglas .header / .logo / .nav-link / .language-switch / .header__mobile-toggle
   eliminadas — header reutilizable del proyecto (partials/header.php + styles.css). */

.agenda-hero {
    position: relative;
    overflow: hidden;
    /* Padding-top compensa el header sticky (~80px) + respiro; padding-bottom
       cierra la sección. Background transparente — bgDecor del proyecto. */
    padding: 110px 0 90px;
    background: transparent;
}

.agenda-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.agenda-hero__glow--one {
    top: 120px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: rgba(54, 132, 139, 0.12);
}

.agenda-hero__glow--two {
    right: 0;
    top: 160px;
    width: 300px;
    height: 300px;
    background: rgba(185, 210, 212, 0.2);
}

.agenda-hero__inner,
.spotlight__inner,
.list-mode__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 54px;
    align-items: center;
}

.agenda-hero__content {
    max-width: 540px;
}

.agenda-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    margin: 26px 0 22px;
}

.agenda-hero__subtitle {
    font-size: 19px;
    line-height: 1.72;
    color: var(--color-text-secondary);
    max-width: 520px;
}

.agenda-hero__actions {
    margin-top: 34px;
}

.agenda-hero__visual {
    animation: heroMockupReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}

.agenda-hero__visual.animate-on-scroll.visible {
    animation: heroMockupReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}


@keyframes heroMockupReveal {
    0% {
        opacity: 0;
        transform: translateY(38px) scale(0.96);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroMockupFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.device-shell {
    position: relative;
    padding: 28px 24px;
    border-radius: 40px;
    background: linear-gradient(145deg, #16252d 0%, #263944 38%, #101a20 100%);
    box-shadow: 0 20px 50px rgba(0, 61, 79, 0.14);
}

.device-shell::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-shell__top {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 8px;
    border-radius: 999px;
    background: rgba(7, 15, 19, 0.92);
}

.device-shell__screen {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}

/* Base (TABLET): video con altura natural — DEFINE el alto del marco. */
.device-shell__video {
    display: block;
    width: 100%;
    height: auto;
}

/* === FLIP 3D — la TABLET define la altura del marco ===
   `deviceFlip` no tiene height en CSS; JS la fija una vez al cargar
   usando el alto NATURAL del tablet (video con aspect propio respetado).
   Los demás mockups se centran DENTRO de ese alto sin forzar zoom. */
/* Evita que el grupo de palabras salte partido (ej. "por ti"). */
.nowrap {
    white-space: nowrap;
}

/* Mockup único — tablet estático. El vídeo define la altura natural. */
.agenda-hero__visual .device-shell--tablet {
    width: 100%;
    padding: 24px 22px;
    border-radius: 32px;
}

/* Contenedor que ancla móvil sobre tablet. */
.agenda-hero__devices {
    position: relative;
}

/* Móvil flotante delante de la tablet — esquina inferior derecha, sin rotación,
   borde uniforme (sin notch, sin padding extra arriba). */
.agenda-hero__visual .device-shell--phone {
    position: absolute;
    bottom: -6%;
    right: -10%;
    left: auto;
    width: 32%;
    min-width: 140px;
    padding: 10px;
    border-radius: 26px;
    box-shadow: 0 26px 50px -12px rgba(0, 35, 45, 0.45);
    z-index: 3;
}

.agenda-hero__visual .device-shell--phone::before {
    inset: 5px;
    border-radius: 21px;
}

/* Quitar notch del móvil — marco uniforme. */
.agenda-hero__visual .device-shell--phone .device-shell__top {
    display: none;
}

.agenda-hero__visual .device-shell--phone .device-shell__screen {
    border-radius: 18px;
}

@media (max-width: 720px) {
    .agenda-hero__visual .device-shell--phone {
        width: 34%;
        bottom: -4%;
        right: -6%;
    }
}



.agenda-ui__bar,
.agenda-ui__toolbar,
.spotlight-shell__topbar,
.list-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Etiqueta "Automatización" a la derecha, centrada verticalmente. */
.spotlight-shell__tag {
    margin: 0;
    align-self: center;
    flex-shrink: 0;
    white-space: nowrap;
}















.ui-pill,
.agenda-ui__chips span,
.spotlight-shell__filters span,
.summary-card__label {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(54, 132, 139, 0.1);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition:
        background 180ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}









.agenda-ui__toolbar h2,
.spotlight-shell h3,
.list-shell h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    margin-top: 6px;
}



.panel-label {
    color: var(--color-secondary);
    background: none;
    padding: 0;
}

/* Títulos de los mockups del spotlight más contrastados (no claritos). */
.spotlight-shell h3 {
    color: var(--color-primary-dark);
    font-weight: 800;
}



.agenda-board,
.spotlight-shell,
.list-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 224, 225, 0.92);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
}











.appointment {
    min-height: 82px;
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 3px solid currentColor;
}

.appointment strong {
    font-size: 13px;
    color: var(--color-text);
}

.appointment span {
    font-size: 11px;
    color: var(--color-text-secondary);
}































.editorial-block,
.operational-benefits,
.list-mode {
    padding: var(--section-padding) 0;
}

.editorial-block {
    background: transparent;
    /* Pegada a la sección spotlight de abajo. */
    padding-bottom: 0;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Wave hop — al centrarse la grid en viewport, cada card pega un saltito
   escalonado (efecto ola). JS añade .is-wave al centrar. */
@keyframes cardHop {
    0% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(-16px);
    }

    70% {
        transform: translateY(4px);
    }

    100% {
        transform: translateY(0);
    }
}

.capability-grid.is-wave .editorial-card {
    animation: cardHop 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.capability-grid.is-wave .editorial-card:nth-child(1) {
    animation-delay: 0.00s;
}

.capability-grid.is-wave .editorial-card:nth-child(2) {
    animation-delay: 0.07s;
}

.capability-grid.is-wave .editorial-card:nth-child(3) {
    animation-delay: 0.14s;
}

.capability-grid.is-wave .editorial-card:nth-child(4) {
    animation-delay: 0.21s;
}

.capability-grid.is-wave .editorial-card:nth-child(5) {
    animation-delay: 0.28s;
}

.capability-grid.is-wave .editorial-card:nth-child(6) {
    animation-delay: 0.35s;
}

.editorial-card,
.benefit-card,
.mini-card {
    position: relative;
    /* Remix coherente con el proyecto: glassy translúcido + borde sutil
       brand, sin sombras pesadas (como las cards de index/funcionalidades). */
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 85, 109, 0.1);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 12px 28px rgba(0, 61, 79, 0.05);
    backdrop-filter: blur(14px);
}

.editorial-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
    overflow: hidden;
}

/* Número gigante de fondo (marca de agua), pegado a la esquina inferior
   derecha. Tamaño grande + opacidad muy baja. */
.editorial-card::before {
    position: absolute;
    right: -8px;
    bottom: -34px;
    font-family: var(--font-heading);
    font-size: 17rem;
    font-weight: 800;
    line-height: 0.8;
    color: rgba(0, 85, 109, 0.025);
    pointer-events: none;
    z-index: 0;
}

.editorial-card:nth-child(1)::before {
    content: "01";
}

.editorial-card:nth-child(2)::before {
    content: "02";
}

.editorial-card:nth-child(3)::before {
    content: "03";
}

.editorial-card:nth-child(4)::before {
    content: "04";
}

.editorial-card:nth-child(5)::before {
    content: "05";
}

.editorial-card:nth-child(6)::before {
    content: "06";
}

/* Contenido por encima del número. */
.editorial-card>* {
    position: relative;
    z-index: 1;
}

.editorial-card:nth-child(1) {
    transition-delay: 0.02s;
}

.editorial-card:nth-child(2) {
    transition-delay: 0.08s;
}

.editorial-card:nth-child(3) {
    transition-delay: 0.14s;
}

.editorial-card:nth-child(4) {
    transition-delay: 0.2s;
}

.editorial-card:nth-child(5) {
    transition-delay: 0.26s;
}

.editorial-card:nth-child(6) {
    transition-delay: 0.32s;
}

.editorial-card.animate-on-scroll {
    transform: translateY(36px);
}

.editorial-card.animate-on-scroll.visible {
    animation: editorialCardReveal 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.editorial-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px rgba(0, 61, 79, 0.1);
}

.editorial-card:hover .editorial-card__icon {
    transform: translateY(-1px) scale(1.06);
    background: var(--color-primary);
    color: #fff;
    box-shadow: none;
}

.editorial-card:hover .editorial-card__icon svg {
    stroke: #fff;
}

.editorial-card:hover .editorial-card__icon svg {
    transform: none;
}

.spotlight-shell::before,
.list-shell::before {
    content: none;
}

.editorial-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0, 85, 109, 0.08);
    color: var(--color-primary);
    margin-bottom: 18px;
    transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.editorial-card__icon svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-base);
}

.editorial-card h3,
.benefit-card h3,
.mini-card h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.editorial-card p,
.benefit-card p,
.mini-card p {
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

@keyframes editorialCardReveal {
    0% {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
    }

    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.spotlight {
    background: transparent;
}

/* === SPOTLIGHT PIN — scroll-driven. La card se desliza izq↔der y el
   texto cambia según el segmento de scroll. === */
.spotlightPin__track {
    position: relative;
    height: 300vh;
}

.spotlightPin__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Stage relativo. Dos bloques absolute (texto + mockup) que se mueven en
   X en direcciones opuestas, cruzándose. JS setea --tx y --mx (px). */
.spotlightPin__stage {
    position: relative;
    height: 72vh;
    min-height: 480px;
    /* Respiración lateral MÍNIMA de las capas absolutas respecto al borde
       del stage. Las capas (absolute) se anclan al padding box del
       .container e ignoran su padding de 32px — sin esto, cuando el
       viewport ≈ max-width del container, texto y mockup tocan
       literalmente el borde de la pantalla. El JS (applyState) lee esta
       variable para calcular el recorrido. */
    --stage-pad: 32px;
}

.spotlightPin__texts,
.spotlightPin__cards {
    position: absolute;
    top: 50%;
    left: var(--stage-pad);
    will-change: transform;
    /* Los 3 estados se apilan en la misma celda → crossfade por opacity. */
    display: grid;
}

.spotLayer {
    grid-area: 1 / 1;
    opacity: 0;
    will-change: opacity;
    transition: opacity 1s ease;
}

/* Barra de progreso — 3 segmentos centrados abajo. Cada uno se rellena
   según el avance del scroll hacia el siguiente cambio. */
.spotlightPin__progress {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.spotProgressSeg {
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 85, 109, 0.14);
    overflow: hidden;
}

.spotProgressSeg i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--color-primary);
    transition: width 0.15s linear;
}

.spotlightPin__texts {
    width: 42%;
    max-width: 460px;
    transform: translateY(-50%) translateX(var(--tx, 0px));
    /* Texto POR DETRÁS del mockup. */
    z-index: 1;
    /* Animación fija 1s al cambiar de estado (no atada al scroll). */
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.spotlightPin__cards {
    width: 50%;
    max-width: 540px;
    transform: translateY(-50%) translateX(var(--mx, 0px));
    z-index: 2;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}


.spotlight-shell,
.list-shell {
    position: relative;
    padding: 20px;
}

/* Doppelrand (faux outer shell) — placa sobre bandeja maquinada.
   Flex column + min-height fija → los 3 mockups misma altura, footer abajo. */
.spotlight-shell {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px;
    background: #fcfeff;
    box-shadow:
        0 0 0 6px rgba(0, 85, 109, 0.025),
        0 0 0 7px rgba(0, 85, 109, 0.07),
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        0 24px 52px -22px rgba(0, 61, 79, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 640px;
}

/* message-board (3 cards arriba): pegado tras el título, sin estirarse. */
.spotlight-shell .message-board {
    margin-top: 20px;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.weekly-grid {
    margin-top: 24px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247, 251, 251, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid var(--color-border-light);
}

.weekly-grid--messages,
.weekly-grid--reservations {
    padding: 16px;
}

























.message-board,
.reservation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-board__item,
.reservation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(252, 254, 255, 0.92);
    border: 1px solid var(--color-border-light);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 1px 2px rgba(0, 61, 79, 0.04);
    transition:
        transform 240ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 240ms cubic-bezier(0.23, 1, 0.32, 1),
        border-color 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.message-board__item:hover,
.reservation-item:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 85, 109, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        0 10px 24px -10px rgba(0, 61, 79, 0.2);
}

.message-board__item:active,
.reservation-item:active {
    transform: scale(0.99);
    transition: transform 110ms cubic-bezier(0.23, 1, 0.32, 1);
}

.message-board__item strong,
.reservation-item strong {
    display: block;
    font-size: 13px;
    color: var(--color-text);
}

.message-board__item p,
.reservation-item p {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.message-board__channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 0;
    flex-shrink: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.message-board__channel svg {
    width: 16px;
    height: 16px;
}

.message-board__channel--whatsapp {
    background: linear-gradient(135deg, #1f8a44 0%, #3fb866 100%);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(31, 138, 68, 0.5);
}

.message-board__channel--email {
    background: linear-gradient(135deg, #0c5d71 0%, #2a8a9e 100%);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(12, 93, 113, 0.5);
}

.message-board__channel--status {
    background: linear-gradient(135deg, #b07d1c 0%, #d6a44a 100%);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(176, 125, 28, 0.5);
}

.message-board__channel--alert {
    background: linear-gradient(135deg, #c53c3c 0%, #e65b52 100%);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(197, 60, 60, 0.45);
}

.message-board--confirmations {
    gap: 9px;
}

.message-board--confirmations .message-board__item {
    padding-block: 11px;
}

.spotlight-shell__footer {
    display: grid;
    /* Siempre 1 columna (vertical) en cualquier contexto — nunca lado a lado. */
    grid-template-columns: 1fr;
    gap: 12px;
    /* auto → empuja el footer al fondo del shell (hueco entre él y el contenido). */
    margin-top: auto;
    padding-top: 16px;
}

/* Summary-cards remasterizadas: card limpia con label-pill + texto. */
.summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 85, 109, 0.1);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        0 2px 8px -4px rgba(0, 61, 79, 0.12);
    transition:
        transform 280ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 280ms cubic-bezier(0.23, 1, 0.32, 1),
        border-color 280ms cubic-bezier(0.23, 1, 0.32, 1);
}

.summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 85, 109, 0.2);
    box-shadow: 0 14px 30px -14px rgba(0, 61, 79, 0.24);
}

/* Label-pill a la izquierda, ancho fijo para alinear los textos. */
.summary-card .summary-card__label {
    flex-shrink: 0;
    align-self: center;
    text-align: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(54, 132, 139, 0.12);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-text);
}

.flow-section {
    padding: var(--section-padding) 0;
    background: transparent;
    /* Contiene el rail full-bleed sin generar scroll horizontal. */
    overflow: hidden;
}

/* Texto introductorio del flow más ancho — el párrafo es largo. */
.flow-section .section-copy {
    max-width: 920px;
}

.flow-section .section-copy .section-subtitle {
    max-width: 100%;
}

/* === FLOW SEQ — línea recorre cada fila iluminando las cards (scroll). === */
.flowSeq {
    position: relative;
    margin-top: 24px;
}

.flowSeq__row {
    position: relative;
    margin-bottom: 56px;
}

.flowSeq__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Rail: línea horizontal a la altura de los dots. Sale del borde de la
   pantalla (full-bleed) por un lado y termina en punto por el otro. */
.flowSeq__rail {
    position: absolute;
    top: 30px;
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 85, 109, 0.12);
    z-index: 0;
}

.flowSeq__row--top .flowSeq__rail {
    left: calc(50% - 50vw);
    /* entra desde borde izq de pantalla */
    right: calc((50% - 50vw) / 2);
    /* punto a mitad del hueco card↔borde der */
}

.flowSeq__row--bottom .flowSeq__rail {
    left: calc((50% - 50vw) / 2);
    /* punto a mitad del hueco izq */
    right: calc(50% - 50vw);
    /* sale por borde der de pantalla */
}

.flowSeq__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    box-shadow: 0 0 16px rgba(54, 132, 139, 0.3);
}

/* Puntos en los extremos. */
.flowSeq__dot {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(54, 132, 139, 0.14);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flowSeq__dot--end {
    right: 0;
}

.flowSeq__dot--start {
    left: 0;
}

.flowSeq__row.is-dot-on .flowSeq__dot {
    opacity: 1;
}

/* Cards — apagadas por defecto; la línea las ilumina al pasar (.is-lit). */
.flowStep {
    position: relative;
    /* Card por encima del rail (z-index) → la línea va por detrás. */
    z-index: 2;
    min-height: 230px;
    padding: 56px 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 85, 109, 0.08);
    text-align: center;
    opacity: 0.45;
    filter: saturate(0.7);
    box-shadow: 0 10px 24px rgba(0, 61, 79, 0.04);
    transition: opacity 0.5s ease, filter 0.5s ease, border-color 0.5s ease,
        background 0.5s ease, box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.2, 1, 0.22, 1);
}

.flowStep.is-lit {
    opacity: 1;
    filter: saturate(1);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 38px rgba(0, 61, 79, 0.1);
    transform: translateY(-4px);
}

.flowStep__dot {
    position: absolute;
    top: 23px;
    left: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(185, 210, 212, 0.9);
    box-shadow: 0 0 0 10px rgba(185, 210, 212, 0.14);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    z-index: 3;
}

.flowStep.is-lit .flowStep__dot {
    background: var(--color-primary);
    box-shadow: 0 0 0 10px rgba(54, 132, 139, 0.18), 0 0 18px rgba(54, 132, 139, 0.3);
    transform: scale(1.12);
}

.flowStep__number {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--color-glaciar);
    /* Fondo blanco fijo detrás del número → tapa la línea localmente. */
    background: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    z-index: 5;
    transition: color 0.4s ease;
}

.flowStep.is-lit .flowStep__number {
    color: var(--color-primary);
}

.flowStep__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.flowStep strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-primary);
}

.flowStep p {
    margin: 12px auto 0;
    max-width: 240px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}























.status-pill {
    display: inline-flex;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pill--blue {
    background: rgba(54, 132, 139, 0.12);
    color: var(--color-primary);
}

.status-pill--green {
    background: rgba(42, 157, 143, 0.12);
    color: var(--color-accent-green);
}

.status-pill--orange {
    background: rgba(214, 125, 109, 0.12);
    color: var(--color-accent-orange);
}



























@keyframes feature-carousel-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}







/* Líneas con fade a los lados: --- texto --- (patrón de todo el sitio) */











/* Reglas .footer* eliminadas — footer reutilizable del proyecto. */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
    transition:
        opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .animate-on-scroll.visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (max-width: 1100px) {

    .agenda-hero__inner,
    .spotlight__inner,
    .list-mode__inner {
        grid-template-columns: 1fr;
    }

    .agenda-hero__content,
    .spotlight__content {
        max-width: 100%;
    }





    .agenda-hero__visual .device-shell {
        animation-duration: 6.4s;
    }

    /* Tablet/1-col: mockup acotado y centrado (no full-width gigante). */
    .agenda-hero__devices {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spotlight-shell__footer {
        grid-template-columns: 1fr;
    }








}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }







    .agenda-hero {
        padding-top: 122px;
    }

    .agenda-hero__visual,
    .agenda-hero__visual.animate-on-scroll.visible {
        animation-duration: 0.9s;
    }



    .agenda-board__headers,
    .agenda-board__columns,
    .weekly-grid__cells,
    .weekly-grid__meta,
    .capability-grid,
    .mini-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }



    .agenda-ui__toolbar,
    .spotlight-shell__topbar,
    .list-shell__header {
        flex-direction: column;
        align-items: flex-start;
    }

























    .flow-step {
        min-height: auto;
        padding: 52px 18px 18px 54px;
        text-align: left;
        transform: translateY(22px) translateX(10px);
    }







    .flow-step p {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    /* message-board y reservation: SIEMPRE horizontal (icono/avatar al lado
       del texto), nunca vertical. */
    .message-board__item,
    .reservation-item {
        flex-direction: row;
        align-items: center;
    }

    /* Móvil: ocultar el subtexto (ejemplos: "Reconocimiento · Sala 1", etc)
       para que las 3 cards quepan. */
    .message-board__body p,
    .reservation-body p {
        display: none;
    }




}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .agenda-hero__title {
        font-size: 40px;
    }

    .section-title,
    .cta-final__title {
        font-size: 30px;
    }

    .section-title .agenda-mobile-copy-desktop {
        display: none;
    }

    .section-title .agenda-mobile-copy-only {
        display: inline;
    }

    .editorial-card,
    .benefit-card,
    .mini-card,
    .spotlight-shell,
    .list-shell {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .feature-carousel__track,
    .flow-step,
    .flow-timeline__progress,
    .animate-on-scroll {
        transition: none;
        animation: none;
    }



    .flow-step,
    .flow-timeline.visible .flow-step,
    .flow-step.is-active,
    .animate-on-scroll,
    .animate-on-scroll.visible {
        transform: none;
    }
}

/* Carrusel coverflow — estructura clásica: viewport (overflow hidden)
   contiene un track flex que se traslada según el item activo. Items
   con scale/opacity según clase aplicada por JS. */






/* Track centrado dentro del viewport. JS le aplica translateX para
   alinear el item activo con el centro del viewport. */




/* Items — scale + opacity según clase aplicada por JS. */






/* Hover override — solo afecta scale del item, no su posición flex. */






/* Flechas — circular, sutiles. */






/* Dots — indicadores posición + click salta al item. */
















/* Título del carrusel quickNav — tamaño medio (como funcionalidades) y
   pegado a la sección de arriba. */
.quickNavBlock h2 {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.section.sectionTight:has(.quickNavBlock) {
    padding-top: 0;
    padding-bottom: 0;
    /* Margen negativo para comerse el padding de las secciones vecinas
       (flow arriba, cta abajo) y pegar el carrusel. */
    margin-top: -64px;
    margin-bottom: -48px;
}

/* En móvil el pegado desktop asfixia: fuera márgenes negativos y un
   respiro propio entre el flow de arriba y el CTA de abajo. */
@media (max-width: 768px) {
    .section.sectionTight:has(.quickNavBlock) {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

/* Loop del carrusel: reposición instantánea sin animar (track + items). */


/* ============================================================
   MOCKUPS spotlight — realismo UI app
   ============================================================ */

/* --- Card 0: mensajería (body + hora + check leído) --- */
.message-board__body {
    flex: 1;
    min-width: 0;
}

.message-board__body strong {
    display: block;
    font-size: 13px;
    color: var(--color-primary-dark);
}

.message-board__body p {
    margin-top: 2px;
    font-size: 12px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-board__meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.message-board__meta svg {
    color: var(--color-accent-green);
}

/* --- Card 1: mini-agenda semanal (citas reales) --- */



















/* --- Card 2: reservas (avatar inicial + cuerpo) --- */
.reservation-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.reservation-avatar--green {
    background: rgba(46, 155, 90, 0.16);
    color: #2e9b5a;
}

.reservation-avatar--orange {
    background: rgba(214, 160, 74, 0.18);
    color: #c98a2e;
}

.reservation-avatar--blue {
    background: rgba(58, 143, 183, 0.16);
    color: #3a8fb7;
}

.reservation-body {
    flex: 1;
    min-width: 0;
}

.reservation-body strong {
    display: block;
    font-size: 13px;
    color: var(--color-primary-dark);
}

.reservation-body p {
    margin-top: 2px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ============================================================
   MÓVIL — verticalidad total (≤768px). No afecta desktop.
   ============================================================ */


/* ============================================================
   TABLET + MÓVIL (≤1200px) — sin lenis/pin, todo vertical.
   Spotlight (Título → Mockup → Texto), flowSeq timeline vertical,
   cards 1-6 en una columna.
   ============================================================ */
@media (max-width: 1200px) {

    /* Hero horizontal (2-col) intacto en tablet; el móvil flotante se mete
       dentro (right 0) para no salirse, + clip de seguridad anti-scroll. */
    .agenda-hero {
        overflow-x: clip;
    }

    .agenda-hero__visual .device-shell--phone {
        right: 0;
    }

    /* Título del hero centrado en tablet y móvil (eyebrow, h1, subtitle, botón). */
    .agenda-hero__content {
        text-align: center;
    }

    .agenda-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .agenda-hero__actions {
        display: flex;
        justify-content: center;
    }

    /* Cards 01-06 (editorial): tablet 2 columnas (01 02 / 03 04 / 05 06). */
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* ---- Spotlight: sin pin/cruce. Vertical: Título → Mockup → Texto ---- */
    .spotlightPin__track {
        height: auto !important;
    }

    .spotlightPin__sticky {
        position: static;
        height: auto;
        display: block;
        overflow: visible;
    }

    .spotlightPin__stage {
        height: auto;
        min-height: 0;
    }

    .spotlightPin__texts,
    .spotlightPin__cards,
    .spotlightPin__progress {
        display: none !important;
    }

    .spotlightPin__mobile {
        display: flex;
        flex-direction: column;
        gap: 72px;
        /* Separa la sección central de las cards de arriba (evita solape). */
        margin-top: 64px;
    }

    /* FlowSeq (timeline final con cards + línea): acotado y centrado en
       tablet para que las cards no sean tan anchas. */
    .flowSeq {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 2 columnas alternadas: texto|mockup, mockup|texto, texto|mockup.
       Tamaño original del mockup respetado (col ~1.08fr). */
    .spotMobileBlock {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 44px;
        align-items: center;
    }

    /* Bloque par (2º) invierte: mockup a la izquierda, texto a la derecha. */
    .spotMobileBlock:nth-child(even) .spotMobileText {
        order: 2;
    }

    .spotMobileText .section-title {
        margin: 0 0 16px;
    }

    .spotMobileText .section-subtitle {
        margin: 0;
    }

    .spotMobileBlock .spotlight-shell {
        max-width: 100%;
        margin: 0;
    }

    /* ---- FlowSeq: timeline vertical con línea lateral izquierda ---- */
    .flowSeq {
        position: relative;
        margin-top: 24px;
        padding-left: 0;
    }

    /* Track tenue de la línea (raíl de fondo). */
    .flowSeq::before {
        content: "";
        position: absolute;
        left: 23px;
        top: 13px;
        bottom: 17px;
        width: 3px;
        border-radius: 999px;
        background: rgba(0, 85, 109, 0.12);
        z-index: 0;
    }

    /* Fill que se rellena con el scroll (creado por JS). */
    .flowMobileFill {
        position: absolute;
        left: 23px;
        top: 13px;
        width: 3px;
        height: 0;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
        box-shadow: 0 0 16px rgba(54, 132, 139, 0.3);
        z-index: 1;
        will-change: height;
        /* Relleno suave entre cards. */
        transition: height 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    }

    /* Punto de inicio de la línea (un poco ARRIBA de la primera card). */
    .flowSeq::after {
        content: "";
        position: absolute;
        left: 16px;
        top: 6px;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: var(--color-primary);
        box-shadow: 0 0 0 6px rgba(54, 132, 139, 0.14);
        z-index: 2;
    }

    /* Punto FINAL de la línea (un poco DEBAJO de la última card). */
    .flowMobileEnd {
        position: absolute;
        left: 16px;
        bottom: 10px;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: var(--color-primary);
        box-shadow: 0 0 0 6px rgba(54, 132, 139, 0.14);
        z-index: 2;
        opacity: 0;
        transform: scale(0.6);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .flowMobileEnd.on {
        opacity: 1;
        transform: scale(1);
    }

    .flowSeq__row {
        margin-bottom: 0;
    }

    /* Oculta los rails horizontales originales (la línea la da ::before). */
    .flowSeq__rail {
        display: none;
    }

    .flowSeq__cards {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-left: 46px;
    }

    /* Separación entre fila 1 y fila 2 (siguen apiladas, línea continua). */
    .flowSeq__row--bottom .flowSeq__cards {
        margin-top: 18px;
    }

    .flowStep {
        min-height: auto;
        text-align: left;
        padding: 24px 20px;
    }

    /* Sin dots intermedios — solo punto inicio (::after) y final. */
    .flowStep__dot {
        display: none;
    }

    /* Marca pequeña horizontal SOBRE la línea vertical, ENTRE cards
       (en el hueco inferior de cada card). */
    .flowStep::before {
        content: "";
        position: absolute;
        left: -29px;
        bottom: -10px;
        width: 13px;
        height: 3px;
        border-radius: 999px;
        background: rgba(0, 85, 109, 0.22);
        transition: background 0.4s ease;
        z-index: 3;
    }

    /* La última card no lleva marca (después va el punto final). */
    .flowSeq__row--bottom .flowStep:last-child::before {
        display: none;
    }

    /* La barrita se ilumina cuando la card SIGUIENTE se enciende
       (= el fill ya ha pasado ese hueco). */
    .flowStep.mark-lit::before {
        background: var(--color-primary);
    }

    .flowStep__number {
        top: 16px;
        right: 16px;
        font-size: 22px;
    }

    .flowStep strong {
        font-size: 17px;
    }

    .flowStep p {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        text-align: left;
    }

    .flowStep__eyebrow {
        margin-bottom: 8px;
    }
}

/* ============================================================
   MÓVIL (≤768px) — spotlight a 1 columna (override del 2-col tablet).
   Va DESPUÉS del @media 1200 para ganar en cascada.
   ============================================================ */
@media (max-width: 768px) {
    .spotMobileBlock {
        grid-template-columns: 1fr;
        gap: 20px;
        min-width: 0;
    }

    .spotMobileBlock:nth-child(even) .spotMobileText {
        order: 0;
    }

    /* Centrar título + subtítulo de los 3 mockups en móvil. */
    .spotMobileText {
        text-align: center;
    }

    .spotMobileText .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    /* El mockup nunca excede el ancho disponible (evita overflow horizontal). */
    .spotMobileBlock .spotlight-shell {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        /* Menos padding interno en móvil. */
        padding: 12px;
    }

    /* Mockups mucho más pequeños en teléfono: escalados como IMAGEN
       (proporción intacta, sin reflow interno). agenda.js lee la escala
       y fija la altura del wrapper para no dejar hueco fantasma. */
    .spotMobileMock {
        --spot-mock-scale: 0.7;
    }

    .spotMobileMock>* {
        transform: scale(var(--spot-mock-scale));
        transform-origin: top center;
    }

    /* Contiene cualquier desborde de la sección central en móvil. */
    .spotlight.spotlightPin {
        overflow-x: clip;
    }

    .spotlightPin__stage,
    .spotlightPin__mobile {
        min-width: 0;
        max-width: 100%;
    }

    /* Sin padding horizontal en la sección central (ocupa todo el ancho). */
    .spotlight.spotlightPin .container,
    .spotlightPin__stage {
        padding-left: 0;
        padding-right: 0;
    }

    /* Cards 01-06 (editorial): móvil 1 columna vertical. */
    .capability-grid {
        grid-template-columns: 1fr;
    }

    /* Números de fondo en móvil: grandes, esquina inferior derecha. */
    .editorial-card::before {
        font-size: clamp(9rem, 34vw, 15rem);
        right: -4px;
        bottom: -28px;
    }

}

/* ============================================================
   Mockup agenda del spotlight (card1): más filas de horas (09:00-16:00)
   para igualar la altura del mockup siguiente. Scope spotlight para no
   afectar el agendaMockMini del index.
   ============================================================ */
.spotlight-shell .agendaMockMiniHours {
    grid-template-rows: repeat(9, calc(var(--rowH) * 2));
}

.spotlight-shell .agendaMockMiniGrid {
    grid-template-rows: repeat(18, var(--rowH));
}

/* ============================================================
   SALA DE ESPERA — bloque independiente, cuatro módulos separados
   ============================================================ */
.waitRoomSection {
    padding-block: clamp(78px, 8vw, 116px);
    background-attachment: scroll;
}

.waitRoomHead {
    width: min(940px, 100%);
    margin: 0 auto clamp(38px, 5vw, 60px);
    text-align: center;
}

.waitRoomEyebrow {
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.waitRoomEyebrow::before,
.waitRoomEyebrow::after {
    content: "";
    width: clamp(44px, 7vw, 84px);
    height: 1px;
}

.waitRoomEyebrow::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75));
}

.waitRoomEyebrow::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), transparent);
}

.waitRoomHead .section-title {
    max-width: 900px;
    margin: 18px auto 20px;
    color: #fff;
    text-wrap: balance;
}

.waitRoomHead .section-subtitle {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.8);
    text-wrap: pretty;
}

.waitRoomGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 26px);
}

.waitRoomCarouselControls {
    display: none;
}

.waitRoomCard {
    min-width: 0;
    overflow: hidden;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.waitRoomVisual {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 292px;
    margin-bottom: 25px;
}

@media (min-width: 901px) {
    .waitRoomCard {
        display: grid;
        grid-template-rows: 310px auto;
        row-gap: 42px;
        align-content: start;
    }

    .waitRoomVisual {
        place-items: end center;
        min-height: 0;
        height: 310px;
        margin-bottom: 0;
    }

    .waitRoomCard--compact {
        grid-template-rows: 230px auto;
    }

    .waitRoomCard--compact .waitRoomVisual {
        place-items: start center;
        height: 230px;
    }
}

.waitRoomCopy {
    position: relative;
    padding-right: 34px;
}

.waitRoomCopy h3 {
    max-width: 26ch;
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.14;
    letter-spacing: -0.022em;
    color: #fff;
}

.agenda-mobile-copy-only {
    display: none;
}

@media (max-width: 768px) {
    .editorial-block .section-copy > .section-title {
        font-size: 24px;
        line-height: 1.08;
    }

    .section-title .agenda-mobile-copy-desktop {
        display: none;
    }

    .section-title .agenda-mobile-copy-only {
        display: inline;
        white-space: nowrap;
    }
}

.waitRoomCopy p {
    max-width: 62ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    text-wrap: pretty;
}

.waitRoomNumber {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.42);
}

/* Tablet de autochecking */
.waitRoomTablet {
    width: min(236px, 76%);
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    background: #153f4b;
    box-shadow: 0 18px 34px rgba(0, 30, 40, 0.2);
}

.waitRoomTablet__screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 284px;
    padding: 17px 16px 15px;
    border-radius: 16px;
    background: #f8fbfb;
    color: var(--color-primary-dark);
}

.waitRoomBrand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 750;
    color: var(--color-primary);
}

.waitRoomBrand i,
.waitRoomCall__top span>i {
    width: 16px;
    height: 16px;
    border: 1.5px solid currentColor;
    border-radius: 5px 5px 7px 7px;
    transform: rotate(45deg);
}

.waitRoomTablet__screen>strong {
    font-size: 14px;
}

.waitRoomTablet__screen>small {
    margin: 3px 0 9px;
    font-size: 9px;
    color: var(--color-text-muted);
}

.waitRoomInput {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: #fff;
    font-size: 10px;
    color: var(--color-text-secondary);
}

.waitRoomKeys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    margin: 8px 0;
}

.waitRoomKeys i {
    display: grid;
    place-items: center;
    height: 25px;
    border: 1px solid #e2e9ea;
    border-radius: 7px;
    background: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.waitRoomKeys i:last-child {
    background: rgba(0, 85, 109, 0.1);
    color: var(--color-primary);
}

.waitRoomSubmit {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(105deg, var(--color-primary-dark), var(--color-primary-light));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

/* Dashboard de estados */
.waitRoomDashboard {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    width: 100%;
    aspect-ratio: 1.58 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: #f1f4f4;
    color: var(--color-primary-dark);
    box-shadow: 0 18px 34px rgba(0, 30, 40, 0.17);
}

.waitRoomDashboard__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 11px 7px;
    background: #0b1d21;
}

.waitRoomDashboard__side img {
    width: 21px;
    height: 21px;
    margin-bottom: 5px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.waitRoomDashboard__side i {
    width: 15px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .24);
}

.waitRoomDashboard__side i.is-active {
    width: 22px;
    height: 15px;
    border-left: 2px solid #36a1af;
    border-radius: 3px;
    background: rgba(54, 161, 175, .18);
}

.waitRoomDashboard__main {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    min-width: 0;
    padding: 11px 12px 12px;
}

.waitRoomDashboard__title,
.waitRoomDashboard__filters {
    display: flex;
    align-items: center;
    min-width: 0;
}

.waitRoomDashboard__title {
    gap: 8px;
    margin-bottom: 8px;
}

.waitRoomDashboard__title strong {
    font-size: 14px;
    letter-spacing: -.02em;
}

.waitRoomDashboard__title span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 6px;
    font-weight: 750;
    text-transform: uppercase;
    color: #269667;
}

.waitRoomDashboard__title span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2bc77f;
    box-shadow: 0 0 0 3px rgba(43, 199, 127, .1);
}

.waitRoomDashboard__filters {
    gap: 5px;
    margin-bottom: 7px;
    padding: 6px;
    border-radius: 6px;
    background: #fff;
}

.waitRoomDashboard__filters span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    padding: 5px 6px;
    border: 1px solid #e1e8e9;
    border-radius: 5px;
    font-size: 6px;
    color: var(--color-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waitRoomDashboard__stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 7px;
}

.waitRoomDashboard__stats>span {
    min-width: 0;
    padding: 5px 4px;
    border-left: 2px solid #3f93a0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 44, 55, .05);
}

.waitRoomDashboard__stats b,
.waitRoomDashboard__stats small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waitRoomDashboard__stats b {
    font-size: 8px;
    line-height: 1;
}

.waitRoomDashboard__stats small {
    margin-top: 3px;
    font-size: 5px;
    color: var(--color-text-muted);
}

.waitRoomDashboard__stats .is-waiting {
    border-color: #d49a4b;
}

.waitRoomDashboard__stats .is-called {
    border-color: #2f91a4;
}

.waitRoomDashboard__stats .is-consult {
    border-color: #cf6671;
}

.waitRoomDashboard__stats .is-done {
    border-color: #42b889;
}

.waitRoomDashboard__patients {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 5px;
    min-height: 0;
}

.waitRoomDashboard__patient {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    min-width: 0;
    padding: 6px;
    border-left: 2px solid #aebbbc;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 44, 55, .06);
}

.waitRoomDashboard__patient>b {
    align-self: center;
    font-size: 10px;
    color: var(--color-primary);
}

.waitRoomDashboard__patient>span {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding-left: 6px;
    border-left: 1px solid #e7eded;
}

.waitRoomDashboard__patient strong,
.waitRoomDashboard__patient small {
    overflow: hidden;
    padding-right: 29px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waitRoomDashboard__patient strong {
    font-size: 7px;
}

.waitRoomDashboard__patient small {
    margin-top: 4px;
    font-size: 5px;
    color: var(--color-text-muted);
}

.waitRoomDashboard__patient em {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 4px;
    border-radius: 99px;
    background: #edf1f1;
    font-size: 5px;
    font-style: normal;
    color: #6b7b7e;
}

.waitRoomDashboard__patient.is-called {
    border-color: #2890a3;
}

.waitRoomDashboard__patient.is-called em {
    background: #dff0f4;
    color: #23788a;
}

.waitRoomDashboard__patient.is-waiting {
    border-color: #d5a15d;
}

.waitRoomDashboard__patient.is-waiting em {
    background: #fff2d9;
    color: #9a6b25;
}

.waitRoomDashboard__patient.is-consult {
    border-color: #ca6c77;
}

.waitRoomDashboard__patient.is-consult em {
    background: #f9e5e7;
    color: #a04f5a;
}

/* Pantalla sencilla de llamada */
.waitRoomCall {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 16 / 8.2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 17px;
    background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .15), transparent 34%), linear-gradient(135deg, #0a6b82, #36848b);
    box-shadow: 0 18px 34px rgba(0, 30, 40, 0.2);
}

.waitRoomCall__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
}

.waitRoomCall__top span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.waitRoomCall__top time {
    font-size: 17px;
}

.waitRoomCall__message {
    position: absolute;
    inset: 50% 12px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-42%);
    text-align: center;
}

.waitRoomCall__message span,
.waitRoomCall__message small {
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
}

.waitRoomCall__message strong {
    margin: 6px 0 10px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.05;
    color: #fff;
}

.waitRoomCall__waves {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 34px;
    height: 18px;
    transform: translateX(-50%);
}

.waitRoomCall__waves i {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
    animation: waitRoomWave 2.8s cubic-bezier(.16, 1, .3, 1) infinite;
}

.waitRoomCall__waves i:nth-child(2) {
    animation-delay: .45s;
}

.waitRoomCall__waves i:nth-child(3) {
    animation-delay: .9s;
}

/* Recorrido de paciente */
.waitRoomJourney {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 32px 18px 24px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
}

.waitRoomJourney__rail {
    position: absolute;
    top: 62px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, .3);
}

.waitRoomJourney__rail i {
    position: absolute;
    top: -2px;
    left: 0;
    width: 46px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 12px rgba(255, 255, 255, .35);
    animation: waitRoomRoute 4.8s cubic-bezier(.65, 0, .35, 1) infinite;
}

.waitRoomJourney__step {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.waitRoomJourney__step b {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: #f6fafa;
    color: #6f8084;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .06);
}

.waitRoomJourney__step b svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.waitRoomJourney__step.is-done b,
.waitRoomJourney__step.is-current b {
    color: var(--color-primary);
}

.waitRoomJourney__step.is-current b {
    border-color: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 0 22px rgba(255, 255, 255, .15);
}

.waitRoomJourney__step strong {
    font-size: 12px;
    color: #fff;
}

.waitRoomJourney__step small {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.25;
    color: rgba(255, 255, 255, .62);
}

@keyframes waitRoomWave {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.45);
    }

    16% {
        opacity: .55;
    }

    72%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.1);
    }
}

@keyframes waitRoomRoute {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    12%, 88% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100% + 270px));
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .waitRoomSection>.container {
        width: calc(100% + 64px);
        max-width: none;
        margin-inline: -32px;
        padding-inline: 24px;
    }

    .waitRoomGrid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        align-items: stretch;
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding: 3px 0 8px;
        overflow-x: auto;
        overflow-y: clip;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .waitRoomGrid::-webkit-scrollbar {
        display: none;
    }

    .waitRoomCard {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        min-height: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .waitRoomCard .waitRoomVisual {
        place-items: center;
        min-height: 0;
        height: auto;
        margin-bottom: 24px;
    }

    .waitRoomDashboard {
        width: min(520px, 100%);
    }

    .waitRoomCarouselControls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 14px;
        margin-top: 2px;
    }

    .waitRoomCarouselArrow {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .42);
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        cursor: pointer;
    }

    .waitRoomCarouselArrow svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .waitRoomCarouselDots {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .waitRoomCarouselDots button {
        width: 18px;
        height: 3px;
        padding: 0;
        border: 0;
        border-radius: 99px;
        background: rgba(255, 255, 255, .28);
        cursor: pointer;
        transition: width 240ms ease, background-color 240ms ease;
    }

    .waitRoomCarouselDots button.is-active {
        width: 32px;
        background: #fff;
    }
}

@media (max-width: 720px) {
    .waitRoomSection {
        margin-top: 45px;
    }

    .waitRoomSection>.container {
        width: calc(100% + 48px);
        margin-inline: -24px;
        padding-inline: 18px;
    }
}

@media (max-width: 560px) {
    .waitRoomSection {
        padding-block: 64px;
    }

    .waitRoomSection>.container {
        padding-inline: 12px;
    }

    .waitRoomHead {
        margin-bottom: 32px;
        padding-inline: 6px;
    }

    .waitRoomHead .section-title {
        font-size: clamp(30px, 9vw, 39px);
    }

    .waitRoomHead .section-subtitle {
        font-size: 16px;
        line-height: 1.62;
    }

    .waitRoomGrid {
        gap: 16px;
    }

    .waitRoomCard {
        padding: 24px 18px 28px;
        border-radius: 21px;
    }

    .waitRoomVisual {
        min-height: 238px;
        margin-bottom: 22px;
    }

    .waitRoomCopy {
        padding-right: 26px;
    }

    .waitRoomCopy h3 {
        font-size: 23px;
    }

    .waitRoomCopy h3 .agenda-mobile-copy-desktop {
        display: none;
    }

    .waitRoomCopy h3 .agenda-mobile-copy-only {
        display: inline;
    }

    .waitRoomCopy p {
        font-size: 15px;
        line-height: 1.6;
    }

    .waitRoomTablet {
        width: min(228px, 82%);
    }

    .waitRoomDashboard {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .waitRoomDashboard__side {
        gap: 8px;
        padding-inline: 5px;
    }

    .waitRoomDashboard__main {
        padding: 8px;
    }

    .waitRoomDashboard__title {
        margin-bottom: 5px;
    }

    .waitRoomDashboard__filters,
    .waitRoomDashboard__stats {
        margin-bottom: 5px;
    }

    .waitRoomDashboard__patient {
        grid-template-columns: 27px minmax(0, 1fr);
        padding: 4px;
    }

    .waitRoomCall {
        aspect-ratio: 16 / 9.4;
    }

    .waitRoomJourney {
        gap: 3px;
        padding: 28px 7px 20px;
    }

    .waitRoomJourney__rail {
        top: 54px;
    }

    .waitRoomJourney__step b {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .waitRoomJourney__step b svg {
        width: 23px;
        height: 23px;
    }

    .waitRoomJourney__step strong {
        font-size: 10px;
    }

    .waitRoomJourney__step small {
        font-size: 8px;
    }
}

@media (max-width: 450px) {
    .waitRoomSection>.container {
        width: calc(100% + 36px);
        margin-inline: -18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .waitRoomCall__waves i,
    .waitRoomJourney__rail i {
        animation: none;
    }
}
