/* ===========================================================
   MedExpert IA — Landing System (compartido por todas las
   páginas públicas: index, funciones, bases-ia, herramientas,
   planes, legal). Paleta y sistema de diseño unificado.
   =========================================================== */

:root {
    --brand-primary: #6366f1;
    --brand-secondary: #8b5cf6;
    --brand-tertiary: #a78bfa;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #8b5cf6 100%);
    --brand-light: #eef2ff;
    --brand-dark: #4f46e5;
    --brand-glow: rgba(99, 102, 241, 0.5);

    --bg-deep: #0f0f23;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e3a;
    --bg-section: #0d0d1f;
    --bg-section-alt: #12122a;
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-input-focus: rgba(99, 102, 241, 0.08);

    --glass-bg: rgba(22, 22, 42, 0.85);
    --glass-bg-light: rgba(22, 22, 42, 0.6);
    --glass-border: rgba(99, 102, 241, 0.2);
    --glass-highlight: rgba(139, 92, 246, 0.1);

    --text-white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-subtle: rgba(99, 102, 241, 0.15);
    --border-active: rgba(99, 102, 241, 0.5);

    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 25px 80px -20px rgba(0, 0, 0, 0.5);
    --shadow-button: 0 8px 30px rgba(99, 102, 241, 0.4);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gold: #fbbf24;
    --gold-deep: #f59e0b;

    --ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-base: all 0.3s var(--ease-premium);
    --transition-slow: all 0.5s var(--ease-premium);

    /* Tipografía consolidada (Sprint 1 - 2026-05-21):
       UI/body = Inter, titulares = Space Grotesk, código = JetBrains Mono.
       Solo 3 familias se cargan en _landing_base.html. */
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.landing-page {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Limpiar estilos heredados de base.html que pueden interferir */
body.landing-page > main { padding: 0; }
body.landing-page .flash-messages { position: fixed; top: 64px; right: 1.5rem; z-index: 1100; max-width: 360px; }

/* Scrollbar custom */
body.landing-page::-webkit-scrollbar { width: 10px; }
body.landing-page::-webkit-scrollbar-track { background: var(--bg-deep); }
body.landing-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 10px;
}

/* ============================================
   GLOBAL ANIMATED BACKGROUND
   ============================================ */
.bg-canvas-global {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
}
.gradient-orb-global {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.4;
    animation: orbFloatGlobal 25s ease-in-out infinite;
}
.orb-g1 { width: 800px; height: 800px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    top: -400px; left: -400px; }
.orb-g2 { width: 600px; height: 600px;
    background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
    bottom: -300px; right: -300px; animation-delay: -10s; }
.orb-g3 { width: 500px; height: 500px;
    background: radial-gradient(circle, var(--brand-tertiary) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    opacity: 0.2; animation-delay: -15s; }

@keyframes orbFloatGlobal {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.grid-pattern-global {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-premium {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.55rem 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}
.navbar-premium.scrolled {
    padding: 0.4rem 0;
    background: rgba(15, 15, 35, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-container {
    max-width: none; width: 100%; margin: 0; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand-premium {
    display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
}
.navbar-logo {
    width: 32px; height: 32px; object-fit: contain;
    filter: drop-shadow(0 0 8px var(--brand-glow));
}
.navbar-title {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}
.navbar-nav-premium {
    display: flex; align-items: center; gap: 0.2rem; list-style: none;
}
.nav-link-premium {
    display: block; padding: 0.4rem 0.75rem;
    font-size: 0.84rem; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
}
.nav-link-premium:hover { color: var(--text-white); background: var(--bg-input); }
.nav-link-premium.active { color: var(--brand-primary); }
.nav-link-premium.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 22px; height: 3px;
    background: var(--brand-gradient); border-radius: 3px;
}

/* Link Suscripción — pill brillante con estetoscopio: llama la atención sin
   ser chillón. Combina shine que cruza + glow pulsante + icono con shimmer. */
.nav-link-premium.nav-pricing {
    padding: 0.45rem 1.05rem;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.18) 0%,
        rgba(34, 211, 238, 0.18) 100%);
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    animation: navPricingGlow 2.6s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-premium.nav-pricing i {
    margin-right: 0.35rem;
    color: #22d3ee;
    /* shimmer del icono: se ilumina y vuelve, fuera de fase con el glow */
    animation: navPricingIconShine 2.6s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}
.nav-link-premium.nav-pricing::before {
    /* Brillo diagonal que cruza el botón */
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%);
    animation: navPricingShine 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes navPricingGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55),
                            0 0 14px rgba(99, 102, 241, 0.25); }
    50%      { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0),
                            0 0 22px rgba(34, 211, 238, 0.45); }
}
@keyframes navPricingShine {
    0%   { left: -100%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}
@keyframes navPricingIconShine {
    0%, 100% { color: #22d3ee; text-shadow: 0 0 8px rgba(34, 211, 238, 0.5); }
    50%      { color: #a5f3fc; text-shadow: 0 0 14px rgba(165, 243, 252, 0.95); }
}
.nav-link-premium.nav-pricing:hover {
    color: #fff;
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(34, 211, 238, 0.7);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.32) 0%,
        rgba(34, 211, 238, 0.32) 100%);
    box-shadow: 0 6px 22px rgba(34, 211, 238, 0.45);
    animation-play-state: paused;
}
.nav-link-premium.nav-pricing:hover i {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}
.nav-link-premium.nav-pricing.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}
.nav-link-premium.nav-pricing.active i { color: #fff; }
/* Respeto a usuarios con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .nav-link-premium.nav-pricing,
    .nav-link-premium.nav-pricing i,
    .nav-link-premium.nav-pricing::before { animation: none; }
}

.btn-nav-login {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1rem; font-size: 0.82rem; font-weight: 600;
    color: white; background: var(--brand-gradient);
    border: none; border-radius: var(--radius-md);
    text-decoration: none; transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-left: 0.4rem;
}
.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}
.btn-nav-register {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.95rem; font-size: 0.82rem; font-weight: 600;
    color: #ffffff; background: transparent;
    border: 2px solid rgba(139, 92, 246, 0.55);
    border-radius: var(--radius-md);
    text-decoration: none; transition: var(--transition-base);
    margin-left: 0.3rem;
}
.btn-nav-register:hover {
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.9);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.3);
}

/* Mobile menu */
.navbar-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.navbar-toggle span {
    width: 25px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================
   SECTION BASE
   ============================================ */
.section { position: relative; padding: 6rem 0; z-index: 1; }
.section-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem; background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    font-size: 0.72rem; font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 800;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 640px; margin: 0 auto; line-height: 1.7;
}

/* ============================================
   HERO (index)
   ============================================ */
.hero-section {
    position: relative; min-height: calc(100vh - 0px);
    display: flex; align-items: center;
    padding: 5.5rem 0 3.5rem;
    overflow: clip;
    overflow-clip-margin: 160px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: var(--brand-gradient); opacity: 0.08; z-index: 0;
}
.hero-container {
    max-width: 1560px; margin: 0 auto; padding: 0 3rem;
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.3fr 0.85fr;
    gap: 3rem; align-items: center;
}
.hero-content {
    animation: heroReveal 1s var(--ease-premium) forwards;
    opacity: 0;
}
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    font-size: 0.78rem; font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--success); border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem; font-weight: 800;
    line-height: 1.08; margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 1.75rem; max-width: 720px;
}

.hero-buttons {
    display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.95rem 1.85rem; font-size: 0.98rem; font-weight: 600;
    color: white; background: var(--brand-gradient);
    border: none; border-radius: var(--radius-lg);
    text-decoration: none; transition: var(--transition-base);
    box-shadow: var(--shadow-button);
    position: relative; overflow: hidden;
}
.btn-hero-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: left 0.5s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    color: white;
}
.btn-hero-primary:hover::before { left: 100%; }
.btn-hero-secondary {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.95rem 1.85rem; font-size: 0.98rem; font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none; transition: var(--transition-base);
}
.btn-hero-secondary:hover {
    background: var(--glass-highlight);
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    color: var(--text-white);
}

/* Variante hero "Ver suscripción" — brilla y resalta sin pelearle al primario */
.btn-hero-secondary.btn-hero-suscripcion {
    color: #fff;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.22) 0%,
        rgba(34, 211, 238, 0.22) 100%);
    border: 2px solid rgba(99, 102, 241, 0.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    animation: heroPricingGlow 2.6s ease-in-out infinite;
}
.btn-hero-secondary.btn-hero-suscripcion i {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
    animation: heroPricingIconShine 2.6s ease-in-out infinite;
}
.btn-hero-secondary.btn-hero-suscripcion::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.32) 50%,
        transparent 100%);
    animation: heroPricingShine 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroPricingGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55),
                            0 4px 18px rgba(99, 102, 241, 0.30); }
    50%      { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0),
                            0 6px 28px rgba(34, 211, 238, 0.50); }
}
@keyframes heroPricingShine {
    0%   { left: -100%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}
@keyframes heroPricingIconShine {
    0%, 100% { color: #22d3ee; text-shadow: 0 0 10px rgba(34, 211, 238, 0.55); }
    50%      { color: #a5f3fc; text-shadow: 0 0 18px rgba(165, 243, 252, 0.95); }
}
.btn-hero-secondary.btn-hero-suscripcion:hover {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.38) 0%,
        rgba(34, 211, 238, 0.38) 100%);
    border-color: rgba(34, 211, 238, 0.85);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.50);
    animation-play-state: paused;
}
.btn-hero-secondary.btn-hero-suscripcion:hover i {
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.95);
}
@media (prefers-reduced-motion: reduce) {
    .btn-hero-secondary.btn-hero-suscripcion,
    .btn-hero-secondary.btn-hero-suscripcion i,
    .btn-hero-secondary.btn-hero-suscripcion::before { animation: none; }
}

.hero-stats {
    display: flex; gap: 2.25rem; padding-top: 1.25rem;
    border-top: 1px dashed var(--border-subtle);
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.85rem; font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; margin-bottom: 0.25rem;
}
.hero-stat-label {
    font-size: 0.8rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}

.hero-visual {
    position: relative;
    animation: heroVisualReveal 1s var(--ease-premium) 0.3s forwards;
    opacity: 0;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes heroVisualReveal {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-image-wrapper {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}
.hero-image-wrapper::before {
    content: ''; position: absolute; top: -1px;
    left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}
.hero-image {
    width: 100%; height: auto; display: block;
    border-radius: var(--radius-xl);
    animation: heroImageFloat 6s ease-in-out infinite;
}
@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-float-card {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    animation: floatCard 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* Cards distribuidas en las esquinas del hero-visual completo */
.hero-float-card {
    position: absolute;
    z-index: 3;
}
.hero-float-card.card-1 { top: 8%;    left: 0;  animation-delay: 0s; }
.hero-float-card.card-2 { top: 8%;    right: 0; animation-delay: -2s; }
.hero-float-card.card-3 { bottom: 8%; left: 0;  animation-delay: -1s; }
.hero-float-card.card-4 { bottom: 8%; right: 0; animation-delay: -3s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    color: white; font-size: 1.05rem;
}
.float-text { font-size: 0.85rem; }
.float-text strong { display: block; color: var(--text-primary); font-weight: 600; }
.float-text span { color: var(--text-muted); font-size: 0.76rem; }

/* ============================================
   EXPLORA — tira de mini-cards en index
   ============================================ */
.explora-strip {
    position: relative; z-index: 1;
    padding: 0 0 5rem;
}
.explora-grid {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.explora-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.35rem;
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex; flex-direction: column; gap: 0.6rem;
}
.explora-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 60%);
    opacity: 0; transition: opacity 0.4s var(--ease-premium);
    pointer-events: none;
}
.explora-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary);
    box-shadow: 0 18px 45px rgba(99, 102, 241, 0.22);
    color: var(--text-primary);
}
.explora-card:hover::before { opacity: 1; }
.explora-card.is-pricing {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), var(--glass-bg) 70%);
}
.explora-card.is-pricing:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 18px 45px rgba(251, 191, 36, 0.25);
}
.explora-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    color: white; font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.explora-card.is-pricing .explora-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.45);
}
.explora-title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--text-primary);
}
.explora-text {
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.5;
}
.explora-arrow {
    margin-top: auto; font-size: 0.78rem;
    color: var(--brand-primary); font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: var(--transition-base);
}
.explora-card.is-pricing .explora-arrow { color: var(--gold); }
.explora-card:hover .explora-arrow { gap: 0.7rem; }

/* ============================================
   FEATURE CARDS (Funciones)
   ============================================ */
.features-section { background: var(--bg-section); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem 1.85rem;
    transition: var(--transition-base);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease-premium);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon-box {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    font-size: 1.4rem; color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-base);
}
.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}
.feature-title {
    font-family: var(--font-display);
    font-size: 1.18rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.feature-text {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.65;
}
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }
.feature-card:nth-child(7) { transition-delay: 0.35s; }
.feature-card:nth-child(8) { transition-delay: 0.4s; }
.feature-card:nth-child(9) { transition-delay: 0.45s; }

/* ============================================
   STATS BAND
   ============================================ */
.stats-section {
    background: var(--brand-gradient);
    position: relative; overflow: hidden;
}
.stats-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    position: relative; z-index: 1;
}
.stat-card { text-align: center; padding: 1.5rem 1rem; transition: var(--transition-base); }
.stat-card:hover { transform: translateY(-8px); }
.stat-value {
    font-family: var(--font-display);
    font-size: 3.25rem; font-weight: 800;
    color: white; line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); font-weight: 500; }

/* ============================================
   AI MODELS (Bases & IA)
   ============================================ */
.models-section { background: var(--bg-section-alt); }
.models-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.model-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem 1.6rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.model-card.visible { opacity: 1; transform: translateY(0); }
.model-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 22px 55px rgba(99, 102, 241, 0.22);
}
.model-logo-wrapper {
    width: 88px; height: 88px;
    margin: 0 auto 1.15rem;
    background: var(--bg-input);
    border: 3px solid var(--border-subtle);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-base);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.model-card:hover .model-logo-wrapper {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--brand-primary);
}
.model-logo-wrapper img { width: 52px; height: 52px; object-fit: contain; }
.model-name {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.65rem;
}
.model-description {
    font-size: 0.9rem; color: var(--text-secondary);
    line-height: 1.65; margin-bottom: 1.15rem;
}
.model-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem;
}
.model-tag {
    padding: 0.32rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.72rem; font-weight: 600;
    color: var(--brand-primary);
    transition: var(--transition-base);
}
.model-tag:hover {
    background: var(--brand-gradient); color: white;
    border-color: transparent; transform: translateY(-2px);
}
.model-card:nth-child(1) { transition-delay: 0.05s; }
.model-card:nth-child(2) { transition-delay: 0.1s; }
.model-card:nth-child(3) { transition-delay: 0.15s; }
.model-card:nth-child(4) { transition-delay: 0.2s; }
.model-card:nth-child(5) { transition-delay: 0.25s; }
.model-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   DATABASES (Bases & IA)
   ============================================ */
.databases-section {
    background: var(--bg-section);
    position: relative; overflow: hidden;
}
.databases-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.3;
}
.databases-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
}
.database-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.1rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.database-card.visible { opacity: 1; transform: translateY(0); }
.database-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--db-color, var(--brand-primary));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease-premium);
}
.database-card:hover {
    transform: translateY(-6px);
    border-color: var(--db-color, var(--brand-primary));
    box-shadow: 0 18px 45px rgba(99, 102, 241, 0.18);
}
.database-card:hover::before { transform: scaleX(1); }
.database-card:nth-child(1) { transition-delay: 0.05s; }
.database-card:nth-child(2) { transition-delay: 0.1s; }
.database-card:nth-child(3) { transition-delay: 0.15s; }
.database-card:nth-child(4) { transition-delay: 0.2s; }
.database-card:nth-child(5) { transition-delay: 0.25s; }
.database-card:nth-child(6) { transition-delay: 0.3s; }
.database-card:nth-child(7) { transition-delay: 0.35s; }
.database-card:nth-child(8) { transition-delay: 0.4s; }
.database-card:nth-child(9) { transition-delay: 0.45s; }
.database-card:nth-child(10) { transition-delay: 0.5s; }

.database-icon {
    width: 60px; height: 60px;
    margin: 0 auto 0.9rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--db-color, var(--brand-primary)) 22%, transparent) 0%,
        color-mix(in srgb, var(--db-color, var(--brand-primary)) 5%, transparent) 100%);
    border: 2px solid color-mix(in srgb, var(--db-color, var(--brand-primary)) 40%, transparent);
    border-radius: 18px;
    color: var(--db-color, var(--brand-primary));
    font-size: 1.5rem;
    transition: var(--transition-base);
}
.database-card:hover .database-icon { transform: scale(1.12) rotate(-5deg); }
.database-name {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.45rem;
}
.database-desc {
    font-size: 0.78rem; color: var(--text-secondary);
    line-height: 1.55; margin-bottom: 0.9rem; min-height: 60px;
}
.database-tag {
    display: inline-block;
    padding: 0.26rem 0.7rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.66rem; font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============================================
   TOOLS
   ============================================ */
.tools-section { background: var(--bg-section); position: relative; }
.tools-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.tool-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem 1.65rem;
    transition: var(--transition-base);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.tool-card.visible { opacity: 1; transform: translateY(0); }
.tool-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at top right,
        rgba(139, 92, 246, 0.10) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s var(--ease-premium);
    pointer-events: none;
}
.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 22px 55px rgba(99, 102, 241, 0.22);
}
.tool-card:hover::before { opacity: 1; }
.tool-number {
    position: absolute; top: 1.1rem; right: 1.35rem;
    font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.22; line-height: 1;
}
.tool-icon {
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    color: white; font-size: 1.35rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-base);
}
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-6deg); }
.tool-title {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.45rem;
}
.tool-desc {
    font-size: 0.88rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 1.1rem;
}
.tool-list { list-style: none; padding: 0; margin: 0; }
.tool-list li {
    position: relative; padding: 0.4rem 0 0.4rem 1.4rem;
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.5;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.1);
}
.tool-list li:last-child { border-bottom: none; }
.tool-list li::before {
    content: ''; position: absolute;
    left: 0; top: 0.78rem;
    width: 6px; height: 6px;
    background: var(--brand-gradient);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}
.tool-card:nth-child(1) { transition-delay: 0.05s; }
.tool-card:nth-child(2) { transition-delay: 0.1s; }
.tool-card:nth-child(3) { transition-delay: 0.15s; }
.tool-card:nth-child(4) { transition-delay: 0.2s; }
.tool-card:nth-child(5) { transition-delay: 0.25s; }
.tool-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   PRICING / PLANES — single fold layout
   ============================================ */

/* Layout single-fold (sin scroll) en desktop */
body.no-scroll-page {
    height: 100vh;
    overflow: hidden;
}
body.no-scroll-page > main {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.planes-fold {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3.75rem 1.75rem 1rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    gap: 1rem;
    overflow: hidden;
    min-height: 0;
}
.planes-fold-header {
    text-align: center;
    flex-shrink: 0;
}
.planes-fold-title {
    font-family: var(--font-display);
    font-size: 1.85rem; font-weight: 800;
    line-height: 1.15;
    margin: 0.5rem 0 0.4rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.planes-fold-subtitle {
    font-size: 0.92rem; color: var(--text-secondary);
    max-width: 640px; margin: 0 auto;
}

.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
    align-items: stretch;
}
.pricing-grid-fold {
    flex: 1 1 0;
    min-height: 0;
}
.pricing-grid-fold .plan-card {
    padding: 1.1rem 1.1rem 1rem;
    min-height: 0;
    overflow: visible;
}
/* CTA y formulario: nunca se reducen ni se cortan */
.pricing-grid-fold form,
.pricing-grid-fold .plan-cta {
    flex-shrink: 0;
}
/* Lista de features: visible al 100%, sin scroll interno */
.pricing-grid-fold .plan-features {
    flex: 1 1 auto;
    margin: 0 0 0.85rem;
    overflow: visible;
}
.pricing-grid-fold .plan-icon-wrap {
    width: 38px; height: 38px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
}
.pricing-grid-fold .plan-name {
    font-size: 1.1rem; margin-bottom: 0.15rem;
}
.pricing-grid-fold .plan-tagline {
    font-size: 0.74rem; margin-bottom: 0.6rem;
    min-height: 0; line-height: 1.35;
}
.pricing-grid-fold .plan-price {
    margin-bottom: 0.15rem;
}
.pricing-grid-fold .plan-price-amount { font-size: 2rem; }
.pricing-grid-fold .plan-price-currency { font-size: 0.9rem; }
.pricing-grid-fold .plan-price-period { font-size: 0.74rem; }
.pricing-grid-fold .plan-price-note {
    font-size: 0.68rem; margin-bottom: 0.7rem;
    min-height: 0; line-height: 1.3;
}
.pricing-grid-fold .plan-features li {
    padding: 0.28rem 0 0.28rem 1.4rem;
    font-size: 0.76rem;
    line-height: 1.32;
    border-bottom: none;
}
.pricing-grid-fold .plan-features li::before {
    top: 0.36rem;
    width: 15px; height: 15px;
    font-size: 0.6rem;
}
.pricing-grid-fold .plan-cta {
    padding: 0.7rem 0.95rem;
    font-size: 0.85rem;
}

/* Variante de icono leaf (verde) para Esencial */
.plan-icon-wrap.is-leaf {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}
.plan-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.85rem;
    display: flex; flex-direction: column;
    transition: var(--transition-base);
    overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.plan-card.visible { opacity: 1; transform: translateY(0); }
.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.25);
}
.plan-card:nth-child(1) { transition-delay: 0.08s; }
.plan-card:nth-child(2) { transition-delay: 0.16s; }
.plan-card:nth-child(3) { transition-delay: 0.24s; }
.plan-card:nth-child(4) { transition-delay: 0.32s; }

/* Plan destacado (Clínico) - MÁS POPULAR
   Fondo opaco (mismo que las demás) + halo exterior pulsante
   que NO interfiere con el contraste del texto. */
.plan-card.is-featured {
    background: var(--bg-card);
    border: 1.5px solid rgba(139, 92, 246, 0.55);
    transform: translateY(-12px);
    z-index: 2;
    animation: featuredHaloPulse 3.2s ease-in-out infinite;
}
.plan-card.is-featured.visible { transform: translateY(-12px); }
.plan-card.is-featured:hover {
    transform: translateY(-18px);
    border-color: rgba(167, 139, 250, 0.85);
}

@keyframes featuredHaloPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(99, 102, 241, 0.35),
            0 0 28px rgba(99, 102, 241, 0.32),
            0 0 60px rgba(139, 92, 246, 0.18);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(167, 139, 250, 0.55),
            0 0 48px rgba(99, 102, 241, 0.55),
            0 0 110px rgba(139, 92, 246, 0.35);
    }
}

/* En modo single-fold el featured no se eleva (rompería el layout) */
.pricing-grid-fold .plan-card.is-featured,
.pricing-grid-fold .plan-card.is-featured.visible { transform: translateY(0); }
.pricing-grid-fold .plan-card.is-featured:hover { transform: translateY(-6px); }

.plan-card.is-featured .plan-cta {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

/* Plan Élite - dorado */
.plan-card.is-elite {
    background: linear-gradient(160deg,
        rgba(251, 191, 36, 0.10) 0%,
        rgba(245, 158, 11, 0.07) 50%,
        rgba(22, 22, 42, 0.85) 100%);
    border-color: rgba(251, 191, 36, 0.35);
}
.plan-card.is-elite:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 25px 60px rgba(251, 191, 36, 0.25);
}
.plan-card.is-elite .plan-icon-wrap {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.4);
}
.plan-card.is-elite .plan-price-amount,
.plan-card.is-elite .plan-name {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.plan-card.is-elite .plan-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #1f1700;
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.4);
}

.plan-badge {
    position: absolute; top: 1rem; right: 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
}
.plan-card.is-elite .plan-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #1f1700;
    box-shadow: 0 6px 14px rgba(251, 191, 36, 0.4);
}

.plan-icon-wrap {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    color: white; font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.3);
}
.plan-card.is-free .plan-icon-wrap {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 8px 22px rgba(100, 116, 139, 0.3);
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.plan-tagline {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 1.5rem; min-height: 38px;
}

.plan-price {
    display: flex; align-items: baseline; gap: 0.35rem;
    margin-bottom: 0.4rem;
}
.plan-price-currency {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-secondary);
}
.plan-price-amount {
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 800; line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.plan-card.is-free .plan-price-amount {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.plan-price-period {
    font-size: 0.85rem; color: var(--text-muted);
}
.plan-price-note {
    font-size: 0.75rem; color: var(--text-muted);
    margin-bottom: 1.5rem; min-height: 18px;
}
.plan-features {
    list-style: none; padding: 0; margin: 0 0 1.75rem;
    flex: 1;
}
.plan-features li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.08);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
    content: '\f00c'; /* check fontawesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0; top: 0.6rem;
    font-size: 0.72rem;
    color: var(--brand-primary);
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 50%;
}
.plan-card.is-elite .plan-features li::before {
    color: var(--gold);
    background: rgba(251, 191, 36, 0.15);
}
.plan-features li.is-disabled { opacity: 0.4; text-decoration: line-through; }
.plan-features li.is-disabled::before {
    content: '\f00d';
    color: var(--text-muted);
    background: rgba(100, 116, 139, 0.15);
}
.plan-features li strong { color: var(--text-primary); font-weight: 600; }

.plan-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
}
.plan-cta:hover {
    transform: translateY(-3px);
    border-color: var(--brand-primary);
    color: var(--text-primary);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25);
}
.plan-card.is-featured .plan-cta:hover {
    box-shadow: 0 16px 38px rgba(99, 102, 241, 0.55);
    color: white;
}
.plan-card.is-elite .plan-cta:hover {
    box-shadow: 0 16px 38px rgba(251, 191, 36, 0.55);
    color: #1f1700;
}

.pricing-footnote {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.pricing-footnote a { color: var(--brand-primary); text-decoration: none; font-weight: 600; }
.pricing-footnote a:hover { text-decoration: underline; }

.faq-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
    max-width: 1100px; margin: 0 auto;
}
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
}
.faq-item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-primary);
    transition: transform 0.3s var(--ease-premium);
    font-size: 0.75rem;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p {
    margin-top: 0.85rem;
    font-size: 0.88rem; line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION (compartida)
   ============================================ */
.cta-section {
    background: var(--brand-gradient);
    position: relative; overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
    pointer-events: none;
}
.cta-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: ctaFloat 10s ease-in-out infinite;
}
.cta-shape-1 { width: 400px; height: 400px; top: -200px; right: -200px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -150px; left: -150px;
    animation-delay: -5s; animation-direction: reverse; }
@keyframes ctaFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 800;
    color: white; margin-bottom: 1rem;
    line-height: 1.15;
}
.cta-text {
    font-size: 1.05rem; color: rgba(255, 255, 255, 0.92);
    max-width: 600px; margin: 0 auto 2rem; line-height: 1.7;
}
.btn-cta {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-size: 1rem; font-weight: 600;
    color: var(--brand-primary);
    background: white;
    border: none; border-radius: var(--radius-lg);
    text-decoration: none; transition: var(--transition-base);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-section);
    color: var(--brand-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-premium {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-brand { margin-bottom: 1.25rem; }
.footer-title {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}
.footer-tagline { font-size: 0.95rem; color: var(--text-muted); }
.footer-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.5rem; margin: 1.75rem 0 1.25rem;
}
.footer-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.88rem; font-weight: 500;
    transition: var(--transition-base);
}
.footer-links a:hover { color: var(--brand-primary); }
.footer-social {
    display: flex; justify-content: center; gap: 0.6rem;
    margin: 1.5rem 0;
}
.social-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem; text-decoration: none;
    transition: var(--transition-base);
}
.social-btn:hover {
    background: var(--brand-gradient);
    border-color: transparent; color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}
.footer-copyright { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-cookies-btn {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-base);
}
.footer-cookies-btn:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* ============================================
   ANIMATIONS UTILS
   ============================================ */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Page hero (Funciones / Bases & IA / Herramientas / Planes) */
.page-hero {
    position: relative; padding: 7rem 0 3rem;
    text-align: center; z-index: 1;
}
.page-hero .section-title { font-size: 3rem; }
.page-hero .section-subtitle { font-size: 1.1rem; max-width: 700px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .features-grid, .models-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .databases-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-card.is-featured { transform: translateY(0); }
    .plan-card.is-featured.visible { transform: translateY(0); }
    .plan-card.is-featured:hover { transform: translateY(-6px); }
    .explora-grid { grid-template-columns: repeat(2, 1fr); }

    /* En tablet/móvil, /planes vuelve a scroll natural */
    body.no-scroll-page { height: auto; overflow: visible; }
    body.no-scroll-page > main { height: auto; }
    .planes-fold {
        height: auto; overflow: visible;
        padding: 6.5rem 1rem 2.5rem;
        gap: 1.75rem;
    }
    .pricing-grid-fold { flex: none; }
    .pricing-grid-fold .plan-card { padding: 1.75rem 1.5rem; }
    .pricing-grid-fold .plan-tagline { min-height: 0; }
    .pricing-grid-fold .plan-features li { padding: 0.5rem 0 0.5rem 1.65rem; font-size: 0.85rem; }
    .pricing-grid-fold .plan-cta { padding: 0.95rem 1.25rem; font-size: 0.95rem; }
    .planes-fold-title { font-size: 2rem; }
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-float-card { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar-nav-premium {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 0.4rem; padding: 1rem 1.5rem 1.5rem;
        background: rgba(15, 15, 35, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(20px);
    }
    .navbar-nav-premium.mobile-open { display: flex; }
    .nav-link-premium { padding: 0.75rem 1rem; }
    .btn-nav-login, .btn-nav-register { margin-left: 0; width: 100%; justify-content: center; }
    .navbar-toggle { display: flex; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section { padding: 6.5rem 0 3rem; min-height: auto; }
    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 2rem; }
    .page-hero { padding: 7.5rem 0 2.5rem; }
    .page-hero .section-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .features-grid, .models-grid, .tools-grid { grid-template-columns: 1fr; }
    .databases-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .plan-card.is-featured { transform: translateY(0); }
    .plan-card.is-featured.visible { transform: translateY(0); }
    .stat-value { font-size: 2.5rem; }
    .cta-title { font-size: 2rem; }
    .explora-grid { grid-template-columns: 1fr; }
    .database-desc { min-height: 0; }

    /* En mobile, desactivar todos los reveal-on-scroll del IntersectionObserver
       (definido en _landing_base.html). Con viewport vertical chico y secciones
       apiladas, gran parte del contenido quedaba oculto hasta scrollear, dando
       sensación de página vacía. Mejor UX: contenido visible desde el inicio,
       igual que con prefers-reduced-motion: reduce. */
    .fade-up,
    .fade-up.visible,
    .feature-card,
    .feature-card.visible,
    .model-card,
    .model-card.visible,
    .database-card,
    .database-card.visible,
    .tool-card,
    .tool-card.visible,
    .plan-card,
    .plan-card.is-featured,
    .plan-card.is-elite,
    .plan-card.visible,
    .explora-card,
    .explora-card.visible {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    /* Viewport extra-chico (iPhone SE, Galaxy A): el H1 'Elige el plan que
       potencia tu práctica' empieza a quedar grande. Aplicar clamp y dejar
       margen lateral seguro. */
    .planes-fold {
        padding: 6.5rem 0.85rem 2.5rem;
    }
    .planes-fold-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.18;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .planes-fold-subtitle {
        font-size: 0.88rem;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .section { padding: 4.25rem 0; }
    .section-container { padding: 0 1rem; }
    .navbar-container { padding: 0 1rem; }
    .hero-stats { flex-direction: column; gap: 1.25rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .databases-grid { grid-template-columns: 1fr; }
}

/* ============================================
   INDEX LANDING — single-fold + refinamiento médico
   ============================================ */

/* ─── Layout single-fold (desktop ≥1200px): hero + trust caben en 100vh ─── */
body.index-landing.no-scroll-page > main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.index-landing .hero-section {
    flex: 1 1 auto;
    min-height: 0;
    padding: 4.25rem 0 1.25rem;
    display: flex;
    align-items: center;
}
body.index-landing .hero-container {
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: 0.95fr 1.15fr;
}
body.index-landing .hero-content { width: 100%; padding-right: 0.5rem; }
body.index-landing .hero-subtitle { max-width: 720px; width: 100%; }
body.index-landing .hero-buttons { width: 100%; }
body.index-landing .hero-trust { width: 100%; }
body.index-landing .hero-stats { width: 100%; justify-content: space-between; }
body.index-landing .hero-stat { flex: 1 1 0; min-width: 0; }
body.index-landing .trust-strip {
    flex-shrink: 0;
}
/* Footer oculto en modo single-fold (igual patrón que /planes) */
body.index-landing.no-scroll-page .footer-premium { display: none; }

/* ─── Tipografía fluida (clamp en lugar de breakpoints duros) ─── */
body.index-landing .hero-title {
    font-size: clamp(1.85rem, 2.6vw + 0.75rem, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 1rem;
}
body.index-landing .hero-subtitle {
    font-size: clamp(0.92rem, 0.4vw + 0.82rem, 1.05rem);
    line-height: 1.55;
    margin-bottom: 1.4rem;
}
body.index-landing .hero-stat-value {
    font-size: clamp(1.4rem, 0.9vw + 1.15rem, 1.95rem);
}
body.index-landing .hero-stats {
    gap: clamp(1.25rem, 2vw, 2.25rem);
    padding-top: 1rem;
    margin-top: 0.25rem;
}
body.index-landing .hero-buttons { margin-bottom: 1.2rem; }
body.index-landing .btn-hero-primary,
body.index-landing .btn-hero-secondary {
    padding: 0.8rem 1.55rem;
    font-size: 0.95rem;
}

/* Title con subhead jerarquizado */
.hero-title .highlight { display: block; font-size: 1em; }
.hero-title .hero-subhead {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text-secondary);
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
    line-height: 1.2;
}

/* Línea ECG decorativa — complejo PQRST realista */
.hero-ecg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(56px, 7vw, 92px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.ecg-trace {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    animation: ecgDraw 5s linear infinite;
    filter:
        drop-shadow(0 0 4px rgba(99, 102, 241, 0.7))
        drop-shadow(0 0 10px rgba(139, 92, 246, 0.35));
    vector-effect: non-scaling-stroke;
}
@keyframes ecgDraw {
    0%   { stroke-dashoffset: 2200; }
    55%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2200; }
}
@media (prefers-reduced-motion: reduce) {
    .ecg-trace { animation: none; stroke-dashoffset: 0; }
}

/* Trust pills bajo CTA */
.hero-trust {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
}
.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-trust li i { color: var(--brand-primary); font-size: 0.82rem; }

/* Imagen hero — solo la imagen, sin recuadro, conservando glow */
body.index-landing .hero-image-wrapper {
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}
body.index-landing .hero-image-wrapper::before { display: none; }
body.index-landing .hero-image {
    max-height: 82vh;
    min-height: 460px;
    width: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: none;
    /* Fade-out inferior — la imagen se funde con el fondo */
    mask-image: linear-gradient(180deg,
        #000 0%,
        #000 55%,
        rgba(0, 0, 0, 0.85) 70%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.15) 95%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(180deg,
        #000 0%,
        #000 55%,
        rgba(0, 0, 0, 0.85) 70%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.15) 95%,
        transparent 100%);
}

/* ============================================
   TRUST STRIP — banda mini, alto = navbar (~48px)
   ============================================ */
.trust-strip {
    position: relative;
    z-index: 1;
    padding: 0.55rem 0;
    border-top: 1px solid var(--border-subtle);
    background: rgba(15, 15, 35, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}
.trust-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.85rem;
    min-height: 32px;
}
.trust-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}
.trust-bar {
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--brand-gradient);
}
.trust-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
    min-width: 0;
}
.trust-track::-webkit-scrollbar { display: none; }

.trust-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-base);
    flex-shrink: 0;
    white-space: nowrap;
    height: 28px;
}
.trust-logo img {
    width: 16px; height: 16px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    padding: 1.5px;
}
.trust-logo:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}
.trust-divider {
    width: 1px;
    height: 18px;
    background: var(--border-subtle);
    margin: 0 0.25rem;
    flex-shrink: 0;
}
.logo-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(139, 92, 246, 0.06));
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: var(--transition-base);
    flex-shrink: 0;
    white-space: nowrap;
    height: 28px;
}
.logo-pill:hover {
    color: var(--text-white);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

/* Fade hint a los bordes para indicar scroll horizontal cuando no cabe */
.trust-strip::before,
.trust-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    z-index: 2;
}
.trust-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-deep) 0%, transparent 100%);
}
.trust-strip::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-deep) 0%, transparent 100%);
}

/* ============================================
   RESPONSIVE — index single-fold
   ============================================ */

/* Tablets/móviles grandes (≤1200px): revertir a scroll natural */
@media (max-width: 1200px) {
    body.index-landing.no-scroll-page,
    body.index-landing.no-scroll-page > main {
        height: auto;
        overflow: visible;
    }
    body.index-landing.no-scroll-page .footer-premium { display: block; }
    body.index-landing .hero-section {
        padding: 5rem 0 2.5rem;
        min-height: auto;
    }
    body.index-landing .hero-image { max-height: none; }
    body.index-landing .hero-image-wrapper { max-width: 540px; }
}

/* Tablet portrait (≤992px): hero stacked, trust wrap */
@media (max-width: 992px) {
    body.index-landing .hero-trust { justify-content: center; }
    body.index-landing .hero-stats { justify-content: center; }
    .trust-divider { display: none; }
}

/* ============================================================
   MÓVILES (≤768px) — TODO debe caber en 100dvh sin scroll
   Estrategia: ocultar elementos secundarios (badge, trust pills,
   trust strip) y comprimir el resto al máximo.
   ============================================================ */
@media (max-width: 768px) {
    /* Eliminar scroll del body en mobile en index */
    body.index-landing.no-scroll-page,
    body.index-landing.no-scroll-page > main {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    /* Hero ocupa todo el alto disponible. Padding-top = altura real navbar
       (~50px) sin margen extra; cero padding inferior */
    body.index-landing .hero-section {
        padding: 50px 0 0;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }
    body.index-landing .hero-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 0;                  /* SIN gap entre imagen y contenido */
        padding: 0 1rem 0.4rem;   /* SIN padding superior — imagen pegada al navbar */
        align-items: stretch;
        text-align: center;
        height: 100%;
        max-height: 100%;
    }

    /* Imagen — flexible, ocupa TODO el espacio sobrante, sin márgenes */
    body.index-landing .hero-visual {
        order: 1;
        width: 100%;
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        align-items: stretch;     /* la imagen se estira a la altura completa */
        justify-content: center;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    body.index-landing .hero-image-wrapper {
        padding: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        margin: 0;
        display: flex;
        align-items: flex-end;       /* imagen pegada abajo, así no hay hueco */
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    /* Sin overlay ::after — generaba un recuadro oscuro abajo cuando la
       imagen no llenaba todo el wrapper (caso típico en mobile portrait). */
    body.index-landing .hero-image-wrapper::after { display: none; }

    body.index-landing .hero-image {
        width: auto;                  /* respeta el ratio natural */
        max-width: 100%;
        height: auto;
        max-height: 100%;
        min-height: 0;
        object-fit: contain;
        object-position: center bottom;
        margin: 0 auto 2.25rem;       /* sube la imagen ~36px del borde inferior */
        padding: 0;
        display: block;
        /* Mask-image SOBRE la imagen (no sobre el wrapper). Si el browser
           no la soporta, simplemente no se ve el fade pero no aparece basura. */
        -webkit-mask-image: linear-gradient(180deg,
            #000 0%, #000 70%, rgba(0,0,0,0.5) 88%, transparent 100%);
        mask-image: linear-gradient(180deg,
            #000 0%, #000 70%, rgba(0,0,0,0.5) 88%, transparent 100%);
    }

    /* Contenido textual: tamaño fijo, NO crece, pegado a la imagen */
    body.index-landing .hero-content {
        order: 2;
        flex: 0 0 auto;
        padding: 0;
        margin-top: -0.4rem;     /* Sube ligeramente para pegar al borde imagen */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* OCULTAR elementos secundarios — recuperan vertical para que todo quepa */
    body.index-landing .hero-badge,
    body.index-landing .hero-trust,
    body.index-landing .trust-strip,
    body.index-landing .hero-ecg,
    body.index-landing .hero-floating-cards { display: none !important; }

    /* Title compacto, 1 línea idealmente */
    body.index-landing .hero-title {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        margin: 0 0 0.2rem;
        line-height: 1.1;
    }
    .hero-title .hero-subhead {
        font-size: 0.6em;
        margin-top: 0.1rem;
    }

    /* Subtitle: máximo 2 líneas con line-clamp */
    body.index-landing .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0 0 0.55rem;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Botones: row de 2 botones lado a lado para ahorrar vertical */
    body.index-landing .hero-buttons {
        flex-direction: row;
        gap: 0.45rem;
        margin: 0 0 0.5rem;
        width: 100%;
    }
    body.index-landing .btn-hero-primary,
    body.index-landing .btn-hero-secondary {
        flex: 1 1 0;
        justify-content: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }
    body.index-landing .btn-hero-primary i,
    body.index-landing .btn-hero-secondary i { font-size: 0.85rem; }

    /* Stats: 4 columnas mini en 1 línea — info esencial visible */
    body.index-landing .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        padding: 0.4rem 0 0;
        margin: 0;
        border-top: 1px dashed var(--border-subtle);
        width: 100%;
    }
    body.index-landing .hero-stat { padding: 0; }
    body.index-landing .hero-stat-value {
        font-size: clamp(0.95rem, 3.8vw, 1.25rem);
        line-height: 1.05;
    }
    .hero-stat-label {
        font-size: 0.58rem;
        line-height: 1.1;
        letter-spacing: -0.005em;
        color: var(--text-muted);
    }

    /* Footer y nada más debajo — single fold real */
    body.index-landing.no-scroll-page .footer-premium { display: none !important; }
}

/* Móviles muy pequeños (≤380px) — iPhone SE 1st gen, Galaxy mini */
@media (max-width: 380px) {
    body.index-landing .hero-title { font-size: clamp(1.2rem, 5vw, 1.5rem); }
    body.index-landing .hero-subtitle { font-size: 0.75rem; }
    body.index-landing .btn-hero-primary,
    body.index-landing .btn-hero-secondary { font-size: 0.75rem; padding: 0.55rem 0.4rem; }
    body.index-landing .hero-stat-value { font-size: 0.95rem; }
    .hero-stat-label { font-size: 0.55rem; }
}

/* Móviles en landscape (alto ≤500px y ancho ≤900px) */
@media (max-height: 500px) and (max-width: 900px) {
    body.index-landing.no-scroll-page,
    body.index-landing.no-scroll-page > main { overflow: hidden; }
    body.index-landing .hero-section { padding-top: 48px; }
    body.index-landing .hero-container {
        flex-direction: row;
        gap: 0.8rem;
        padding: 0.4rem 1rem;
    }
    body.index-landing .hero-visual { order: 2; flex: 1 1 50%; }
    body.index-landing .hero-content {
        order: 1;
        flex: 1 1 50%;
        align-items: flex-start;
        text-align: left;
        justify-content: center;
    }
    body.index-landing .hero-buttons { flex-direction: row; }
    body.index-landing .hero-stats { padding-top: 0.3rem; }
}

/* Pantallas muy bajas (laptop 13" 768x900 zoom) — extra compactación single-fold */
@media (min-width: 1201px) and (max-height: 760px) {
    body.index-landing .hero-section { padding: 3.5rem 0 0.5rem; }
    body.index-landing .hero-title { font-size: clamp(1.65rem, 2vw + 0.75rem, 2.6rem); }
    body.index-landing .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }
    body.index-landing .hero-image { max-height: 60vh; min-height: 320px; }
    body.index-landing .hero-image-wrapper { padding: 0; }
    body.index-landing .hero-stats { padding-top: 0.75rem; }
    body.index-landing .hero-trust { margin-bottom: 0.85rem; }
    body.index-landing .hero-buttons { margin-bottom: 0.85rem; }
    .trust-strip { padding: 0.5rem 0; }
    /* Floating cards visibles pero más chicas */
    .hero-float-card { padding: 0.55rem 0.75rem; }
    .hero-float-card .float-icon { width: 28px; height: 28px; font-size: 0.75rem; }
    .float-text strong { font-size: 0.72rem; }
    .float-text span { font-size: 0.66rem; }
}

/* ============================================
   FOOTER "Expert Consult IA" — solo landing pages
   Override de bg-light de Bootstrap → navy del navbar
   ============================================ */
body.landing-page footer.footer.bg-light {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-secondary) !important;
}
body.landing-page footer.footer.bg-light p,
body.landing-page footer.footer.bg-light .small {
    color: var(--text-secondary) !important;
}
body.landing-page footer.footer.bg-light a {
    color: var(--brand-tertiary) !important;
    transition: color 0.2s var(--ease-premium);
}
body.landing-page footer.footer.bg-light a:hover {
    color: var(--brand-primary) !important;
}

/* ============================================================
   SPRINT 2 — Páginas empresariales (about / security / contact / status)
   ============================================================ */

.section-title.small { font-size: 1.6rem; margin: 0 0 1.25rem; }
.text-link {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.text-link:hover { color: var(--brand-secondary); }

/* ─── /about ─── */
.about-narrative {
    max-width: 760px; margin: 0 auto;
    color: var(--text-secondary); font-size: 1rem; line-height: 1.7;
}
.about-narrative p { margin-bottom: 1rem; }
.about-narrative strong { color: var(--text-primary); font-weight: 650; }

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.6rem 1.5rem;
}
.team-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; font-size: 1.25rem; border-radius: 14px;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}
.team-icon-alt {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}
.team-name { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--text-primary); }
.team-role { margin: 0 0 0.6rem; color: var(--brand-primary); font-size: 0.85rem; font-weight: 600; }
.team-bio { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem;
}
.value-card h3 { margin: 0.65rem 0 0.4rem; font-size: 1rem; color: var(--text-primary); }
.value-card p { margin: 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; }
.value-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary);
    border-radius: 12px;
}

.location-card {
    display: flex; align-items: flex-start; gap: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}
.location-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; border-radius: 14px; font-size: 1.4rem;
}
.location-body h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--text-primary); }
.location-body p { margin: 0 0 0.55rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.location-cta { color: var(--text-primary); }

/* ─── /security ─── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.sec-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.25rem 1.25rem;
    display: flex; flex-direction: column; min-height: 100%;
}
.sec-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary);
    border-radius: 11px;
    margin-bottom: 0.9rem;
}
.sec-card h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text-primary); }
.sec-card p { margin: 0 0 0.85rem; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; flex: 1 1 auto; }

.sec-badge {
    display: inline-block;
    font-size: 0.72rem; font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}
.sec-ok      { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.sec-roadmap { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.sec-partial { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }
.sec-na      { background: rgba(148, 163, 184, 0.14); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.4); }

.compliance-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.compliance-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.25rem;
}
.compliance-header {
    display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem;
}
.compliance-header h3 { margin: 0; font-size: 1.05rem; color: var(--text-primary); }
.compliance-header i { font-size: 1.4rem; color: var(--brand-primary); }
.compliance-card p { margin: 0 0 0.85rem; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; }

.security-cta {
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
}
.security-cta-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.25);
    color: var(--brand-primary);
    border-radius: 14px; font-size: 1.3rem;
}
.security-cta-body h3 { margin: 0 0 0.45rem; color: var(--text-primary); font-size: 1.1rem; }
.security-cta-body p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.6; }

/* ─── /contact ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-info-block {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.contact-info-block:last-child { border-bottom: none; }
.contact-info-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary);
    border-radius: 11px;
}
.contact-info-block h3 { margin: 0 0 0.3rem; font-size: 0.98rem; color: var(--text-primary); }
.contact-info-block p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.85rem;
}
.contact-form-title {
    margin: 0 0 1.25rem; font-size: 1.3rem; color: var(--text-primary);
}
.form-row { margin-bottom: 1rem; }
.form-row-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
.form-row-2 > .form-label { margin-bottom: 0; }

.form-label {
    display: flex; flex-direction: column; gap: 0.4rem;
    font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
}
.form-label input,
.form-label select,
.form-label textarea {
    background: var(--bg-input, rgba(15, 23, 42, 0.5));
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition-base);
}
.form-label input:focus,
.form-label select:focus,
.form-label textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.form-label textarea { resize: vertical; min-height: 120px; }

.form-checkbox {
    display: flex; gap: 0.6rem; align-items: flex-start;
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55;
}
.form-checkbox input { margin-top: 0.2rem; accent-color: var(--brand-primary); }

.form-consent { margin-top: 0.6rem; }
.form-captcha {
    display: flex; justify-content: center;
    padding: 0.4rem 0;
}

.form-flash {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
}
.form-flash-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.form-flash-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.form-flash-error   { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.form-flash-info    { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }

.contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
}
.form-foot-note {
    margin: 0.8rem 0 0; text-align: center;
    color: var(--text-muted); font-size: 0.82rem;
}

/* Responsive — empresariales */
@media (max-width: 992px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .compliance-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .about-team-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .security-cta { flex-direction: column; }
}

/* ============================================================
   Sprint 2 — Dropdown "Más" en el navbar
   ============================================================ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    /* Hereda look de .nav-link-premium pero es <button> */
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}
.nav-dropdown-toggle:hover {
    color: var(--text-white);
    background: var(--bg-input);
}
.nav-dropdown-toggle.active {
    color: var(--brand-primary);
}
.nav-dropdown-caret {
    font-size: 0.7rem;
    transition: transform 200ms var(--ease-premium, ease);
    opacity: 0.75;
}
.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 280px;
    background: rgba(15, 15, 35, 0.97);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(99, 102, 241, 0.12);
    padding: 0.45rem;
    margin: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 180ms ease, transform 180ms var(--ease-premium, ease);
    z-index: 1100;
}
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease;
}
.nav-dropdown-item > i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.14);
    color: var(--brand-primary);
    border-radius: 9px;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}
.nav-dropdown-item:hover {
    background: var(--bg-input);
    color: var(--text-white);
}
.nav-dropdown-item.active {
    background: rgba(99, 102, 241, 0.12);
}
.nav-dropdown-item.active > i {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}
.nav-dd-title {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.12rem;
}
.nav-dd-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

/* Mobile (<= 992px): el navbar pasa a flujo vertical cuando se abre con
   hamburguesa. El dropdown se renderiza inline, siempre visible (no toggle). */
@media (max-width: 992px) {
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown-toggle {
        display: none;
    }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.25rem 0;
        min-width: 0;
        z-index: auto;
    }
    .nav-dropdown-item {
        padding: 0.75rem 1rem;
    }
}

/* ============================================================
   /about — Fundador único + frase memorable
   ============================================================ */

.about-team-solo {
    grid-template-columns: 1fr !important;
    max-width: 640px;
    margin: 0 auto;
}
.team-card-founder {
    text-align: left;
    padding: 1.85rem 1.8rem 1.6rem;
}
.team-card-founder .team-icon {
    width: 60px; height: 60px;
    font-size: 1.45rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

/* Pull-quote del fundador — centrada, jerarquía visual fuerte */
.founder-quote {
    position: relative;
    max-width: 760px;
    margin: 3rem auto 0;
    padding: 2.4rem 2rem 1.6rem;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        var(--glass-bg, rgba(15, 15, 35, 0.45));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 22px;
    overflow: hidden;
}
.founder-quote::before {
    /* Halo superior que enfatiza la cita */
    content: '';
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    width: 60%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.7), transparent);
}
.founder-quote-mark {
    position: absolute;
    top: 0.2rem; left: 1.8rem;
    font-family: 'Space Grotesk', Georgia, serif;
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(99, 102, 241, 0.45);
    user-select: none;
    pointer-events: none;
}
.founder-quote-text {
    margin: 0;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.founder-quote-text strong {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 650;
}
.founder-quote-source {
    margin-top: 1.1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .founder-quote {
        padding: 2rem 1.25rem 1.4rem;
        margin-top: 2.25rem;
        border-radius: 18px;
    }
    .founder-quote-mark {
        font-size: 4rem;
        top: 0.2rem; left: 1rem;
    }
    .founder-quote-text br { display: none; }
}
