/* ==========================================================================
   SANO & PUNTO. - SISTEMA DE DISEÑO & IDENTIDAD DE MARCA OFICIAL
   ========================================================================== */

:root {
    /* Paleta Oficial Sage (Verde Salvia Orgánico) */
    --color-sage-50: #f4f7f4;
    --color-sage-100: #e3ebe3;
    --color-sage-200: #c7d9c7;
    --color-sage-300: #9ebf9e;
    --color-sage-400: #74a074;
    --color-sage-500: #518451;
    --color-sage-600: #3f683f;
    --color-sage-700: #345334;
    --color-sage-800: #2c422c;
    --color-sage-900: #253725;
    --color-sage-950: #121e12;

    /* Paleta Oficial Sand (Arena Cálida) */
    --color-sand-50: #fbfaf8;
    --color-sand-100: #f5f2eb;
    --color-sand-200: #ebe2d3;
    --color-sand-300: #dfccb3;
    --color-sand-400: #ceaf8e;
    --color-sand-500: #c29870;
    --color-sand-600: #b58359;
    --color-sand-700: #976a4a;
    --color-sand-800: #7c573f;
    --color-sand-900: #654836;
    --color-sand-950: #36251b;

    /* Acentos y Conversión */
    --color-coral: #f27244;
    --color-coral-hover: #e25d2c;
    --color-emerald: #10b981;
    --color-emerald-light: #ecfdf5;

    /* Tokens Base */
    --bg-page: var(--color-sand-50);
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-heading: var(--color-sage-950);
    --text-body: #374151;
    --text-muted: #6b7280;
    --border-brand: rgba(116, 160, 116, 0.22);
    --border-subtle: rgba(0, 0, 0, 0.06);

    /* Tipografías Oficiales */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', var(--font-sans);
    --font-brand: 'Montserrat', var(--font-sans);

    /* Sombras & Efectos */
    --shadow-soft: 0 10px 30px -5px rgba(37, 55, 37, 0.06);
    --shadow-card: 0 16px 40px -10px rgba(37, 55, 37, 0.08);
    --shadow-glow: 0 12px 35px rgba(242, 114, 68, 0.32);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base con Textura Orgánica de Grano */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Textura de grano sutil de Sano & Punto */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
}

/* Contenedor */
.container {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Barra Superior de Urgencia */
.top-banner {
    background: linear-gradient(90deg, var(--color-sage-900) 0%, var(--color-sage-800) 100%);
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.84rem;
    text-align: center;
    border-bottom: 2px solid var(--color-sand-400);
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-coral);
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1.5s infinite;
}

/* ENCABEZADO / FLOATING GLASS BAR DE SANO & PUNTO */
.site-header {
    background: rgba(251, 250, 248, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-brand);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(44, 66, 44, 0.28);
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-brand);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-sage-950);
    line-height: 1.1;
}

.brand-amp {
    font-family: var(--font-brand);
    font-weight: 800;
    color: var(--color-sage-950);
}

.brand-gradient {
    background: linear-gradient(135deg, var(--color-sage-600) 0%, var(--color-sand-800) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-gradient em {
    font-family: var(--font-brand);
    font-style: italic;
    font-weight: 800;
    padding-right: 2px;
}

/* En el pie de página el fondo es oscuro: la marca va en blanco sólido */
.footer-brand .brand-amp,
.footer-brand .brand-gradient {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-sand-700);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* SECCIÓN HERO */
.hero-section {
    padding: 45px 0 20px;
    text-align: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-sage-100);
    color: var(--color-sage-700);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    border: 1px solid var(--border-brand);
}

.main-headline {
    font-family: var(--font-sans);
    font-size: clamp(1.85rem, 4.2vw + 0.5rem, 2.85rem);
    font-weight: 900;
    color: var(--color-sage-950);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
}

.highlight-text {
    background: linear-gradient(135deg, var(--color-sage-600) 0%, var(--color-sand-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.highlight-text::after {
    display: none;
}

.sub-headline {
    font-size: clamp(1rem, 1.8vw + 0.2rem, 1.16rem);
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* SECCIÓN VSL (VIDEO SALES LETTER) */
.vsl-section {
    padding: 10px 0 45px;
}

.vsl-container {
    max-width: 820px;
}

.vsl-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-sage-950);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(18, 30, 18, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.6);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.vsl-frame:hover {
    box-shadow: 0 25px 60px -10px rgba(18, 30, 18, 0.35);
}

.vsl-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: linear-gradient(145deg, #1f331f 0%, #121e12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.vsl-overlay-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(206, 175, 142, 0.2) 0%, transparent 70%);
}

.vsl-poster-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
}

.play-button-pulse {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-pulse::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: var(--color-coral);
    opacity: 0.35;
    border-radius: 50%;
    animation: playPulse 2s infinite ease-out;
}

.play-btn {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-hover) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(242, 114, 68, 0.5);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.vsl-facade:hover .play-btn {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(242, 114, 68, 0.7);
}

.vsl-tag {
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.vsl-player-container {
    width: 100%;
    height: 100%;
}

.vsl-player-container video, 
.vsl-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.vsl-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 6;
}

.vsl-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-coral);
    transition: width 0.3s ease;
}

/* BOTÓN DE ACCIÓN (CTA) */
.cta-wrapper {
    margin-top: 32px;
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f57c50 0%, #dc5c2e 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 800;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 620px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: btnPulse 3s infinite ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(242, 114, 68, 0.45);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

.btn-text {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.btn-subtext {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.92;
    margin-top: 4px;
}

.btn-large {
    max-width: 520px;
    padding: 16px 28px;
}

/* Sellos de Confianza */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

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

.trust-item svg {
    color: var(--color-sage-600);
}

/* SECCIÓN DE STORYTELLING INTERACTIVO */
.storytelling-section {
    padding: 65px 0 55px;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(227, 235, 227, 0.3) 50%, var(--bg-page) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-sand-800);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 900;
    color: var(--color-sage-950);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Selector de Pasos */
.story-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding: 5px 0 10px;
    -webkit-overflow-scrolling: touch;
}

.step-pill {
    background: #ffffff;
    border: 1px solid var(--border-brand);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-fast);
}

.step-pill span {
    width: 22px;
    height: 22px;
    background-color: var(--color-sage-100);
    color: var(--color-sage-800);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.step-pill.active {
    background: linear-gradient(135deg, var(--color-sage-800) 0%, var(--color-sage-950) 100%);
    color: #ffffff;
    border-color: var(--color-sage-950);
    box-shadow: 0 4px 18px rgba(37, 55, 37, 0.25);
}

.step-pill.active span {
    background-color: var(--color-coral);
    color: #ffffff;
}

/* Slider Track */
.slider-wrapper {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.cards-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px 25px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.cards-track:active {
    cursor: grabbing;
}

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

.story-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 2rem;
    padding: 36px 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-brand);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    user-select: none;
}

.card-step-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.card-pain .card-step-badge { background: #fee2e2; color: #dc2626; }
.card-error .card-step-badge { background: #fef3c7; color: #d97706; }
.card-science .card-step-badge { background: var(--color-sage-100); color: var(--color-sage-800); }
.card-method .card-step-badge { background: var(--color-sand-200); color: var(--color-sand-900); }
.card-success .card-step-badge { background: var(--color-emerald-light); color: #059669; }

.card-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background-color: var(--color-sage-50);
    border: 1px solid var(--border-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.story-card h3 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-sage-950);
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.story-card p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.65;
}

.card-highlight {
    margin-top: auto;
    background-color: var(--color-sand-50);
    border-left: 3px solid var(--color-sage-600);
    padding: 14px 18px;
    border-radius: 0 1rem 1rem 0;
    font-size: 0.9rem;
    color: var(--color-sage-950);
}

.card-pain .card-highlight { border-left-color: #dc2626; }
.card-error .card-highlight { border-left-color: #d97706; }
.card-science .card-highlight { border-left-color: var(--color-sage-600); }
.card-method .card-highlight { border-left-color: var(--color-sand-800); }
.card-success .card-highlight { border-left-color: var(--color-emerald); }

.method-steps-list {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-steps-list li {
    font-size: 0.94rem;
    position: relative;
    padding-left: 22px;
}

.method-steps-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-emerald);
    font-weight: 800;
}

/* Flechas del Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-brand);
    color: var(--color-sage-900);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
}

.slider-arrow:hover {
    background: var(--color-sage-900);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.arrow-prev { left: -22px; }
.arrow-next { right: -22px; }

/* Paginador de Puntos */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-sand-200);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    width: 26px;
    border-radius: 10px;
    background-color: var(--color-sage-600);
}

.section-cta {
    margin-top: 38px;
}

.text-center {
    text-align: center;
}

/* SECCIÓN: DASHBOARD DE RESULTADOS (fondo dinámico degradado en dos tonos verdes) */
.proof-section {
    position: relative;
    padding: 90px 0 100px;
    background: linear-gradient(135deg, var(--color-sage-500) 0%, var(--color-sage-900) 100%);
}

.proof-section .section-subtitle {
    color: var(--color-sage-200);
}

.proof-section .section-title {
    color: #ffffff;
}

/* Divisores ondulados (wave dividers) que conectan la sección con el resto de la página */
.wave-divider {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-divider path {
    fill: var(--bg-page);
}

/*
   El desplazamiento de 1px hace que el relleno beige rebase el borde de la
   sección. Sin él, cuando la sección cae en una posición fraccionaria de
   píxel, el degradado verde asoma como una línea fina sobre la ola.
*/
.wave-divider-top {
    top: -1px;
}

.wave-divider-bottom {
    bottom: -1px;
}

.proof-section .container {
    position: relative;
    z-index: 2;
}

.proof-dashboard {
    display: grid;
    /* minmax(0, 1fr) evita que el contenido largo fuerce columnas más anchas
       que el contenedor en pantallas estrechas */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    position: relative;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border-brand);
    border-radius: 1.5rem;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-soft);
    overflow-wrap: anywhere;
}

/* Etiqueta "Ejemplo" para contenido de maqueta a reemplazar */
.demo-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-sand-100);
    color: var(--color-sand-800);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-sand-300);
}

.stat-highlight {
    background: #ffffff;
    border: 2px solid var(--color-coral);
    box-shadow: 0 14px 34px rgba(242, 114, 68, 0.22);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-sage-950);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-highlight .stat-value {
    color: var(--color-coral-hover);
}

.stat-trend {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trend-down {
    color: var(--color-emerald);
}

.stat-placeholder .stat-value {
    color: var(--color-sand-700);
}

.stat-placeholder {
    border-style: dashed;
}

/* Gráfico conceptual de curva glucémica */
.glucose-chart-card {
    background: #ffffff;
    border: 1px solid var(--border-brand);
    border-radius: 1.75rem;
    padding: 26px 26px 20px;
    box-shadow: var(--shadow-card);
    max-width: 880px;
    margin: 0 auto;
}

.chart-header {
    margin-bottom: 14px;
}

.chart-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--color-sage-950);
}

.chart-title em {
    font-style: normal;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.glucose-chart {
    width: 100%;
    height: 160px;
    display: block;
}

.chart-gridline {
    stroke: var(--border-subtle);
    stroke-width: 1;
}

.chart-line {
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-before {
    stroke: var(--color-sand-500);
    stroke-dasharray: 6 6;
    opacity: 0.75;
}

.chart-line-after {
    stroke: var(--color-sage-600);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.legend-item i {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    display: inline-block;
}

.legend-before i {
    background: var(--color-sand-500);
}

.legend-after i {
    background: var(--color-sage-600);
}

/* PÁGINAS LEGALES (Términos, Privacidad, Contacto) */
.legal-page {
    padding: 50px 0 70px;
}

.legal-container {
    max-width: 760px;
}

.brand-logo-link {
    text-decoration: none;
}

.legal-back {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--color-sage-700);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-back:hover {
    color: var(--color-coral);
}

.legal-title {
    font-family: var(--font-sans);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--color-sage-950);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 30px;
}

.legal-page h2 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-sage-950);
    letter-spacing: -0.02em;
    margin: 38px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-brand);
}

.legal-page h3 {
    font-family: var(--font-sans);
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--color-sage-900);
    margin: 24px 0 8px;
}

.legal-page p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--text-body);
}

.legal-page ul {
    margin: 0 0 18px;
    padding-left: 4px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.legal-page li {
    position: relative;
    padding-left: 20px;
    line-height: 1.65;
}

.legal-page li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-sage-400);
}

.legal-page a {
    color: var(--color-sage-700);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.legal-page a:hover {
    color: var(--color-coral);
}

.legal-emphasis {
    background: var(--color-sage-50);
    border-left: 3px solid var(--color-sage-600);
    padding: 14px 18px;
    border-radius: 0 1rem 1rem 0;
    font-size: 0.95rem;
}

/* Bloques destacados de aviso */
.legal-callout {
    background: var(--color-sand-50);
    border: 1px solid var(--border-brand);
    border-left: 4px solid var(--color-sage-600);
    border-radius: 0 1rem 1rem 0;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 0.94rem;
    line-height: 1.65;
}

.legal-callout-warn {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #d97706;
}

.legal-callout-danger {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
}

/* Tabla de tratamientos de datos */
.legal-table-wrap {
    overflow-x: auto;
    margin: 18px 0 24px;
    border: 1px solid var(--border-brand);
    border-radius: 1rem;
}

.legal-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #ffffff;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.legal-table th {
    background: var(--color-sage-50);
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--color-sage-950);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* Tarjetas de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0 10px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--border-brand);
    border-radius: 1.5rem;
    padding: 24px 22px;
    box-shadow: var(--shadow-soft);
    text-decoration: none !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-sage-400) 0%, var(--color-sage-800) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-sage-950);
    letter-spacing: -0.01em;
    word-break: break-word;
}

.contact-note {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* BARRA CTA FIJA MÓVIL */
.sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-brand);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    display: none;
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
}

.btn-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f57c50 0%, #dc5c2e 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 1rem;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--shadow-glow);
}

/* SECCIÓN FAQ ACCORDION */
.faq-section {
    padding: 55px 0 65px;
}

.faq-container {
    max-width: 760px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-brand);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: border-color var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--color-sage-400);
}

.faq-question {
    padding: 18px 24px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-sage-950);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-sage-600);
    transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: var(--color-coral);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.final-cta {
    margin-top: 42px;
}

/* PIE DE PÁGINA */
.site-footer {
    background-color: var(--color-sage-950);
    color: var(--color-sand-200);
    padding: 45px 0 35px;
    font-size: 0.84rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.footer-disclaimer {
    line-height: 1.6;
    color: #9ebf9e;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--color-sand-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ANIMACIONES */
@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 114, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(242, 114, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(242, 114, 68, 0);
    }
}

@keyframes playPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* RESPONSIVIDAD MÓVIL */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }

    .brand-tagline {
        display: none;
    }

    .hero-section {
        padding: 30px 0 15px;
    }

    .vsl-frame {
        border-radius: 1.5rem;
    }

    .slider-arrow {
        display: none;
    }

    .story-card {
        padding: 26px 20px;
        border-radius: 1.5rem;
    }

    .story-steps-indicator {
        justify-content: flex-start;
        padding-left: 10px;
    }

    .btn-primary {
        padding: 16px 20px;
        border-radius: 1rem;
    }

    .trust-badges {
        gap: 12px;
    }

    .proof-section {
        padding: 60px 0 70px;
    }

    .wave-divider {
        height: 40px;
    }

    .proof-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 18px 16px;
        border-radius: 1.25rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .glucose-chart-card {
        padding: 20px 18px 16px;
        border-radius: 1.25rem;
    }

    body {
        padding-bottom: 78px;
    }

    .sticky-mobile-cta {
        display: block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-page {
        padding: 34px 0 50px;
    }
}

@media (min-width: 769px) {
    .sticky-mobile-cta {
        display: none !important;
    }
}

/*
   Entre 769px y 880px el carrusel ocupa casi todo el ancho disponible y las
   flechas, colocadas a -22px, quedaban cortadas por el borde de la ventana.
   En ese rango se sitúan por dentro del área del slider.
*/
@media (min-width: 769px) and (max-width: 880px) {
    .arrow-prev { left: 4px; }
    .arrow-next { right: 4px; }
}

/* ══════════════════════════════════════════════════════════════
   === RECORRIDO: TIPOGRAFIA SERIF Y PALETA DE MARCA ===
   Alinea la sección de storytelling con el lenguaje visual de los
   documentos entregables: DM Serif Display con acentos en cursiva
   y las insignias dentro de la paleta sage/sand de la marca.
   ══════════════════════════════════════════════════════════════ */

.storytelling-section .section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 3.6vw, 2.55rem);
    letter-spacing: -0.01em;
    line-height: 1.14;
}

.storytelling-section .section-title em {
    font-style: italic;
    color: var(--color-sand-800);
}

.story-card h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.45rem, 2.4vw, 1.72rem);
    letter-spacing: -0.005em;
    line-height: 1.16;
    margin-bottom: 14px;
}

.story-card h3 em {
    font-style: italic;
    color: var(--color-sand-800);
}

/* Insignias de paso: progresión coral → arena → verde, dentro de la marca */
.card-pain .card-step-badge    { background: #fdeee6;                  color: #a83509; }
.card-error .card-step-badge   { background: var(--color-sand-100);    color: var(--color-sand-800); }
.card-science .card-step-badge { background: var(--color-sage-100);    color: var(--color-sage-800); }
.card-method .card-step-badge  { background: var(--color-sage-200);    color: var(--color-sage-900); }
.card-success .card-step-badge { background: var(--color-emerald-light); color: #0b6b48; }

/* El filete del recuadro inferior sigue la misma progresión */
.card-pain .card-highlight    { border-left-color: var(--color-coral); }
.card-error .card-highlight   { border-left-color: var(--color-sand-700); }
.card-science .card-highlight { border-left-color: var(--color-sage-600); }
.card-method .card-highlight  { border-left-color: var(--color-sage-700); }
.card-success .card-highlight { border-left-color: var(--color-emerald); }

/* Un poco más de aire y jerarquía dentro de la tarjeta */
.card-highlight {
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 15px 19px;
}

.story-card p {
    line-height: 1.6;
}

/* Iconografía de línea: el trazo sigue la progresión de cada paso */
.card-icon-box svg { display: block; }
.card-pain .card-icon-box    { color: #a83509; background-color: #fdeee6; border-color: #f6d5c6; }
.card-error .card-icon-box   { color: var(--color-sand-800); background-color: var(--color-sand-50); }
.card-science .card-icon-box { color: var(--color-sage-700); }
.card-method .card-icon-box  { color: var(--color-sage-800); background-color: var(--color-sage-100); }
.card-success .card-icon-box { color: #0b6b48; background-color: var(--color-emerald-light); border-color: #bfe8d5; }

/* ==========================================================================
   SECCIÓN: OFERTA GRAND SLAM & STACK DE VALOR (ALEX HORMOZI FRAMEWORK)
   ========================================================================== */
.stack-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--color-sand-100) 100%);
}

.stack-card-container {
    background: #ffffff;
    border: 2px solid var(--border-brand);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.stack-badge {
    display: inline-block;
    background: var(--color-sage-800);
    color: #ffffff;
    font-family: var(--font-brand);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.stack-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.2;
}

.stack-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stack-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.stack-item {
    display: flex;
    gap: 16px;
    background: var(--color-sand-50);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 20px;
    align-items: flex-start;
}

.highlight-stack-item {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.stack-item-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.stack-item-content {
    width: 100%;
}

.stack-item-content h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.item-value {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-sage-700);
    background: var(--color-sage-100);
    padding: 4px 10px;
    border-radius: 8px;
}

.highlight-stack-item .item-value {
    color: #065f46;
    background: #d1fae5;
}

.stack-item-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
}

.stack-price-box {
    background: var(--color-sage-900);
    color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.price-total-value {
    font-size: 1.1rem;
    color: var(--color-sage-200);
    margin-bottom: 12px;
}

.price-total-value del {
    color: var(--color-coral);
    font-weight: 700;
}

.price-main-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.price-label {
    font-size: 0.95rem;
    color: var(--color-sage-200);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-amount {
    font-family: var(--font-brand);
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 4px 0;
}

.price-amount small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sage-300);
}

.price-sub {
    font-size: 0.88rem;
    color: var(--color-sage-300);
}

.stack-cta-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .stack-card-container {
        padding: 24px 16px;
    }
    .stack-title {
        font-size: 1.5rem;
    }
    .stack-item {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    .stack-item-content h3 {
        flex-direction: column;
        align-items: flex-start;
    }
    .price-amount {
        font-size: 2.8rem;
    }
}
