/* ============================================================
   FDS · Soluciones Digitales Inteligentes
   Sistema de diseño "Plasma" — oscuro, futurista, elegante
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
    --bg:          #04050C;
    --bg-2:        #080B1A;
    --surface:     #0C1024;
    --surface-2:   #11162E;
    --surface-3:   #161C3A;
    --line:        rgba(125, 160, 255, .13);
    --line-strong: rgba(61, 232, 255, .38);
    --txt:         #E8EDFF;
    --txt-2:       #8FA0C0;
    --txt-3:       #5D6A8A;

    --cyan:        #3DE8FF;
    --violet:      #8B5CF6;
    --magenta:     #FF2E93;
    --cyan-soft:   rgba(61, 232, 255, .12);

    --plasma:      linear-gradient(115deg, var(--cyan) 0%, var(--violet) 52%, var(--magenta) 100%);
    --plasma-soft: linear-gradient(115deg, rgba(61,232,255,.16), rgba(139,92,246,.16), rgba(255,46,147,.16));

    --glass:       rgba(8, 11, 26, .72);
    --shadow:      0 24px 70px rgba(0, 0, 0, .55);
    --glow-cyan:   0 0 32px rgba(61, 232, 255, .30);

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 78px;
    --maxw: 1240px;
}

[data-theme="light"] {
    --bg:          #F4F6FD;
    --bg-2:        #FFFFFF;
    --surface:     #FFFFFF;
    --surface-2:   #F3F5FC;
    --surface-3:   #E9EDFA;
    --line:        rgba(24, 40, 90, .12);
    --line-strong: rgba(109, 40, 217, .35);
    --txt:         #0A0D1C;
    --txt-2:       #56618A;
    --txt-3:       #7B85A8;

    --cyan:        #0B93B8;
    --violet:      #6D28D9;
    --magenta:     #DB2777;
    --cyan-soft:   rgba(11, 147, 184, .10);

    --glass:       rgba(255, 255, 255, .80);
    --shadow:      0 24px 60px rgba(20, 30, 70, .12);
    --glow-cyan:   0 0 30px rgba(11, 147, 184, .18);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background .45s var(--ease), color .35s var(--ease);
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--plasma); border-radius: 10px; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- 3. FONDO ATMOSFÉRICO ---------- */
.fx-layer {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}

#constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.fx-grid {
    position: absolute; inset: -10% -10% 0;
    background-image:
        linear-gradient(rgba(125, 160, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 160, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }

.fx-aurora {
    position: absolute; border-radius: 50%;
    filter: blur(110px); opacity: .30;
    will-change: transform;
}
.fx-aurora.a { width: 620px; height: 620px; top: -180px; left: -140px; background: var(--cyan);    animation: drift1 22s ease-in-out infinite alternate; }
.fx-aurora.b { width: 560px; height: 560px; top: 12%;   right: -160px; background: var(--violet);  animation: drift2 26s ease-in-out infinite alternate; }
.fx-aurora.c { width: 520px; height: 520px; bottom: -200px; left: 32%; background: var(--magenta); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, 130px) scale(1.2); } }
@keyframes drift3 { to { transform: translate(90px, -110px) scale(1.1); } }
[data-theme="light"] .fx-aurora { opacity: .17; }

.fx-noise {
    position: absolute; inset: 0; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Foco que sigue al cursor (solo desktop con puntero fino) */
.fx-spot {
    position: absolute; width: 620px; height: 620px;
    border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, rgba(61, 232, 255, .09) 0%, transparent 68%);
    transform: translate(-50%, -50%);
    transition: opacity .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .fx-spot { opacity: 1; } }

/* ---------- 4. PRELOADER ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    background: var(--bg);
    transition: opacity .7s var(--ease), visibility .7s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.preloader-inner svg { width: 108px; height: 108px; }
.preloader-inner .pl-draw {
    fill: none; stroke: var(--cyan); stroke-width: 3;
    stroke-dasharray: 460; stroke-dashoffset: 460;
    animation: plDraw 1.6s var(--ease) infinite;
}
@keyframes plDraw { 0% { stroke-dashoffset: 460; } 55%, 100% { stroke-dashoffset: 0; } }
.pl-bar { width: 190px; height: 2px; background: var(--surface-3); overflow: hidden; border-radius: 2px; }
.pl-bar span { display: block; height: 100%; width: 40%; background: var(--plasma); animation: plBar 1.3s var(--ease) infinite; }
@keyframes plBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
.pl-txt { font-family: 'Orbitron', sans-serif; font-size: .7rem; letter-spacing: 5px; color: var(--txt-3); }

/* ---------- 5. BARRA DE PROGRESO ---------- */
#progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--plasma); z-index: 1200;
    box-shadow: 0 0 14px rgba(61, 232, 255, .7);
    transition: width .1s linear;
}

/* ---------- 6. HEADER ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
    height: var(--nav-h);
    display: flex; align-items: center;
    padding: 0 clamp(18px, 4vw, 44px);
    gap: 26px;
    background: transparent;
    transition: height .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    height: 66px;
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border-bottom-color: var(--line);
}

/* Logo */
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark .bm-edge { animation: markPulse 3.4s ease-in-out infinite alternate; }
@keyframes markPulse { from { opacity: .55; } to { opacity: 1; } }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: 'Orbitron', sans-serif; font-weight: 900;
    font-size: 1.32rem; letter-spacing: 3px;
    background: var(--plasma); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.brand-sub {
    font-size: .555rem; letter-spacing: 2.6px; font-weight: 600;
    color: var(--txt-2); text-transform: uppercase;
}
.brand:hover .brand-name { animation: glitch .34s steps(2) 2; }
@keyframes glitch {
    0%   { transform: translate(0); filter: none; }
    25%  { transform: translate(-2px, 1px); filter: drop-shadow(2px 0 var(--magenta)); }
    50%  { transform: translate(2px, -1px); filter: drop-shadow(-2px 0 var(--cyan)); }
    100% { transform: translate(0); filter: none; }
}

/* Navegación */
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    position: relative; font-size: .93rem; font-weight: 500;
    color: var(--txt-2); transition: color .3s var(--ease);
    padding: 6px 0;
}
.nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--plasma);
    transition: width .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--txt); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%; cursor: pointer;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--txt);
    transition: all .35s var(--ease);
}
.icon-btn:hover {
    border-color: var(--line-strong);
    color: var(--cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}
#menuBtn { display: none; }

/* ---------- 7. BOTONES ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 15px 32px;
    border-radius: 100px; border: 1px solid transparent;
    font-size: .96rem; font-weight: 600; letter-spacing: .2px;
    cursor: pointer; overflow: hidden; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.btn-primary { background: var(--plasma); color: #fff; box-shadow: 0 10px 34px rgba(139, 92, 246, .38); }
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .75s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(61, 232, 255, .42); }
.btn-primary:hover::before { transform: translateX(130%); }

.btn-ghost { background: var(--surface-2); color: var(--txt); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--cyan); transform: translateY(-3px); box-shadow: var(--glow-cyan); }

.btn-sm { padding: 11px 22px; font-size: .86rem; }
.btn:active { transform: translateY(-1px) scale(.985); }
.btn > * { position: relative; z-index: 1; }

/* ---------- 8. LAYOUT DE SECCIONES ---------- */
main { position: relative; z-index: 1; }

.section { padding: clamp(80px, 11vw, 130px) clamp(18px, 4vw, 44px); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.wrap { max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Orbitron', sans-serif; font-size: .68rem; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase; color: var(--cyan);
    padding: 8px 18px; border-radius: 100px;
    background: var(--cyan-soft); border: 1px solid var(--line-strong);
    margin-bottom: 22px;
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan); animation: blip 1.8s ease-in-out infinite;
}
@keyframes blip { 50% { opacity: .25; transform: scale(.7); } }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 6vw, 76px); }
.sec-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    font-weight: 700; line-height: 1.12; letter-spacing: -1.4px;
    margin-bottom: 16px;
}
.sec-head p { color: var(--txt-2); font-size: clamp(1rem, 1.5vw, 1.13rem); }

.grad-text {
    background: var(--plasma); background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: gradShift 7s linear infinite;
}
@keyframes gradShift { to { background-position: 220% center; } }

/* ---------- 9. HERO ---------- */
.hero {
    min-height: 100svh;
    display: grid; place-items: center;
    padding: calc(var(--nav-h) + 60px) clamp(18px, 4vw, 44px) 80px;
    text-align: center; position: relative;
}
.hero-inner { max-width: 960px; }

.hero h1 {
    font-size: clamp(2.4rem, 6.6vw, 4.6rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -2.2px;
    margin-bottom: 26px;
}
.hero-sub {
    font-size: clamp(1rem, 1.9vw, 1.24rem);
    color: var(--txt-2); max-width: 660px; margin: 0 auto 20px;
}
.hero-type {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(.78rem, 1.6vw, .95rem);
    letter-spacing: 2.4px; color: var(--cyan);
    min-height: 1.8em; margin-bottom: 40px;
}
.hero-type .caret {
    display: inline-block; width: 9px; height: 1em;
    background: var(--cyan); vertical-align: -2px; margin-left: 5px;
    animation: caret .9s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 66px; }

/* Tira de métricas */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; backdrop-filter: blur(10px);
}
.stat { background: var(--glass); padding: 26px 16px; }
.stat b {
    display: block; font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 900;
    line-height: 1; margin-bottom: 8px;
    background: var(--plasma); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { font-size: .74rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--txt-2); }

.scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: .64rem; letter-spacing: 3px; color: var(--txt-3); text-transform: uppercase;
}
.scroll-cue i {
    width: 22px; height: 36px; border: 1.5px solid var(--line-strong); border-radius: 12px;
    position: relative;
}
.scroll-cue i::after {
    content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 7px; border-radius: 3px; background: var(--cyan);
    animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ---------- 10. MARQUEE DE TECNOLOGÍAS ---------- */
.marquee {
    border-block: 1px solid var(--line);
    background: var(--bg-2); padding: 20px 0; overflow: hidden;
    position: relative; z-index: 1;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 0 34px; font-family: 'Orbitron', sans-serif;
    font-size: .82rem; letter-spacing: 2.6px; color: var(--txt-3);
    text-transform: uppercase; white-space: nowrap;
    transition: color .3s var(--ease);
}
.marquee-track span:hover { color: var(--cyan); }
.marquee-track span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

/* ---------- 11. TARJETAS CON SPOTLIGHT ---------- */
.card {
    position: relative; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 34px 30px;
    transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card::before { /* halo que sigue al cursor */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61,232,255,.10), transparent 42%);
    opacity: 0; transition: opacity .4s var(--ease);
}
.card::after { /* filo superior de plasma */
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--plasma); transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }

.solutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 22px; }

.card-icon {
    width: 58px; height: 58px; border-radius: var(--r-sm);
    display: grid; place-items: center; font-size: 1.5rem;
    background: var(--plasma-soft); border: 1px solid var(--line);
    color: var(--cyan); margin-bottom: 22px;
    transition: transform .45s var(--ease), color .45s var(--ease);
}
.card:hover .card-icon { transform: translateY(-3px) rotate(-7deg); color: var(--txt); }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.3px; }
.card p { color: var(--txt-2); font-size: .93rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.card-tags i {
    font-style: normal; font-size: .68rem; letter-spacing: .8px;
    padding: 4px 11px; border-radius: 100px;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-3);
}

/* ---------- 12. PROCESO ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.step {
    position: relative; padding: 34px 28px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--surface);
    transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.step-num {
    font-family: 'Orbitron', sans-serif; font-size: 2.6rem; font-weight: 900;
    line-height: 1; margin-bottom: 16px;
    -webkit-text-stroke: 1.4px var(--violet); color: transparent;
    opacity: .85;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 9px; }
.step p { color: var(--txt-2); font-size: .9rem; }
.step::after { /* conector */
    content: ''; position: absolute; top: 50%; right: -22px; width: 22px; height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child::after { display: none; }
@media (max-width: 900px) { .step::after { display: none; } }

/* ---------- 13. PROYECTOS ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.project {
    position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--surface); padding: 0;
    transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.project:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.project-visual {
    height: 168px; position: relative; overflow: hidden;
    background: var(--plasma-soft);
    display: grid; place-items: center;
    border-bottom: 1px solid var(--line);
}
.project-visual::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(125,160,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125,160,255,.07) 1px, transparent 1px);
    background-size: 26px 26px;
}
.project-visual i {
    font-size: 2.9rem; color: var(--cyan); position: relative;
    text-shadow: 0 0 30px rgba(61,232,255,.45);
    transition: transform .5s var(--ease);
}
.project:hover .project-visual i { transform: scale(1.15) rotate(-6deg); }
.project-body { padding: 26px 28px 30px; }
.project-body h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 8px; }
.project-body p { color: var(--txt-2); font-size: .9rem; margin-bottom: 16px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.project-meta i {
    font-style: normal; font-size: .67rem; letter-spacing: .8px;
    padding: 4px 11px; border-radius: 100px;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-3);
}

/* ---------- 14. FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--surface); overflow: hidden;
    transition: border-color .35s var(--ease);
}
.faq-item.open { border-color: var(--line-strong); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    font-size: 1rem; font-weight: 600;
}
.faq-q span { flex: 1; }
.faq-q i {
    flex: none; width: 26px; height: 26px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); color: var(--cyan);
    font-size: .7rem; transition: transform .4s var(--ease), background .4s var(--ease);
}
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--cyan-soft); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 26px 24px; color: var(--txt-2); font-size: .94rem; }

/* ---------- 15. BANDA CTA ---------- */
.cta-band {
    position: relative; overflow: hidden;
    border: 1px solid var(--line-strong); border-radius: var(--r-xl);
    padding: clamp(44px, 6vw, 72px) clamp(26px, 5vw, 60px);
    text-align: center; background: var(--surface);
}
.cta-band::before {
    content: ''; position: absolute; inset: -50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(61,232,255,.16) 60deg, transparent 120deg, rgba(255,46,147,.16) 240deg, transparent 300deg);
    animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 700; letter-spacing: -1.2px; margin-bottom: 14px; }
.cta-band p { color: var(--txt-2); max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero-cta { margin-bottom: 0; }

/* ---------- 16. CONTACTO ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 4vw, 56px); align-items: start; }

.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-row {
    display: flex; align-items: center; gap: 17px;
    padding: 20px 22px; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
    transition: all .35s var(--ease);
}
.contact-row:hover { border-color: var(--line-strong); transform: translateX(5px); }
.contact-row .ic {
    width: 50px; height: 50px; flex: none; border-radius: var(--r-sm);
    display: grid; place-items: center; font-size: 1.2rem;
    background: var(--plasma-soft); color: var(--cyan); border: 1px solid var(--line);
}
.contact-row h4 { font-size: .72rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--txt-3); font-weight: 600; margin-bottom: 2px; }
.contact-row a, .contact-row p { font-size: .98rem; font-weight: 500; }
.contact-row a:hover { color: var(--cyan); }

.form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 42px);
    box-shadow: var(--shadow);
}
.field { margin-bottom: 19px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-2); margin-bottom: 8px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 14px 17px;
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-sm); font-size: .96rem;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--txt-3); }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field.err input, .field.err textarea, .field.err select { border-color: var(--magenta); }
.field .msg { display: none; font-size: .78rem; color: var(--magenta); margin-top: 6px; }
.field.err .msg { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.phone-grid { display: grid; grid-template-columns: 118px 1fr; gap: 12px; }
/* honeypot antispam */
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: .78rem; color: var(--txt-3); text-align: center; margin-top: 14px; }
.recaptcha-box { display: flex; justify-content: center; margin: 20px 0 6px; }

/* ---------- 17. FOOTER ---------- */
.site-footer {
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 64px clamp(18px, 4vw, 44px) 32px; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; max-width: var(--maxw); margin: 0 auto 44px; }
.footer-grid p { color: var(--txt-2); font-size: .92rem; max-width: 360px; margin-top: 16px; }
.footer-col h5 { font-family: 'Orbitron', sans-serif; font-size: .72rem; letter-spacing: 2.6px; text-transform: uppercase; color: var(--txt); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--txt-2); font-size: .92rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--cyan); }

.socials { display: flex; gap: 11px; margin-top: 24px; }
.socials a {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.05rem;
    background: var(--surface); border: 1px solid var(--line); color: var(--txt-2);
    transition: all .35s var(--ease);
}
.socials a:hover { color: var(--cyan); border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--glow-cyan); }

.footer-bottom {
    max-width: var(--maxw); margin-inline: auto; padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    font-size: .84rem; color: var(--txt-3);
}

/* ---------- 18. FLOTANTES: WHATSAPP + CHAT ---------- */
.floats { position: fixed; right: 22px; bottom: 22px; z-index: 1150; display: flex; flex-direction: column; gap: 13px; }
.fab {
    width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fab:hover { transform: scale(1.1) translateY(-2px); }
.fab-wa { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 10px 30px rgba(37, 211, 102, .4); }
.fab-chat { background: var(--plasma); box-shadow: 0 10px 30px rgba(139, 92, 246, .45); position: relative; }
.fab-chat::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 1.5px solid var(--cyan); opacity: 0;
    animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

.chat {
    position: fixed; right: 22px; bottom: 96px; z-index: 1160;
    width: 372px; max-width: calc(100vw - 44px); height: 520px; max-height: calc(100svh - 140px);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--r-lg); overflow: hidden;
    display: none; flex-direction: column; box-shadow: var(--shadow);
}
.chat.open { display: flex; animation: chatIn .38s var(--ease); }
@keyframes chatIn { from { transform: translateY(22px) scale(.97); opacity: 0; } }
.chat-head {
    padding: 16px 20px; display: flex; align-items: center; gap: 12px;
    background: var(--plasma); color: #fff;
}
.chat-head .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.chat-head b { font-family: 'Orbitron', sans-serif; font-size: .9rem; letter-spacing: 1px; display: block; }
.chat-head small { font-size: .68rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6EF7A5; box-shadow: 0 0 8px #6EF7A5; }
.chat-head button { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.15rem; cursor: pointer; opacity: .85; }
.chat-head button:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.bubble { padding: 12px 16px; border-radius: 16px; max-width: 86%; font-size: .9rem; line-height: 1.55; animation: bubbleIn .3s var(--ease); }
@keyframes bubbleIn { from { transform: translateY(8px); opacity: 0; } }
.bubble.bot { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.me { background: var(--violet); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble a { color: var(--cyan); text-decoration: underline; }
.typing { display: flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--txt-3); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px 0; background: var(--surface); }
.chat-chips button {
    background: var(--surface-2); border: 1px solid var(--line); color: var(--txt);
    border-radius: 100px; padding: 7px 14px; font-size: .76rem; font-weight: 500; cursor: pointer;
    transition: all .3s var(--ease);
}
.chat-chips button:hover { background: var(--cyan-soft); border-color: var(--line-strong); color: var(--cyan); }
.chat-input { display: flex; gap: 9px; padding: 12px 16px 16px; background: var(--surface); }
.chat-input input { flex: 1; padding: 11px 15px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px; font-size: .88rem; }
.chat-input input:focus { outline: none; border-color: var(--cyan); }
.chat-input button { width: 42px; height: 42px; flex: none; border-radius: 50%; border: none; background: var(--plasma); color: #fff; cursor: pointer; transition: transform .3s var(--ease); }
.chat-input button:hover { transform: scale(1.08); }

/* ---------- 19. TOASTS ---------- */
#toasts { position: fixed; top: 88px; right: 22px; z-index: 1300; display: flex; flex-direction: column; gap: 11px; }
.toast {
    display: flex; align-items: center; gap: 13px;
    min-width: 268px; max-width: 380px; padding: 15px 19px;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-left: 3px solid var(--cyan);
    border-radius: var(--r-sm); box-shadow: var(--shadow);
    font-size: .89rem; animation: toastIn .4s var(--ease);
}
.toast.ok  { border-left-color: #22C55E; }
.toast.bad { border-left-color: var(--magenta); }
.toast i { font-size: 1.1rem; }
.toast.ok i  { color: #22C55E; }
.toast.bad i { color: var(--magenta); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn  { from { transform: translateX(110%); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }

/* ---------- 20. REVEAL AL SCROLL ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .contact { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    #menuBtn { display: grid; }
    .nav {
        position: fixed; inset: 0 0 0 auto;
        width: min(86%, 340px); height: 100svh;
        flex-direction: column; justify-content: center; gap: 30px;
        background: var(--bg-2); border-left: 1px solid var(--line);
        transform: translateX(100%); transition: transform .45s var(--ease);
        padding: 40px;
    }
    .nav.open { transform: none; }
    .nav a { font-size: 1.22rem; }
    .nav .btn { width: 100%; }
    .stats { grid-template-columns: 1fr 1fr; }
    .grid-2, .phone-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { justify-content: center; text-align: center; }
    #toasts { left: 16px; right: 16px; top: 78px; }
    .toast { min-width: 0; max-width: none; }
}
@media (max-width: 420px) {
    .hero-cta .btn { width: 100%; }
}

/* ---------- 22. ACCESIBILIDAD: MENOS MOVIMIENTO ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .rv { opacity: 1; transform: none; }
    #constellation, .fx-aurora { display: none; }
}

/* ---------- 23. IMPRESIÓN ---------- */
@media print {
    .fx-layer, .floats, .chat, .site-header, #progress, #preloader, .scroll-cue { display: none !important; }
    body { background: #fff; color: #000; }
}
