/* ════════════════════════════════════════════════════════════════
   LANDING V2 — "Atelier Clínico" (2026-06-12)
   Capa de rediseño cargada DESPUÉS de landing.css.
   Misma paleta (navy #0f0f23 + índigo/violeta #6366f1→#a78bfa);
   nueva tipografía display (Fraunces serif editorial), hairlines
   de luz, hélice ADN 3D en hero, marquee, micro-interacciones.
   Para revertir: quitar el <link> en _landing_base.html.
   ════════════════════════════════════════════════════════════════ */

:root {
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --hairline: linear-gradient(160deg,
        rgba(167, 139, 250, 0.55) 0%,
        rgba(99, 102, 241, 0.12) 38%,
        rgba(99, 102, 241, 0.04) 60%,
        rgba(139, 92, 246, 0.35) 100%);
    --hairline-soft: linear-gradient(160deg,
        rgba(167, 139, 250, 0.28) 0%,
        rgba(99, 102, 241, 0.07) 45%,
        rgba(139, 92, 246, 0.18) 100%);
    --ink-title: linear-gradient(180deg, #ffffff 20%, #c7cdf4 100%);
}

/* ─────────────────────────────────────────────
   FONDO GLOBAL — aurora + grano + cruces médicas
   ───────────────────────────────────────────── */
.bg-canvas-global::before {
    /* Aurora cónica muy sutil que respira */
    content: '';
    position: absolute; inset: -20%;
    background:
        conic-gradient(from 210deg at 30% 20%,
            transparent 0deg,
            rgba(99, 102, 241, 0.07) 60deg,
            transparent 130deg,
            rgba(139, 92, 246, 0.05) 220deg,
            transparent 300deg);
    animation: auroraDrift 36s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
    from { transform: rotate(0deg) scale(1); }
    to   { transform: rotate(8deg) scale(1.08); }
}
.bg-canvas-global::after {
    /* Grano de película — quita el look "plano digital" */
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
}
.grid-pattern-global {
    /* Grid + cruces médicas tenues en intersecciones */
    background-image:
        radial-gradient(circle at center, rgba(167, 139, 250, 0.06) 1px, transparent 1.5px),
        linear-gradient(rgba(99, 102, 241, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.025) 1px, transparent 1px);
    background-size: 120px 120px, 60px 60px, 60px 60px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
}
.gradient-orb-global { opacity: 0.32; }

/* ─────────────────────────────────────────────
   NAVBAR — más fino, hairline inferior luminoso
   ───────────────────────────────────────────── */
.navbar-premium {
    background: rgba(13, 13, 31, 0.72);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg,
        transparent 0%, rgba(99, 102, 241, 0.35) 30%,
        rgba(167, 139, 250, 0.45) 50%,
        rgba(99, 102, 241, 0.35) 70%, transparent 100%) 1;
}
.navbar-premium.scrolled {
    background: rgba(11, 11, 27, 0.92);
    box-shadow: 0 8px 40px rgba(5, 5, 18, 0.55);
}
.navbar-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: 0;
    background: linear-gradient(120deg, #fff 0%, #c4b5fd 55%, #818cf8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-link-premium {
    font-size: 0.83rem;
    letter-spacing: 0.012em;
}
.nav-link-premium.active::after {
    width: 16px; height: 2px;
    box-shadow: 0 0 10px var(--brand-glow);
}
/* "Planes" — calmar el pill parpadeante: elegancia > estridencia */
.nav-link-premium.nav-pricing {
    animation: none;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-link-premium.nav-pricing::before { animation-duration: 6s; }
.nav-link-premium.nav-pricing i {
    animation: none;
    color: #a5b4fc;
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.55);
}
.btn-nav-login { border-radius: 999px; padding: 0.48rem 1.1rem; }
.btn-nav-register { border-radius: 999px; border-width: 1px; padding: 0.46rem 1.05rem; }

/* ─────────────────────────────────────────────
   TITULARES — serif editorial Fraunces
   ───────────────────────────────────────────── */
.section-title,
.planes-fold-title,
.cta-title,
.hero-title {
    font-family: var(--font-display);
    font-weight: 560;
    font-variation-settings: 'opsz' 110;
    letter-spacing: -0.015em;
}
.section-title {
    font-size: clamp(2rem, 1.4vw + 1.6rem, 2.9rem);
    background: var(--ink-title);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.12;
}
.section-title em, .hero-title em,
.cta-title em, .planes-fold-title em,
.page-hero .section-title em {
    font-style: italic;
    font-weight: 540;
    background: linear-gradient(110deg, #a5b4fc 0%, #c4b5fd 50%, #8b5cf6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-badge {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(129, 140, 248, 0.25);
    padding: 0.4rem 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.section-badge i { font-size: 0.7rem; opacity: 0.8; }
.section-subtitle { font-weight: 350; }

/* page-hero de páginas internas: regla luminosa bajo el título */
.page-hero { position: relative; }
.page-hero .section-title { position: relative; padding-bottom: 1.4rem; }
.page-hero .section-title::after {
    content: '';
    position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 120px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.8), transparent);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
}

/* ─────────────────────────────────────────────
   HERO (index) — composición editorial
   ───────────────────────────────────────────── */
.hero-bg {
    background:
        radial-gradient(ellipse 60% 50% at 75% 40%, rgba(99, 102, 241, 0.14), transparent 70%),
        radial-gradient(ellipse 50% 60% at 15% 80%, rgba(139, 92, 246, 0.08), transparent 70%);
    opacity: 1;
}
body.index-landing .hero-title {
    font-size: clamp(2.1rem, 3vw + 0.8rem, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
}
.hero-title .highlight {
    background: linear-gradient(115deg, #fff 5%, #c4b5fd 55%, #818cf8 110%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .hero-subhead {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 460;
    font-size: 0.52em;
    margin-top: 0.42rem;
    letter-spacing: 0.005em;
    background: linear-gradient(100deg, #a5b4fc, #c4b5fd 60%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(129, 140, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-badge .dot {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
}
.hero-subtitle { font-weight: 350; }
.hero-subtitle strong { color: #e2e8f0; font-weight: 600; }

/* CTAs hero — pill primario con barrido de luz */
.btn-hero-primary, .btn-hero-secondary, .btn-cta, .plan-cta {
    border-radius: 999px !important;
}
.btn-hero-primary {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 32px rgba(99, 102, 241, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-hero-primary::after {
    content: '';
    position: absolute; top: 0; left: -120%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s var(--ease-premium);
    pointer-events: none;
}
.btn-hero-primary:hover::after { left: 130%; }
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.4);
    backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
    border-color: rgba(196, 181, 253, 0.8);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.25);
}

/* Stats hero — numerales serif con separadores hairline */
.hero-stats { position: relative; }
body.index-landing .hero-stats {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg,
        rgba(129, 140, 248, 0.4), rgba(129, 140, 248, 0.06) 70%, transparent) 1;
}
.hero-stat { position: relative; }
.hero-stat + .hero-stat::before {
    content: '';
    position: absolute; left: calc(-1 * clamp(0.65rem, 1vw, 1.15rem)); top: 18%;
    height: 64%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(129, 140, 248, 0.35), transparent);
}
.hero-stat-value {
    font-family: var(--font-display) !important;
    font-weight: 540 !important;
    background: linear-gradient(180deg, #fff 10%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero-trust li {
    font-size: 0.74rem;
    color: #8b93ab;
}
.hero-trust li i {
    color: #818cf8;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
}

/* ─────────────────────────────────────────────
   HERO SCENE — hélice ADN 3D + chips flotantes
   ───────────────────────────────────────────── */
.hero-scene {
    position: relative;
    width: 100%;
    height: clamp(420px, 72vh, 660px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}
.scene-glow {
    position: absolute;
    width: 68%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(99, 102, 241, 0.22) 0%,
        rgba(139, 92, 246, 0.1) 45%,
        transparent 70%);
    filter: blur(30px);
    animation: sceneBreath 7s ease-in-out infinite;
}
@keyframes sceneBreath {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.12); opacity: 1; }
}
/* Foto del equipo médico como pieza central */
.hero-photo-wrap {
    position: relative;
    z-index: 2;
    height: 96%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.hero-photo-wrap picture {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}
.hero-photo {
    max-height: 100%;
    max-width: 92%;
    object-fit: contain;
    filter: drop-shadow(0 34px 60px rgba(5, 5, 18, 0.65));
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,0.45) 90%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,0.45) 90%, transparent 100%);
}
.hero-scene.has-photo .scene-glow { opacity: 0.7; }

/* Polvo de luz — motas que ascienden lentamente detrás del equipo médico.
   landing-fx.js genera los <span> con posición/tamaño/ritmo aleatorios. */
.scene-motes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.scene-motes span {
    position: absolute;
    top: 102%;
    border-radius: 50%;
    background: var(--mote-c, rgba(165, 180, 252, 0.7));
    box-shadow: 0 0 10px 2px var(--mote-glow, rgba(129, 140, 248, 0.35));
    animation:
        moteRise var(--mote-dur, 14s) linear infinite,
        moteSway var(--mote-sway, 4s) ease-in-out infinite alternate;
}
@keyframes moteRise {
    0%   { top: 102%; opacity: 0; }
    10%  { opacity: var(--mote-o, 0.8); }
    80%  { opacity: calc(var(--mote-o, 0.8) * 0.6); }
    100% { top: -5%; opacity: 0; }
}
@keyframes moteSway {
    from { transform: translateX(-6px); }
    to   { transform: translateX(6px); }
}

/* Resplandor de piso — ancla al equipo a la escena (profundidad sin ruido) */
.scene-floor {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 74%;
    height: 48px;
    z-index: 0;
    background: radial-gradient(ellipse at center,
        rgba(99, 102, 241, 0.38) 0%,
        rgba(139, 92, 246, 0.12) 50%,
        transparent 75%);
    filter: blur(14px);
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   TRUST STRIP — marquee infinito con máscara
   ───────────────────────────────────────────── */
.trust-strip {
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(11, 11, 27, 0.5);
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.trust-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7394;
}
.trust-track {
    flex-wrap: nowrap !important;
    width: max-content;
    gap: 0.9rem;
}
.trust-track.is-marquee {
    animation: marqueeSlide var(--marquee-dur, 38s) linear infinite;
}
.trust-track.is-marquee:hover { animation-play-state: paused; }
@keyframes marqueeSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.trust-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-pill {
    flex-shrink: 0;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(129, 140, 248, 0.18);
    transition: all 0.3s var(--ease-premium);
}
.logo-pill:hover {
    border-color: rgba(167, 139, 250, 0.55);
    color: #e0e7ff;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

/* ─────────────────────────────────────────────
   TARJETAS — hairline de luz + hover orquestado
   (feature / database / model / tool / stat)
   ───────────────────────────────────────────── */
.feature-card, .database-card, .model-card, .tool-card, .stat-card, .plan-card {
    position: relative;
    background:
        linear-gradient(170deg, rgba(30, 30, 58, 0.55) 0%, rgba(18, 18, 38, 0.85) 100%);
    border: none !important;
    box-shadow:
        0 24px 60px -28px rgba(5, 5, 18, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.feature-card::before, .database-card::before, .model-card::before,
.tool-card::before, .stat-card::before, .plan-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--hairline-soft);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 2;
}
.feature-card:hover::before, .database-card:hover::before,
.model-card:hover::before, .tool-card:hover::before {
    background: var(--hairline);
}
/* Halo radial que sigue al cursor (via --mx/--my de landing-fx.js) */
.feature-card::after, .database-card::after, .model-card::after, .tool-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(129, 140, 248, 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
    z-index: 1;
}
.feature-card:hover::after, .database-card:hover::after,
.model-card:hover::after, .tool-card:hover::after { opacity: 1; }

.feature-card:hover, .database-card:hover, .model-card:hover, .tool-card:hover {
    transform: translateY(-8px);
    background:
        linear-gradient(170deg, rgba(36, 36, 68, 0.65) 0%, rgba(20, 20, 42, 0.9) 100%);
    box-shadow:
        0 36px 80px -28px rgba(5, 5, 18, 0.9),
        0 0 50px -16px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-title, .database-name, .model-name, .tool-title {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -0.005em;
}
.feature-icon-box, .tool-icon {
    box-shadow:
        0 14px 34px -10px rgba(99, 102, 241, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.45s var(--ease-bounce);
}
.feature-card:hover .feature-icon-box,
.tool-card:hover .tool-icon {
    transform: translateY(-4px) rotate(-6deg) scale(1.06);
}
.database-icon {
    transition: transform 0.45s var(--ease-bounce);
}
.database-card:hover .database-icon {
    transform: translateY(-4px) scale(1.1);
}
.database-tag, .model-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    border-radius: 999px;
}
.tool-number {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 450;
    opacity: 0.5;
}

/* Stats — numerales serif gigantes */
.stat-value {
    font-family: var(--font-display) !important;
    font-weight: 520 !important;
    background: linear-gradient(180deg, #fff 5%, #818cf8 115%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.66rem !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   CTA SECTION — mesh + serif
   ───────────────────────────────────────────── */
.cta-section { overflow: hidden; }
.cta-title {
    font-size: clamp(1.8rem, 1.6vw + 1.3rem, 2.7rem);
    font-weight: 560;
    line-height: 1.15;
}
.btn-cta {
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px -8px rgba(10, 10, 30, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-cta::after {
    content: '';
    position: absolute; top: 0; left: -120%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.7s var(--ease-premium);
    pointer-events: none;
}
.btn-cta:hover::after { left: 130%; }
/* Cursivas DENTRO del CTA violeta: blanco perlado, no índigo (contraste) */
.cta-section .cta-title em {
    background: linear-gradient(100deg, #ffffff 0%, #ede9fe 60%, #ddd6fe 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ─────────────────────────────────────────────
   PLANES — jerarquía refinada + borde animado
   ───────────────────────────────────────────── */
.planes-fold-title {
    background: var(--ink-title);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.3rem);
    font-weight: 560;
}
.plan-name {
    font-family: var(--font-display);
    font-weight: 580;
}
.plan-price-amount {
    font-family: var(--font-display) !important;
    font-weight: 540 !important;
}
.plan-card { transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium); }
.plan-card:hover { transform: translateY(-6px); }

/* Plan destacado: borde cónico giratorio */
@property --plan-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.plan-card.is-featured::before {
    background: conic-gradient(from var(--plan-angle),
        rgba(99, 102, 241, 0.9) 0%,
        rgba(167, 139, 250, 0.25) 25%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(99, 102, 241, 0.25) 75%,
        rgba(99, 102, 241, 0.9) 100%);
    animation: planBorderSpin 7s linear infinite;
    padding: 1.5px;
}
@keyframes planBorderSpin {
    to { --plan-angle: 360deg; }
}
.plan-card.is-featured {
    box-shadow:
        0 30px 80px -24px rgba(5, 5, 18, 0.9),
        0 0 60px -12px rgba(99, 102, 241, 0.4);
}
.plan-card.is-elite::before {
    background: linear-gradient(160deg,
        rgba(251, 191, 36, 0.55) 0%,
        rgba(251, 191, 36, 0.08) 40%,
        rgba(245, 158, 11, 0.35) 100%);
}
.plan-badge { font-family: var(--font-mono); letter-spacing: 0.1em; font-size: 0.6rem; }
.plan-features li { font-weight: 350; }

/* ─────────────────────────────────────────────
   FOOTER — hairline superior + refinamiento
   ───────────────────────────────────────────── */
.footer-premium {
    position: relative;
    background: rgba(9, 9, 23, 0.85);
}
.footer-premium::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.footer-title {
    font-family: var(--font-display);
    font-weight: 560;
}

/* ─────────────────────────────────────────────
   PÁGINAS EMPRESARIALES — about / security / contact
   Mismo sistema de vidrio + hairline que el resto
   ───────────────────────────────────────────── */
.value-card, .sec-card, .compliance-card, .team-card,
.location-card, .security-cta, .contact-info-block, .contact-form {
    position: relative;
    background:
        linear-gradient(170deg, rgba(30, 30, 58, 0.55) 0%, rgba(18, 18, 38, 0.85) 100%);
    border: none !important;
    box-shadow:
        0 24px 60px -28px rgba(5, 5, 18, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.value-card::before, .sec-card::before, .compliance-card::before,
.team-card::before, .location-card::before, .security-cta::before,
.contact-info-block::before, .contact-form::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--hairline-soft);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
/* Halo radial que sigue al cursor (landing-fx.js pone --mx/--my) */
.value-card::after, .sec-card::after, .compliance-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(129, 140, 248, 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
    z-index: 1;
}
.value-card:hover::after, .sec-card:hover::after,
.compliance-card:hover::after { opacity: 1; }
.value-card:hover, .sec-card:hover, .compliance-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 36px 80px -28px rgba(5, 5, 18, 0.9),
        0 0 50px -16px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.value-card:hover::before, .sec-card:hover::before,
.compliance-card:hover::before { background: var(--hairline); }

.value-card h3, .sec-card h3, .compliance-card h3,
.team-name, .location-body h3, .security-cta-body h3,
.contact-info-block h3, .contact-form-title {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -0.005em;
}
.value-icon, .sec-icon, .team-icon,
.location-icon, .security-cta-icon, .contact-info-icon {
    box-shadow:
        0 14px 34px -10px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.45s var(--ease-bounce);
}
.value-card:hover .value-icon, .sec-card:hover .sec-icon {
    transform: translateY(-4px) rotate(-6deg) scale(1.06);
}

/* Badges de estado en /security — sello mono */
.sec-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}

/* Cita del fundador en /about — pieza editorial serif */
.founder-quote {
    position: relative;
    background: linear-gradient(170deg, rgba(30, 30, 58, 0.4) 0%, rgba(18, 18, 38, 0.7) 100%);
    border: none;
    border-radius: var(--radius-xl);
}
.founder-quote::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--hairline-soft);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.founder-quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 480;
    font-size: 1.35rem;
    line-height: 1.5;
}
.founder-quote-text strong {
    font-weight: 560;
    background: linear-gradient(110deg, #a5b4fc, #c4b5fd 60%, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.founder-quote-mark {
    font-family: var(--font-display);
    color: rgba(167, 139, 250, 0.5);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}
.founder-quote-source {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Formulario de /contact — inputs con anillo de foco */
.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(99, 102, 241, 0.18);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.65);
    background: rgba(99, 102, 241, 0.07);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.16),
        0 0 24px -6px rgba(99, 102, 241, 0.45);
}
.form-foot-note {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.text-link {
    color: #a5b4fc;
    text-decoration-color: rgba(165, 180, 252, 0.4);
    text-underline-offset: 3px;
    transition: color 0.25s;
}
.text-link:hover { color: #c4b5fd; }

/* ─────────────────────────────────────────────
   REVEAL escalonado (landing-fx.js pone --reveal-i)
   ───────────────────────────────────────────── */
.fade-up, .feature-card, .model-card, .database-card, .tool-card, .plan-card, .explora-card,
.value-card, .sec-card, .compliance-card {
    transition-delay: calc(var(--reveal-i, 0) * 70ms) !important;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1199px) {
    .hero-scene { height: clamp(380px, 52vw, 520px); }
}
@media (max-width: 992px) and (min-width: 769px) {
    /* Tablet: texto primero, escena 3D después */
    body.index-landing .hero-container { display: flex; flex-direction: column; }
    body.index-landing .hero-content { order: 1; text-align: center; }
    body.index-landing .hero-visual { order: 2; width: 100%; }
    body.index-landing .hero-badge { margin-left: auto; margin-right: auto; }
    body.index-landing .hero-buttons,
    body.index-landing .hero-trust { justify-content: center; }
    .hero-scene { height: clamp(320px, 60vw, 440px); }
}
@media (max-width: 768px) {
    /* Mobile single-fold (hereda de landing.css): la escena reemplaza a la
       imagen original — arriba, flexible, llenando el espacio sobrante. */
    body.index-landing .hero-visual .hero-scene {
        height: 100%;
        min-height: 0;
    }
    .hero-scene { height: clamp(280px, 72vw, 380px); }
    .scene-floor { width: 84%; height: 34px; bottom: 0.5%; }
    .page-hero .section-title::after { width: 80px; }
    /* Labels de stats: que no se partan en 3 líneas */
    .hero-stat-label {
        font-size: 0.54rem !important;
        letter-spacing: 0.08em;
    }
}
@media (max-width: 480px) {
    .hero-scene { height: 270px; }
}

/* ─────────────────────────────────────────────
   ACCESIBILIDAD — movimiento reducido
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bg-canvas-global::before,
    .scene-glow,
    .scene-motes span,
    .trust-track.is-marquee,
    .plan-card.is-featured::before,
    .btn-hero-primary::after, .btn-cta::after {
        animation: none !important;
    }
}
