/* ==========================================================================
   FISIOTERAPIA ONLINE NEXUS — EDITORIAL PROMOTIONAL WEB
   Inspired by Minimalist High-Craft Editorial Choreography ("feel better")
   ========================================================================== */

:root {
    /* Core Palette — Sunlit Alabaster, Deep Charcoal, Clinical Emerald & Warm Amber */
    --ink-primary: #0d1311;
    --ink-secondary: #37423e;
    --ink-muted: #64706b;
    --ivory-surface: rgba(250, 246, 238, 0.86);
    --ivory-solid: #faf6ee;
    --dark-surface: rgba(11, 18, 16, 0.82);
    --dark-card: rgba(17, 27, 24, 0.88);
    --emerald-brand: #1f6e54;
    --emerald-bright: #2ea87e;
    --emerald-glow: rgba(46, 168, 126, 0.22);
    --amber-warm: #c88a2b;
    --border-light: rgba(13, 19, 17, 0.11);
    --border-dark: rgba(255, 255, 255, 0.11);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #ece5d8;
    color: var(--ink-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

::selection {
    background: var(--emerald-brand);
    color: #fff;
}

/* Accessible skip link (off-screen until keyboard focus) */
.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    padding: 0.85rem 1.4rem;
    background: #0b100e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 12px 0;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* ==========================================================================
   1. FULL-BLEED CINEMATIC BACKGROUND STAGE (SCROLL + CURSOR PARALLAX)
   ========================================================================== */
.cinema-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #e9e1d2;
}

.cinema-canvas-wrap {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    will-change: transform, filter;
    transform-origin: 58% 44%;
    transform: translate3d(0px, 0px, 0px) scale(1.05);
}

.cinema-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 38%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    filter: contrast(1.02) saturate(1.03);
    transition: filter 0.6s ease;
}

/* Dynamic atmospheric veils controlled by scroll chapters */
.cinema-veil-daylight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 18% 42%,
        rgba(250, 246, 238, 0.58) 0%,
        rgba(250, 246, 238, 0.22) 38%,
        rgba(250, 246, 238, 0) 68%
    );
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cinema-veil-twilight {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(7, 13, 11, 0.84) 0%,
        rgba(10, 20, 17, 0.72) 52%,
        rgba(12, 24, 20, 0.54) 100%
    );
    opacity: 0;
    will-change: opacity;
}

/* Subtle interactive spotlight following cursor in dark chapters */
.cinema-cursor-glow {
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 168, 126, 0.14) 0%, rgba(46, 168, 126, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    left: 50%;
    top: 50%;
    z-index: 2;
}

/* Floating SVG Physiotherapy Emblem Watermark in Counter-Parallax */
.cinema-svg-watermark {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: min(34vw, 420px);
    height: auto;
    opacity: 0.045;
    pointer-events: none;
    will-change: transform, opacity;
    filter: grayscale(100%) contrast(150%);
}

/* Pure Photo Inspection Mode (hides UI overlays when user holds/toggles button) */
body.pure-photo-mode .scroll-content,
body.pure-photo-mode .hud-bottom-left,
body.pure-photo-mode .hud-bottom-center {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.45s var(--ease-out-expo);
}

body.pure-photo-mode .cinema-veil-twilight,
body.pure-photo-mode .cinema-veil-daylight {
    opacity: 0 !important;
}

/* ==========================================================================
   2. FIXED EDITORIAL HUD CHROME (INSPIRED BY 'SOFI' / 'FEEL BETTER')
   ========================================================================== */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.65rem 3.2vw;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, color 0.4s ease;
}

.hud-header.scrolled-glass {
    padding: 1rem 3.2vw;
    background: rgba(250, 246, 238, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13, 19, 17, 0.07);
}

body.theme-dark-hud .hud-header.scrolled-glass {
    background: rgba(9, 15, 13, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-svg-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(13, 19, 17, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s var(--ease-out-expo), background-color 0.35s ease;
}

.brand-mark:hover .brand-svg-badge {
    transform: rotate(-6deg) scale(1.06);
    background: var(--emerald-brand);
}

.brand-svg-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.12);
}

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

.brand-wordmark {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--ink-primary);
    transition: color 0.4s ease;
}

.brand-wordmark span {
    color: var(--emerald-brand);
    font-weight: 700;
}

.brand-subtag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3d4a45;
    margin-top: 2px;
    transition: color 0.4s ease;
}

body.theme-dark-hud .brand-wordmark {
    color: #f8fafc;
}
body.theme-dark-hud .brand-wordmark span {
    color: #34d399;
}
body.theme-dark-hud .brand-subtag {
    color: #94a3b8;
}

/* Center Navigation Links */
.hud-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 19, 17, 0.08);
    transition: all 0.4s ease;
}

body.theme-dark-hud .hud-nav {
    background: rgba(15, 25, 22, 0.68);
    border-color: rgba(255, 255, 255, 0.1);
}

.hud-nav a {
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-secondary);
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
    position: relative;
}

.hud-nav a:hover,
.hud-nav a.active {
    color: var(--ink-primary);
    font-weight: 600;
}

body.theme-dark-hud .hud-nav a {
    color: #cbd5e1;
}
body.theme-dark-hud .hud-nav a:hover,
body.theme-dark-hud .hud-nav a.active {
    color: #ffffff;
}

/* Right Actions + Asterisk Symbol (homage to 'sofi') */
.hud-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-pure-view {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 19, 17, 0.12);
    color: var(--ink-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.btn-pure-view:hover {
    transform: scale(1.07);
    background: #fff;
}

body.theme-dark-hud .btn-pure-view {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

.btn-hud-app {
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    color: #fff;
    background: var(--ink-primary);
    padding: 0.62rem 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.3s var(--ease-out-expo), background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(13, 19, 17, 0.16);
}

.btn-hud-app:hover {
    background: var(--emerald-brand);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(31, 110, 84, 0.28);
}

body.theme-dark-hud .btn-hud-app {
    background: #10b981;
    color: #042f2e;
}

.hud-asterisk-btn {
    background: transparent;
    border: none;
    color: var(--ink-primary);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.5s var(--ease-out-expo), color 0.3s ease;
}

.hud-asterisk-btn:hover {
    transform: rotate(90deg);
}

body.theme-dark-hud .hud-asterisk-btn {
    color: #f8fafc;
}

/* Bottom Fixed Editorial Bar (Exact homage to 'sofi - feel better') */
.hud-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 3.2vw;
    pointer-events: none;
    transition: color 0.4s ease;
}

.hud-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink-primary);
    background: rgba(250, 246, 238, 0.75);
    backdrop-filter: blur(10px);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 19, 17, 0.08);
    pointer-events: auto;
    transition: all 0.4s ease;
}

body.theme-dark-hud .hud-bottom-left {
    color: #e2e8f0;
    background: rgba(11, 19, 17, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
}

.hud-dot {
    opacity: 0.45;
}

.hud-bottom-center {
    pointer-events: auto;
}

.btn-pill-sofi {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #0d1311;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.78rem 1.65rem;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.35s var(--ease-out-expo), background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-pill-sofi:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--emerald-brand);
    box-shadow: 0 18px 38px rgba(31, 110, 84, 0.38);
}

.btn-pill-sofi .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulseEmerald 2s infinite;
}

@keyframes pulseEmerald {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hud-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-primary);
    background: rgba(250, 246, 238, 0.75);
    backdrop-filter: blur(10px);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 19, 17, 0.08);
    pointer-events: auto;
    transition: all 0.4s ease;
}

body.theme-dark-hud .hud-bottom-right {
    color: #e2e8f0;
    background: rgba(11, 19, 17, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
}

.scroll-progress-track {
    width: 88px;
    height: 2px;
    background: rgba(13, 19, 17, 0.16);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

body.theme-dark-hud .scroll-progress-track {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--emerald-brand);
    transition: width 0.1s linear;
}

body.theme-dark-hud .scroll-progress-bar {
    background: #34d399;
}

.scroll-pct {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    min-width: 34px;
    text-align: right;
}

/* ==========================================================================
   3. SCROLLING EDITORIAL STORY CHAPTERS
   ========================================================================== */
.scroll-content {
    position: relative;
    z-index: 10;
    transition: opacity 0.45s ease;
}

/* CHAPTER 1: HERO ('feel better' -> 'trata mejor.') */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 7rem 5.5vw 6rem 5.5vw;
    position: relative;
}

.hero-editorial-col {
    max-width: 630px;
    position: relative;
    z-index: 5;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 19, 17, 0.07);
    border: 1px solid rgba(13, 19, 17, 0.12);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: 1.4rem;
    backdrop-filter: blur(6px);
}

.hero-kicker strong {
    color: var(--emerald-brand);
}

.hero-display-title {
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 9.4vw, 8.4rem);
    font-weight: 800;
    line-height: 0.89;
    letter-spacing: -0.055em;
    color: #0b100e;
    margin-bottom: 1.65rem;
}

.hero-display-title .accent-italic {
    display: block;
    font-weight: 700;
    color: var(--emerald-brand);
    letter-spacing: -0.05em;
}

.hero-lead {
    font-size: clamp(0.98rem, 1.18vw, 1.12rem);
    line-height: 1.58;
    color: #26312d;
    max-width: 440px;
    font-weight: 450;
    margin-bottom: 2.1rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #0b100e;
    color: #ffffff;
    text-decoration: none;
    padding: 0.98rem 1.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.35s var(--ease-out-expo);
    box-shadow: 0 14px 30px rgba(11, 16, 14, 0.2);
}

.btn-hero-primary:hover {
    background: var(--emerald-brand);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(31, 110, 84, 0.32);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(250, 246, 238, 0.78);
    backdrop-filter: blur(10px);
    color: #0b100e;
    text-decoration: none;
    padding: 0.95rem 1.55rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid rgba(13, 19, 17, 0.16);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: #ffffff;
    border-color: #0b100e;
}

.hero-micro-note {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: #495651;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-micro-note span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Floating Live Clinical Callout Pill over the Photography (Right Side) */
.hero-floating-annotation {
    position: absolute;
    right: 6vw;
    top: 24vh;
    background: rgba(13, 19, 17, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #f8fafc;
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 255px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    animation: floatGentle 5s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

.annotation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #34d399;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.annotation-body {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #e2e8f0;
}

/* CHAPTER 2: EDITORIAL MANIFESTO & CAMERA PAN PAUSE */
.manifesto-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 6rem 5.5vw;
}

.manifesto-card {
    max-width: 580px;
    background: rgba(250, 246, 238, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(13, 19, 17, 0.1);
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 3.25rem);
    box-shadow: 0 28px 65px rgba(13, 19, 17, 0.14);
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--emerald-brand);
    font-weight: 600;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manifesto-title {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 3.2vw, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #0d1311;
    margin-bottom: 1.25rem;
}

.manifesto-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #2f3b37;
    margin-bottom: 1.6rem;
}

.manifesto-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(13, 19, 17, 0.1);
}

.metric-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0d1311;
}

.metric-item span {
    font-size: 0.78rem;
    color: #52605b;
    line-height: 1.3;
    display: block;
    margin-top: 2px;
}

/* CHAPTER 3: INTERACTIVE PRODUCT SHOWCASE (DARK STUDIO CHAPTER) */
.showcase-section {
    min-height: 110vh;
    padding: 7rem 5.5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-container {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.showcase-header-left {
    max-width: 640px;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.showcase-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.85rem;
}

/* Interactive Feature Tabs */
.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.75rem;
}

.showcase-tab {
    background: rgba(15, 25, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.78rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.showcase-tab:hover {
    border-color: rgba(52, 211, 153, 0.45);
    color: #ffffff;
}

.showcase-tab.active {
    background: #10b981;
    color: #022c22;
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.28);
}

.showcase-tab.active .tab-num {
    opacity: 1;
    color: #022c22;
}

.tab-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    opacity: 0.75;
}

/* Interactive App Stage Window */
.showcase-stage {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2rem;
    background: rgba(11, 19, 17, 0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
    align-items: center;
}

.stage-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
}

.stage-info p {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.62;
    margin-bottom: 1.4rem;
}

.stage-copy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.stage-copy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.stage-copy-list li .check-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Realistic Interactive UI Mockup Window inside Showcase */
.stage-ui-window {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.ui-window-bar {
    background: #020617;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}

.ui-dots {
    display: flex;
    gap: 6px;
}

.ui-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ui-url-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #94a3b8;
    background: #0f172a;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid #1e293b;
}

.ui-window-body {
    padding: 1.35rem;
    background: #f8fafc;
    color: #0f172a;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* CHAPTER 4: DEMO SANDBOX CALLOUT + ROI SIMULATOR */
.sandbox-section {
    padding: 6rem 5.5vw;
}

.sandbox-grid {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.glass-panel-dark {
    background: rgba(11, 19, 17, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: clamp(1.75rem, 3vw, 2.6rem);
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.demo-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.glass-panel-dark h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
    line-height: 1.15;
}

.glass-panel-dark p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

.demo-steps-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.6rem;
}

.demo-step-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem;
}

.demo-step-box strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: #34d399;
    margin-bottom: 0.3rem;
}

.demo-step-box span {
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.35;
    display: block;
}

/* Interactive Clinic Time & Debt Recovery Calculator */
.calc-slider-wrap {
    margin: 1.4rem 0;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.calc-label-row strong {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #34d399;
}

.calc-range {
    width: 100%;
    accent-color: #10b981;
    height: 6px;
    border-radius: 4px;
    cursor: pointer;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.calc-result-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 1rem;
}

.calc-result-card .big-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #34d399;
    line-height: 1;
}

.calc-result-card span {
    display: block;
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 0.35rem;
    line-height: 1.35;
}

/* CHAPTER 5: CONTACT & PRIVATE SUBSCRIPTION FORM (SIMILAR TO THE APP) */
.contact-section {
    min-height: 95vh;
    padding: 6rem 5.5vw 8rem 5.5vw;
    display: flex;
    align-items: center;
}

.contact-grid {
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}

.contact-editorial-card {
    background: rgba(250, 246, 238, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(13, 19, 17, 0.12);
    border-radius: 26px;
    padding: clamp(1.8rem, 3.2vw, 2.8rem);
    box-shadow: 0 24px 60px rgba(13, 19, 17, 0.14);
}

.contact-editorial-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #0d1311;
    margin-bottom: 1rem;
}

.contact-editorial-card p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #33403c;
    margin-bottom: 1.5rem;
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #222d29;
}

.trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(31, 110, 84, 0.12);
    color: var(--emerald-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* The Private Contact Form (Dark Slate Card matching the App's modal-contacto-seguro) */
.nexus-contact-card {
    background: #0f172a;
    color: #f3f4f6;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    box-shadow: 0 28px 65px rgba(2, 6, 23, 0.45);
}

.nexus-contact-card h3 {
    color: #60a5fa;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nexus-contact-card .form-lead {
    font-size: 0.86rem;
    color: #9ca3af;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.nexus-form-group {
    margin-bottom: 0.85rem;
}

.nexus-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.nexus-form-row-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.nexus-form-label {
    font-size: 0.79rem;
    color: #cbd5e1;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.nexus-input,
.nexus-textarea,
.nexus-select {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexus-input:focus,
.nexus-textarea:focus,
.nexus-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.nexus-textarea {
    resize: vertical;
    min-height: 86px;
}

.btn-submit-contact {
    width: 100%;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-submit-contact:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-submit-contact:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Minimalist Footer */
.editorial-footer {
    position: relative;
    z-index: 15;
    background: rgba(7, 12, 10, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 5.5vw 5.5rem 5.5vw;
    color: #94a3b8;
    font-size: 0.82rem;
}

.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links button {
    background: none;
    border: none;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
    color: #ffffff;
}

/* Modal Overlay for Legal & Quick Drawer */
.editorial-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.editorial-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* CHAPTER 3.5: CLINIC OWNER ADVANTAGES & TEAM COLLABORATION */
.team-section {
    padding: 6rem 5.5vw 4rem 5.5vw;
}

.team-container {
    max-width: 1260px;
    margin: 0 auto;
}

.team-header {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.team-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #f8fafc;
    margin-bottom: 0.85rem;
}

.team-header p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.team-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.team-card {
    background: rgba(11, 19, 17, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.6rem;
    color: #f8fafc;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, 0.35);
}

.team-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.team-card p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.team-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.team-banner-sovereignty {
    background: linear-gradient(135deg, rgba(31, 110, 84, 0.35) 0%, rgba(15, 25, 22, 0.85) 100%);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 20px;
    padding: 1.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #f8fafc;
}

.team-banner-sovereignty strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.3rem;
}

.team-banner-sovereignty p {
    font-size: 0.88rem;
    color: #cbd5e1;
    max-width: 720px;
    line-height: 1.5;
    margin: 0;
}

/* Legal modal styling for thorough documents */
.editorial-modal-box.modal-large {
    max-width: 740px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.legal-scroll-content {
    overflow-y: auto;
    padding-right: 12px;
    line-height: 1.65;
    font-size: 0.86rem;
    color: #cbd5e1;
    flex: 1;
}

.legal-scroll-content h4 {
    color: #38bdf8;
    font-size: 0.98rem;
    margin: 1.2rem 0 0.4rem 0;
    font-family: var(--font-display);
}

.legal-scroll-content p {
    margin-bottom: 0.85rem;
}

.legal-scroll-content ul {
    margin: 0.5rem 0 1rem 1.4rem;
}

.legal-scroll-content li {
    margin-bottom: 0.4rem;
}

.editorial-modal-box {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    padding: 1.8rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
    .hud-nav {
        display: none;
    }
    .hero-floating-annotation {
        display: none;
    }
    .showcase-stage,
    .sandbox-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hud-bottom-left {
        display: none;
    }
    .hud-bottom-bar {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .hero-display-title {
        font-size: clamp(3.3rem, 14vw, 4.6rem);
    }
    .manifesto-metrics,
    .demo-steps-mini,
    .nexus-form-row,
    .nexus-form-row-asymmetric {
        grid-template-columns: 1fr;
    }
    .btn-hud-app span.hide-mobile {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-floating-annotation,
    .btn-pill-sofi .pulse-dot {
        animation: none !important;
    }
}
