/* ============================================================
   Environment Services, LLC — Hoja de estilos
   Tema oscuro industrial · Azul marino del logo + rojo
   Animaciones: reveal por scroll, tilt 3D, auroras, ticker.

   Nota técnica: las animaciones de entrada usan las propiedades
   individuales `translate` / `scale`, y los efectos de hover y
   tilt usan `transform`. Así nunca se pisan entre sí.
   ============================================================ */

:root {
    --ink-900: #04091a;
    --ink-850: #060e22;
    --ink-800: #081230;
    --ink-700: #0b1a40;
    --ink-600: #11265c;

    --brand: #1b2a5e;
    --red: #e4252d;
    --red-2: #ff4b54;
    --red-soft: rgba(228, 37, 45, .18);

    --text: #e9effc;
    --muted: #9db0d4;
    --faint: #6f82a8;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --glass: rgba(255, 255, 255, .045);

    --wa: #25d366;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    --maxw: 1200px;
    --pad: clamp(18px, 4vw, 32px);

    --head: 'Barlow Condensed', 'Inter', sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease: cubic-bezier(.22, .68, .28, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--body);
    background: var(--ink-900);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--red-2);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 26px; height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    border-radius: 2px;
}

.h2 {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(1.95rem, 4.6vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: .005em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.grad {
    background: linear-gradient(100deg, var(--red-2) 0%, #ff8d93 50%, var(--red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { color: var(--muted); font-size: clamp(.98rem, 1.5vw, 1.08rem); }

.head { max-width: 760px; margin: 0 auto clamp(38px, 6vw, 64px); text-align: center; }
.head .eyebrow { justify-content: center; }

/* ---------- Botones ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: .93rem;
    letter-spacing: .01em;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .ico { font-size: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Barrido de brillo */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
    translate: -120% 0;
    transition: translate .7s var(--ease);
}
.btn:hover::after { translate: 120% 0; }

.btn--primary {
    background: linear-gradient(135deg, var(--red) 0%, #ff5d65 100%);
    color: #fff;
    box-shadow: 0 10px 28px -10px rgba(228, 37, 45, .75);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -12px rgba(228, 37, 45, .85); }

.btn--glass {
    background: rgba(255, 255, 255, .06);
    border-color: var(--line-2);
    color: #fff;
    backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); transform: translateY(-3px); }

.btn--whatsapp { background: var(--wa); color: #06281a; font-weight: 700; }
.btn--whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .7); }

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--red-2);
    margin-top: 6px;
}
.link .ico { transition: transform .25s var(--ease); }
.link:hover .ico { transform: translateX(5px); }

/* ---------- Barra de progreso ---------- */
.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 1200;
    background: rgba(255, 255, 255, .06);
}
.progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--red), #ff9aa0);
    box-shadow: 0 0 12px rgba(228, 37, 45, .8);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 3px 0 auto 0;
    z-index: 1100;
    background: rgba(4, 9, 26, .55);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header.scrolled {
    background: rgba(4, 9, 26, .92);
    border-bottom-color: var(--line);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 86px;
    transition: height .3s var(--ease);
}
.header.scrolled .header__inner { height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__badge {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    flex: none;
    border-radius: 14px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .8);
    transition: width .3s var(--ease), height .3s var(--ease), transform .35s var(--ease);
}
.header.scrolled .brand__badge { width: 46px; height: 46px; }
.brand:hover .brand__badge { transform: rotate(-4deg) scale(1.05); }
.brand__badge img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand__text strong {
    font-family: var(--head);
    font-size: 1.22rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
.brand__text small {
    font-size: .58rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red-2);
    white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__list { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); }
.nav__link {
    position: relative;
    display: inline-block;
    font-size: .9rem;
    font-weight: 500;
    color: #c3cfe6;
    padding: 6px 2px;
    transition: color .22s var(--ease);
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 2px; width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), var(--red-2));
    transition: width .28s var(--ease);
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    cursor: pointer;
}
.nav__toggle span {
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    isolation: isolate;
    padding: clamp(118px, 15vw, 170px) 0 clamp(40px, 6vw, 70px);
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 220px;
    background: linear-gradient(to top, var(--ink-900), transparent);
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}
.aurora--1 {
    width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
    top: -12%; left: -10%;
    background: radial-gradient(circle, rgba(27, 42, 94, .95), transparent 68%);
    animation: drift1 22s ease-in-out infinite;
}
.aurora--2 {
    width: 40vw; height: 40vw; min-width: 280px; min-height: 280px;
    top: 4%; right: -8%;
    background: radial-gradient(circle, rgba(228, 37, 45, .5), transparent 66%);
    animation: drift2 26s ease-in-out infinite;
}
.aurora--3 {
    width: 52vw; height: 34vw; min-width: 320px;
    bottom: -18%; left: 22%;
    background: radial-gradient(circle, rgba(17, 38, 92, .9), transparent 70%);
    animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(8%, 6%, 0) scale(1.12); }
}
@keyframes drift2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
    50% { transform: translate3d(-7%, 9%, 0) scale(.92); }
}
@keyframes drift3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-6%, -8%, 0) scale(1.1); }
}

.hero__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(130, 165, 235, .085) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(130, 165, 235, .085) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 25%, transparent 78%);
}
.hero__scan {
    position: absolute;
    inset: 0 0 auto 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(120, 170, 255, .11), transparent);
    animation: scan 9s ease-in-out infinite;
}
@keyframes scan {
    0%, 100% { transform: translateY(-16%); opacity: .35; }
    50% { transform: translateY(125%); opacity: .9; }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #d8e2f6;
    padding: 8px 16px 8px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    margin-bottom: 22px;
}
.kicker i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red-2);
    box-shadow: 0 0 0 0 rgba(255, 75, 84, .7);
    animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 84, .75); }
    70% { box-shadow: 0 0 0 11px rgba(255, 75, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 84, 0); }
}

.hero__title {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(2.6rem, 7.2vw, 5.1rem);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: .005em;
    margin-bottom: 22px;
}
.hero__title .line { display: block; }
.hero__title .line--accent {
    background: linear-gradient(100deg, var(--red-2) 0%, #ffb3b7 48%, var(--red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 26px rgba(228, 37, 45, .45));
}

.hero__lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 9px; }
.hero__pills li {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #cbd7ee;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.hero__pills li:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ---------- Escenario 3D ---------- */
.hero__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 72vh;
    display: grid;
    place-items: center;
}
.stage__canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: pan-y;
}
.stage__rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.stage__rings span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(140, 175, 240, .16);
}
.stage__rings span:nth-child(1) { width: 92%; height: 92%; animation: spin 38s linear infinite; border-style: dashed; }
.stage__rings span:nth-child(2) { width: 70%; height: 70%; border-color: rgba(228, 37, 45, .22); animation: spin 26s linear infinite reverse; }
.stage__rings span:nth-child(3) { width: 48%; height: 48%; border-color: rgba(140, 175, 240, .12); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage__floor {
    position: absolute;
    left: 50%; bottom: 7%;
    width: 60%; height: 38px;
    translate: -50% 0;
    background: radial-gradient(ellipse at center, rgba(228, 37, 45, .4), transparent 70%);
    filter: blur(14px);
    z-index: 1;
    animation: floorPulse 4.5s ease-in-out infinite;
}
@keyframes floorPulse {
    0%, 100% { opacity: .55; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.12); }
}

.stage__tag {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 11px 16px;
    border-radius: 14px;
    background: rgba(8, 18, 48, .72);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .9);
}
.stage__tag strong { font-family: var(--head); font-size: 1.3rem; letter-spacing: .04em; color: #fff; line-height: 1; }
.stage__tag span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.stage__tag--a { top: 9%; right: 0; animation: float 7s ease-in-out infinite; }
.stage__tag--b { bottom: 14%; left: 0; animation: float 7s ease-in-out infinite 1.6s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-13px); }
}

/* ---------- Métricas ---------- */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.6vw, 18px);
    margin-top: clamp(34px, 5vw, 58px);
    padding-top: clamp(26px, 4vw, 40px);
    border-top: 1px solid var(--line);
}
.metric {
    position: relative;
    padding: 18px 18px 18px 20px;
    border-radius: var(--r);
    background: var(--glass);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.metric::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--red), transparent);
}
.metric:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.metric__num {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--head);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.metric__num em {
    font-family: var(--body);
    font-style: normal;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red-2);
}
.metric__label { display: block; font-size: .78rem; color: var(--faint); margin-top: 8px; line-height: 1.45; }

/* ---------- Indicador de scroll ---------- */
.hero__scroll {
    display: grid;
    place-items: start center;
    width: 26px; height: 44px;
    margin: clamp(26px, 4vw, 44px) auto 0;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding-top: 7px;
}
.hero__scroll span {
    width: 4px; height: 9px;
    border-radius: 3px;
    background: var(--red-2);
    animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(16px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
    position: relative;
    overflow: hidden;
    padding: 15px 0;
    background: linear-gradient(90deg, var(--ink-800), var(--ink-700), var(--ink-800));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.ticker__track span {
    font-family: var(--head);
    font-size: 1.04rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b9c8e4;
    white-space: nowrap;
}
.ticker__track i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(66px, 9vw, 118px) 0; }
.section--tint {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(27, 42, 94, .5), transparent 70%),
        linear-gradient(180deg, var(--ink-850), var(--ink-900));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Split (Nosotros) ---------- */
.split {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
}
.split__visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.split__copy { min-width: 0; }
.split__glow {
    position: absolute;
    width: 78%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 37, 45, .3), transparent 65%);
    filter: blur(40px);
    animation: floorPulse 6s ease-in-out infinite;
}

/* Logo giratorio en 3D */
.logo3d {
    position: relative;
    z-index: 2;
    width: min(100%, 340px);
    aspect-ratio: 1.42 / 1;
    perspective: 1400px;
}
.logo3d__inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: flip 16s cubic-bezier(.6, .05, .4, .95) infinite;
}
.logo3d:hover .logo3d__inner { animation-play-state: paused; }
@keyframes flip {
    0%, 36% { transform: rotateY(0deg) rotateX(0deg); }
    50%, 86% { transform: rotateY(180deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}
.logo3d__face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: var(--r-lg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
}
.logo3d__face--front { background: #fff; }
.logo3d__face--front img { width: 100%; height: 100%; object-fit: contain; }
.logo3d__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, var(--brand), #0a1230 70%);
    border: 1px solid var(--line-2);
    text-align: center;
    gap: 10px;
    align-content: center;
}
.logo3d__face--back span {
    font-family: var(--head);
    font-size: 1.7rem;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
}
.logo3d__face--back small { font-size: .72rem; color: var(--muted); line-height: 1.5; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 20px; }

/* ---------- Tarjeta de cristal ---------- */
.glass {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .32s var(--ease),
                background .32s var(--ease), box-shadow .32s var(--ease);
}
.glass::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(228, 37, 45, .7), transparent 42%, rgba(120, 165, 255, .45));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.glass:hover { background: rgba(255, 255, 255, .07); box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .95); }
.glass:hover::before { opacity: 1; }
.glass__ico {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(228, 37, 45, .22), rgba(120, 165, 255, .14));
    border: 1px solid var(--line-2);
    color: var(--red-2);
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.glass h3 {
    font-family: var(--head);
    font-size: 1.42rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    margin-bottom: 8px;
}
.glass p { color: var(--muted); font-size: .94rem; }

.note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: var(--r);
    background: linear-gradient(120deg, rgba(228, 37, 45, .12), rgba(27, 42, 94, .3));
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
}
.note .ico { font-size: 1.6rem; color: var(--red-2); margin-top: 2px; }
.note p { color: var(--muted); font-size: .93rem; }
.note strong { color: #fff; }

/* ---------- Modalidades ---------- */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 26px); }
.mode {
    position: relative;
    padding: clamp(26px, 3.4vw, 40px);
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .32s var(--ease),
                box-shadow .32s var(--ease), background .32s var(--ease);
}
.mode::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    top: -140px; right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 165, 255, .22), transparent 68%);
    transition: transform .5s var(--ease), opacity .4s var(--ease);
    opacity: .6;
}
.mode--alt::after { background: radial-gradient(circle, rgba(228, 37, 45, .3), transparent 68%); }
.mode:hover { border-color: var(--line-2); box-shadow: 0 34px 80px -40px rgba(0, 0, 0, 1); }
.mode:hover::after { transform: scale(1.18); opacity: 1; }
.mode__num {
    position: absolute;
    top: 18px; right: 26px;
    font-family: var(--head);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, .055);
}
.mode__ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px; height: 58px;
    border-radius: 16px;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(140deg, var(--red), #8f1118);
    box-shadow: 0 14px 34px -14px rgba(228, 37, 45, .9);
    margin-bottom: 18px;
    transition: transform .4s var(--ease);
}
.mode:hover .mode__ico { transform: rotate(-8deg) scale(1.08); }
.mode h3 {
    position: relative;
    font-family: var(--head);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: 10px;
}
.mode > p { position: relative; color: var(--muted); font-size: .97rem; }

.check { position: relative; display: grid; gap: 10px; margin: 20px 0 18px; }
.check li {
    position: relative;
    padding-left: 30px;
    font-size: .93rem;
    color: #d3dcef;
}
.check li::before {
    content: '';
    position: absolute;
    left: 0; top: .34em;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--red-soft);
    border: 1px solid rgba(228, 37, 45, .5);
}
.check li::after {
    content: '';
    position: absolute;
    left: 6px; top: .62em;
    width: 6px; height: 3px;
    border-left: 2px solid var(--red-2);
    border-bottom: 2px solid var(--red-2);
    transform: rotate(-45deg);
}

/* ---------- Equipos ---------- */
.rig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: clamp(16px, 2.2vw, 24px);
}
.rig {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .32s var(--ease),
                background .32s var(--ease), box-shadow .32s var(--ease);
}
.rig::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    scale: 0 1;
    transform-origin: left;
    transition: scale .45s var(--ease);
}
.rig:hover { background: rgba(255, 255, 255, .075); border-color: var(--line-2); box-shadow: 0 28px 64px -34px rgba(0, 0, 0, 1); }
.rig:hover::before { scale: 1 1; }
.rig__head { margin-bottom: 12px; }
.rig__tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a9bbdb;
    padding: 5px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    margin-bottom: 12px;
}
.rig__tag--hot { color: #fff; background: linear-gradient(135deg, var(--red), #8f1118); border-color: transparent; }
.rig h3 {
    font-family: var(--head);
    font-size: 1.62rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    line-height: 1.08;
}
.rig p { color: var(--muted); font-size: .94rem; flex: 1; }
.rig--hero {
    background: linear-gradient(150deg, rgba(228, 37, 45, .16), rgba(255, 255, 255, .03));
    border-color: rgba(228, 37, 45, .4);
}
.rig--hero::before { scale: 1 1; }

.bar {
    position: relative;
    height: 6px;
    margin-top: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}
.bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), #ff9298);
    box-shadow: 0 0 14px rgba(228, 37, 45, .7);
    transition: width 1.4s var(--ease) .15s;
}
.rig.in .bar span { width: var(--w); }

/* ---------- Dotación ---------- */
.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
.kit {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .32s var(--ease), border-color .32s var(--ease), background .32s var(--ease);
}
.kit:hover { background: rgba(255, 255, 255, .075); border-color: rgba(228, 37, 45, .4); }
.kit__ico {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 16px;
    font-size: 1.55rem;
    color: var(--red-2);
    background: linear-gradient(140deg, rgba(228, 37, 45, .2), rgba(120, 165, 255, .1));
    border: 1px solid var(--line-2);
    margin-bottom: 16px;
    transition: transform .45s var(--ease), color .3s var(--ease);
}
.kit:hover .kit__ico { transform: rotateY(180deg); color: #fff; }
.kit h3 {
    font-family: var(--head);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: 8px;
}
.kit p { color: var(--muted); font-size: .92rem; }

/* ---------- Banda CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(46px, 7vw, 76px) 0;
    background: linear-gradient(115deg, #15050a 0%, var(--brand) 45%, #0a1230 100%);
    background-size: 200% 200%;
    animation: shift 16s ease infinite;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
@keyframes shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, transparent, #000, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000, transparent);
}
.cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 44px);
    flex-wrap: wrap;
}
.cta .h2 { margin-bottom: 8px; }
.cta .lead { color: #dbe4f5; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: clamp(20px, 3.4vw, 40px);
    align-items: start;
}
.contact__info { display: grid; gap: 12px; }
.cline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: var(--r);
    background: var(--glass);
    border: 1px solid var(--line);
    transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.cline:not(.cline--static):hover {
    transform: translateX(6px);
    border-color: rgba(228, 37, 45, .45);
    background: rgba(255, 255, 255, .08);
}
.cline__ico {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex: none;
    border-radius: 12px;
    font-size: 1.15rem;
    color: var(--red-2);
    background: rgba(228, 37, 45, .14);
    border: 1px solid rgba(228, 37, 45, .3);
}
.cline > span:last-child { min-width: 0; }
.cline small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.cline strong { display: block; font-size: 1rem; color: #fff; font-weight: 600; line-height: 1.4; }
.cline__mail { font-size: .88rem; word-break: break-all; }
.contact__info .btn { margin-top: 6px; }

.contact__form {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1);
}
.field { margin-bottom: 16px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b9c7e2;
    margin-bottom: 7px;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--body);
    font-size: .95rem;
    color: #fff;
    background: rgba(4, 9, 26, .55);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: #0a1430; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #6a7da3; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(4, 9, 26, .8);
    box-shadow: 0 0 0 4px rgba(228, 37, 45, .16);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #ff5b5b; box-shadow: 0 0 0 4px rgba(255, 91, 91, .14); }
.field__error { display: block; color: #ff8a8a; font-size: .76rem; margin-top: 5px; min-height: 1em; }
.hidden-field { position: absolute; left: -9999px; visibility: hidden; height: 0; overflow: hidden; }
.form__status { margin-top: 14px; font-size: .9rem; font-weight: 600; text-align: center; }
.form__status.success { color: #51d88a; }
.form__status.error { color: #ff8a8a; }
.form__status a { color: var(--red-2); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(180deg, var(--ink-850), #020611);
    border-top: 1px solid var(--line);
    padding-top: clamp(44px, 6vw, 70px);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: clamp(22px, 3vw, 40px);
    padding-bottom: 38px;
}
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__logo {
    width: 180px;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}
.footer__brand p { color: var(--faint); font-size: .9rem; }
.footer__col { display: grid; gap: 9px; align-content: start; min-width: 0; }
.footer__col h4 {
    font-family: var(--head);
    font-size: 1.05rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4px;
}
.footer__col a, .footer__col span { font-size: .9rem; color: var(--faint); transition: color .22s var(--ease), translate .22s var(--ease); }
.footer__col a:hover { color: var(--red-2); translate: 4px 0; }
.footer__mail { word-break: break-all; }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: #55668a;
}

/* ---------- Flotantes ---------- */
.wa {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
    width: 58px; height: 58px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--wa);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 34px -10px rgba(37, 211, 102, .75);
    transition: width .4s var(--ease), gap .4s var(--ease), transform .3s var(--ease);
    animation: pulse 2.8s ease-out infinite;
}
.wa svg { flex: none; }
.wa__tip {
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .wa:hover { width: 222px; gap: 11px; transform: translateY(-3px); animation-play-state: paused; }
    .wa:hover .wa__tip { opacity: 1; }
}
@keyframes pulse {
    0% { box-shadow: 0 12px 34px -10px rgba(37, 211, 102, .75), 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 12px 34px -10px rgba(37, 211, 102, .75), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 12px 34px -10px rgba(37, 211, 102, .75), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.to-top {
    position: fixed;
    right: 26px; bottom: 90px;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(8, 18, 48, .85);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    translate: 0 10px;
    transition: opacity .3s var(--ease), translate .3s var(--ease), visibility .3s, background .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { background: var(--red); border-color: var(--red); }

/* ============================================================
   ANIMACIONES DE ENTRADA (scroll reveal)
   ============================================================ */
[data-anim] {
    opacity: 0;
    transition:
        opacity .85s var(--ease) var(--d, 0s),
        translate .85s var(--ease) var(--d, 0s),
        scale .85s var(--ease) var(--d, 0s),
        filter .85s var(--ease) var(--d, 0s);
    will-change: opacity, translate;
}
[data-anim="fade-up"] { translate: 0 36px; }
[data-anim="fade-right"] { translate: -44px 0; }
[data-anim="fade-left"] { translate: 44px 0; }
[data-anim="zoom"] { scale: .93; translate: 0 24px; }
[data-anim="line"] { translate: 0 28px; filter: blur(7px); }

[data-anim].in {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0);
}

/* Tilt 3D en tarjetas.
   Se aplica sobre `transform`, así que no pisa el reveal (que usa
   `translate`/`scale`). Cada tarjeta declara `transform` en su
   propia transición; aquí solo aceleramos el seguimiento del mouse. */
[data-tilt] {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
}
[data-tilt].tilting { transition-duration: .09s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
    .split__visual { order: -1; min-height: 0; }
    .logo3d { width: min(100%, 300px); }
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__copy { order: 1; }
    .hero__stage { order: 2; aspect-ratio: 16 / 11; max-height: none; width: 100%; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .mode-grid { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: 0 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 104px var(--pad) 28px;
        background: rgba(4, 9, 26, .97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        translate: 0 -102%;
        transition: translate .42s var(--ease);
        max-height: 100vh;
        overflow-y: auto;
    }
    .nav.open { translate: 0 0; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list li { border-bottom: 1px solid var(--line); }
    .nav__link { display: block; padding: 15px 2px; font-size: 1.02rem; }
    .nav__cta { margin-top: 20px; width: 100%; }
    .nav__toggle { display: flex; position: relative; z-index: 2; }
    .header__inner, .header.scrolled .header__inner { height: 74px; }
}

@media (max-width: 680px) {
    .duo { grid-template-columns: 1fr; }
    .field--row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .cta__actions { width: 100%; }
    .cta__actions .btn { flex: 1 1 auto; }
    .stage__tag strong { font-size: 1.1rem; }
    .stage__tag { padding: 9px 13px; }
}

@media (max-width: 560px) {
    .brand__text small { display: none; }
    .brand__text strong { font-size: 1.04rem; }
    .brand__badge, .header.scrolled .brand__badge { width: 44px; height: 44px; border-radius: 12px; }
    .metrics { grid-template-columns: 1fr; gap: 10px; }
    .metric { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
    .metric__num { font-size: 1.6rem; }
    .metric__label { margin-top: 0; }
    .hero__actions .btn { width: 100%; }
    .hero__stage { aspect-ratio: 4 / 3.4; }
    .stage__tag--a { top: 2%; right: -4px; }
    .stage__tag--b { bottom: 6%; left: -4px; }
    .to-top { bottom: 86px; right: 22px; }
}

@media (max-width: 400px) {
    .hero__title { font-size: 2.3rem; }
    .mode__num { font-size: 3.2rem; }
}

/* Pantallas muy anchas: sube un poco la escala del escenario */
@media (min-width: 1500px) {
    :root { --maxw: 1280px; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-anim] { opacity: 1; translate: 0 0; scale: 1; filter: none; }
    .rig .bar span { width: var(--w); }
}

/* Foco visible para navegación con teclado */
:focus-visible {
    outline: 2px solid var(--red-2);
    outline-offset: 3px;
    border-radius: 4px;
}
