/* =====================================================================
   Make · Diseño y Software — Hoja de estilos principal
   Concepto: "camaleón digital". Base oscura tecnológica, verde de la
   marca como color principal y los violetas/magentas de la foto de
   portada como acentos.
   ===================================================================== */

:root {
    /* Marca */
    --verde: #4baa2c;
    --verde-2: #008f38;
    --verde-neon: #7be04f;
    --teal: #1fc7a2;
    --violeta: #9b5cff;
    --magenta: #e04fd8;

    /* Superficies */
    --bg: #050807;
    --bg-2: #0a0f0c;
    --superficie: rgba(255, 255, 255, .035);
    --superficie-2: rgba(255, 255, 255, .06);
    --borde: rgba(255, 255, 255, .09);
    --borde-2: rgba(255, 255, 255, .16);

    /* Texto */
    --texto: #eaf2ec;
    --texto-2: #a9b6ae;
    --texto-3: #6f7d74;

    /* Degradados */
    --grad: linear-gradient(100deg, var(--verde-neon) 0%, var(--teal) 45%, var(--violeta) 100%);
    --grad-anim: linear-gradient(90deg, var(--verde-neon), var(--teal), var(--violeta), var(--magenta), var(--verde-neon));

    /* Tipografía */
    --f-titulo: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Medidas */
    --radio: 22px;
    --radio-sm: 14px;
    --ancho: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --nav-h: 76px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--texto);
    font-family: var(--f-texto);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--verde); color: #04140a; }

:focus-visible {
    outline: 2px solid var(--verde-neon);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 200;
    padding: 10px 16px; border-radius: 10px;
    background: var(--verde); color: #04140a; font-weight: 600;
    transform: translateY(-160%);
    transition: transform .2s;
}
.skip-link:focus { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol path,
.sprite symbol rect,
.sprite symbol circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sprite symbol .relleno { fill: currentColor; stroke: none; }

.contenedor {
    width: 100%;
    max-width: calc(var(--ancho) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: var(--texto-3); }

.dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--verde-neon);
    box-shadow: 0 0 0 0 rgba(123, 224, 79, .6);
    animation: pulso 2s infinite;
}

/* ---------- Fondo global: rejilla + halo que sigue al cursor ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}

.cursor-glow {
    position: fixed; z-index: -1; pointer-events: none;
    width: 560px; height: 560px; left: 0; top: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 170, 44, .16), rgba(155, 92, 255, .06) 45%, transparent 70%);
    transform: translate(-50%, -50%);
    translate: var(--cx, -999px) var(--cy, -999px);
    transition: opacity .4s;
    opacity: 0;
}
body.con-cursor .cursor-glow { opacity: 1; }

.scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 120;
    height: 2px; width: 100%;
    background: var(--grad);
    transform-origin: 0 50%;
    transform: scaleX(var(--progreso, 0));
}

/* ---------- Tipografía de secciones ---------- */
.etiqueta {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--verde-neon);
    margin-bottom: 18px;
}
.etiqueta span {
    display: inline-grid; place-items: center;
    padding: 2px 8px; border-radius: 6px;
    border: 1px solid rgba(123, 224, 79, .35);
    background: rgba(75, 170, 44, .1);
    letter-spacing: .05em;
}
.etiqueta::after {
    content: ""; width: 48px; height: 1px;
    background: linear-gradient(90deg, var(--verde-neon), transparent);
}

.titulo-xl {
    font-family: var(--f-titulo);
    font-weight: 600;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    max-width: 22ch;
}

.grad {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.grad-anim {
    background: var(--grad-anim);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: fluir 8s linear infinite;
}

.lead {
    color: var(--texto-2);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    max-width: 56ch;
    margin-top: 22px;
}

.seccion { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.seccion__cabecera { margin-bottom: clamp(40px, 6vw, 64px); }
.seccion__cabecera--fila {
    display: flex; flex-wrap: wrap; gap: 28px;
    align-items: flex-end; justify-content: space-between;
}

/* ---------- Botones ---------- */
.btn {
    --b: var(--borde-2);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px;
    border-radius: 999px;
    border: 1px solid var(--b);
    font-family: var(--f-titulo);
    font-weight: 600; font-size: 1rem; letter-spacing: .01em;
    white-space: nowrap;
    transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
    isolation: isolate;
    overflow: hidden;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--bloque { width: 100%; }

.btn--primario {
    background: var(--verde);
    border-color: var(--verde);
    color: #04140a;
    box-shadow: 0 10px 30px -10px rgba(75, 170, 44, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primario::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--grad);
    opacity: 0; transition: opacity .3s;
}
.btn--primario:hover { box-shadow: 0 14px 40px -10px rgba(31, 199, 162, .8); }
.btn--primario:hover::before { opacity: 1; }

.btn--ghost {
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--texto);
}
.btn--ghost:hover { border-color: var(--verde-neon); color: var(--verde-neon); background: rgba(75, 170, 44, .08); }

/* ---------- Tarjeta con brillo que sigue al cursor ---------- */
.glow-card {
    --mx: 50%; --my: 50%;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    isolation: isolate;
}
.glow-card::before {
    /* borde luminoso */
    content: ""; position: absolute; inset: -1px; z-index: -1;
    border-radius: inherit; padding: 1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(123, 224, 79, .75), rgba(155, 92, 255, .35) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s;
}
.glow-card::after {
    /* resplandor interior */
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(75, 170, 44, .1), transparent 60%);
    opacity: 0; transition: opacity .35s;
}
.glow-card:hover::before,
.glow-card:hover::after,
.glow-card:focus-within::before { opacity: 1; }

/* ---------- Navegación ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 100;
    padding: 14px var(--gutter);
    transition: padding .3s var(--ease);
}
.nav__bar {
    max-width: var(--ancho); margin: 0 auto;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 0 10px 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { padding-top: 10px; }
.nav.is-scrolled .nav__bar {
    background: rgba(8, 12, 10, .72);
    border-color: var(--borde);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.nav__logo img { height: 42px; width: auto; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
    position: relative;
    padding: 8px 14px; border-radius: 999px;
    font-size: .88rem; font-weight: 500;
    color: var(--texto-2);
    transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--texto); background: rgba(255, 255, 255, .05); }
.nav__links a.is-activo { color: var(--texto); }
.nav__links a.is-activo::after {
    content: ""; position: absolute; left: 50%; bottom: 2px;
    width: 16px; height: 2px; border-radius: 2px;
    background: var(--verde-neon);
    box-shadow: 0 0 10px var(--verde-neon);
    transform: translateX(-50%);
}

.nav__acciones { display: flex; align-items: center; gap: 8px; }
.btn__wa { width: 18px; height: 18px; }
.btn .btn__wa { fill: currentColor; stroke: none; }
.btn:hover .btn__wa { transform: none; }
/* Botón de WhatsApp dentro del menú: solo en el menú móvil */
.nav__wa { display: none; }
.nav__toggle {
    display: none;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--borde-2);
    background: rgba(255, 255, 255, .05);
    position: relative;
}
.nav__toggle span {
    position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
    background: var(--texto);
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-abierto .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-abierto .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    padding: calc(var(--nav-h) + 30px) var(--gutter) 90px;
    overflow: hidden;
    text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transform: scale(1.08) translate3d(var(--px, 0), var(--py, 0), 0);
    animation: kenburns 22s ease-in-out infinite alternate;
    filter: saturate(1.15) contrast(1.05);
}
.hero__shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(5, 8, 7, .15), rgba(5, 8, 7, .75) 75%),
        linear-gradient(180deg, rgba(5, 8, 7, .55) 0%, transparent 25%, transparent 60%, var(--bg) 100%);
}
.hero__scan {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
    mix-blend-mode: overlay;
}
.hero__scan::after {
    content: ""; position: absolute; left: 0; right: 0; height: 30%;
    background: linear-gradient(180deg, transparent, rgba(123, 224, 79, .07), transparent);
    animation: barrido 7s linear infinite;
}

.hero__contenido { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
    width: clamp(220px, 36vw, 440px); height: auto;
    /* Sin "filter" (blur/drop-shadow): en Safari de iPhone pintaba la imagen como un rectángulo blanco
       (v2.12.1). La aparición es solo con opacidad y escala, que además es más ligera. */
    animation: aparecerLogo 1.4s var(--ease) both;
}
.hero__titulo {
    margin-top: clamp(20px, 3vw, 34px);
    font-family: var(--f-titulo);
    font-weight: 600;
    font-size: clamp(1.9rem, 5.2vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    animation: subir 1s .35s var(--ease) both;
}
.rotador {
    display: inline-block;
    min-width: 2ch;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.rotador::after {
    content: ""; display: inline-block;
    width: .08em; height: .9em; margin-left: .06em;
    vertical-align: -.08em;
    background: var(--verde-neon);
    animation: parpadeo 1s steps(2) infinite;
}
.hero__sub {
    margin-top: 20px;
    max-width: 58ch;
    color: #c9d4cd;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    animation: subir 1s .5s var(--ease) both;
}
.hero__ctas {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-top: 34px;
    animation: subir 1s .65s var(--ease) both;
}

.hud {
    position: absolute; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em;
    color: rgba(234, 242, 236, .6);
    text-transform: uppercase;
}
.hud::before {
    content: ""; position: absolute; width: 14px; height: 14px;
    border: 1px solid rgba(123, 224, 79, .6);
}
.hud--tl { top: calc(var(--nav-h) + 22px); left: calc(var(--gutter) + 18px); }
.hud--tl::before { left: -18px; top: -8px; border-right: 0; border-bottom: 0; }
.hud--tr { top: calc(var(--nav-h) + 22px); right: calc(var(--gutter) + 18px); }
.hud--tr::before { right: -18px; top: -8px; border-left: 0; border-bottom: 0; }
.hud--bl { bottom: 34px; left: calc(var(--gutter) + 18px); }
.hud--bl::before { left: -18px; bottom: -8px; border-right: 0; border-top: 0; }
.hud--br { bottom: 34px; right: calc(var(--gutter) + 96px); }
.hud--br::before { right: -18px; bottom: -8px; border-left: 0; border-top: 0; }

.hero__scroll {
    position: absolute; bottom: 28px; left: 50%;
    width: 26px; height: 42px; margin-left: -13px;
    border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
.hero__scroll span {
    position: absolute; left: 50%; top: 8px;
    width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
    background: var(--verde-neon);
    animation: rueda 1.8s var(--ease) infinite;
}

/* ---------- Marquee de servicios ---------- */
.marquee {
    position: relative;
    margin-top: calc(clamp(80px, 12vw, 150px) * -1);
    margin-bottom: clamp(60px, 9vw, 110px);
    padding: 18px 0;
    border-block: 1px solid var(--borde);
    background: rgba(255, 255, 255, .02);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__pista {
    display: flex; width: max-content; gap: 0;
    animation: desplazar 36s linear infinite;
}
.marquee__pista span {
    display: inline-flex; align-items: center; gap: 28px;
    padding-right: 28px;
    font-family: var(--f-titulo); font-weight: 500;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: var(--texto-2);
    white-space: nowrap;
}
.marquee__pista span::after {
    content: "✦"; color: var(--verde-neon); font-size: .8em;
}

/* ---------- Nosotros ---------- */
.nosotros__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.firma {
    display: flex; align-items: center; gap: 14px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--borde);
}
.firma img { width: 70px; height: auto; }
.firma strong { display: block; font-family: var(--f-titulo); font-size: 1.2rem; }
.firma small { font-family: var(--f-mono); color: var(--texto-3); letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }

.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.bento__item {
    padding: 26px;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 160px;
    overflow: hidden;
}
.bento__item--grande {
    grid-row: span 2;
    min-height: 334px;
    background:
        radial-gradient(circle at 80% 10%, rgba(155, 92, 255, .25), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(75, 170, 44, .28), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.bento__item--ancho { grid-column: span 2; min-height: auto; }
.bento__num {
    font-family: var(--f-titulo); font-weight: 700;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.bento__item--grande .bento__num { font-size: clamp(4rem, 9vw, 7rem); }
.bento__txt { margin-top: 8px; color: var(--texto-2); font-size: .95rem; }

.proceso { display: grid; grid-template-columns: repeat(var(--pasos, 4), 1fr); gap: 10px; }
.proceso li {
    position: relative;
    display: flex; flex-direction: column; gap: 4px;
    font-family: var(--f-titulo); font-weight: 500;
}
.proceso .proceso__num { font-family: var(--f-mono); font-size: .72rem; color: var(--verde-neon); }
.proceso li:not(:last-child)::after {
    content: ""; position: absolute; top: 8px; left: 30px; right: 4px; height: 1px;
    background: linear-gradient(90deg, rgba(123, 224, 79, .5), transparent);
}

/* ---------- Frase ---------- */
.frase {
    position: relative;
    min-height: clamp(360px, 60vh, 560px);
    display: grid; place-items: center;
    padding: 80px var(--gutter);
    overflow: hidden;
    text-align: center;
    border-block: 1px solid var(--borde);
}
.frase__bg {
    position: absolute; inset: -20% 0; z-index: -1;
    background-size: cover; background-position: center;
    transform: translate3d(0, var(--parallax, 0), 0);
    filter: grayscale(.2) brightness(.55);
}
.frase::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)),
        radial-gradient(ellipse at center, transparent, rgba(5, 8, 7, .6));
}
.frase__texto p {
    font-family: var(--f-titulo);
    font-weight: 700;
    font-size: clamp(2.3rem, 7.5vw, 6.2rem);
    line-height: 1;
    letter-spacing: -.04em;
}
.frase__texto cite {
    display: block; margin-top: 22px;
    font-family: var(--f-mono); font-style: normal;
    letter-spacing: .3em; text-transform: uppercase; font-size: .8rem;
    color: var(--texto-2);
}

/* ---------- Servicios ---------- */
.servicios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.servicio {
    padding: 30px 28px 26px;
    display: flex; flex-direction: column;
    min-height: 360px;
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
    transition: transform .4s var(--ease), border-color .3s;
}
.servicio:hover { border-color: rgba(123, 224, 79, .2); }
.servicio__idx {
    position: absolute; top: 24px; right: 26px;
    font-family: var(--f-mono); font-size: .8rem; color: var(--texto-3);
}
.servicio__icono {
    width: 68px; height: 68px;
    display: grid; place-items: center;
    border-radius: 18px;
    color: var(--verde-neon);
    background: linear-gradient(145deg, rgba(75, 170, 44, .18), rgba(155, 92, 255, .12));
    border: 1px solid rgba(123, 224, 79, .25);
    box-shadow: 0 10px 30px -12px rgba(75, 170, 44, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
    margin-bottom: 26px;
    transform: translateZ(30px);
    transition: transform .4s var(--ease), color .3s;
}
.servicio__icono svg { width: 36px; height: 36px; }
.servicio__icono img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: screen; }
.servicio:hover .servicio__icono { transform: translateZ(40px) rotate(-6deg) scale(1.06); color: #fff; }
.servicio h3 {
    font-family: var(--f-titulo); font-weight: 600;
    font-size: 1.45rem; letter-spacing: -.01em;
}
.servicio p { margin-top: 10px; color: var(--texto-2); font-size: .97rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips li {
    padding: 4px 10px; border-radius: 999px;
    font-size: .74rem; font-family: var(--f-mono);
    color: var(--texto-2);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--borde);
}
.servicio__link {
    margin-top: auto; padding-top: 22px;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--f-titulo); font-weight: 600; font-size: .92rem;
    color: var(--verde-neon);
    width: max-content;
}
.servicio__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform .25s var(--ease); }
.servicio__link:hover svg { transform: translate(3px, -3px); }

/* ---------- Portafolio ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro {
    padding: 9px 16px; border-radius: 999px;
    font-size: .86rem; font-weight: 500;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--borde);
    color: var(--texto-2);
    transition: all .25s;
}
.filtro:hover { color: var(--texto); border-color: var(--borde-2); }
.filtro.is-activo {
    color: #04140a; background: var(--verde); border-color: var(--verde);
    box-shadow: 0 8px 24px -10px rgba(75, 170, 44, .8);
}

.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.obra { transition: opacity .4s, transform .4s var(--ease); }
.obra.is-oculta { display: none; }
.obra__btn {
    position: relative;
    display: block; width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0; border: 1px solid var(--borde);
    border-radius: var(--radio-sm);
    overflow: hidden;
    background: var(--bg-2);
    text-align: left;
}
.obra__btn img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease), filter .5s;
}
.obra__placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background:
        radial-gradient(circle at 20% 20%, hsla(calc(var(--h, 0) + 100), 70%, 55%, .35), transparent 55%),
        radial-gradient(circle at 85% 80%, hsla(calc(var(--h, 0) + 260), 70%, 60%, .35), transparent 55%),
        linear-gradient(135deg, #0d1511, #090d0b);
    transition: transform .7s var(--ease);
}
.obra__placeholder::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 24px 24px;
}
.obra__iniciales {
    position: relative;
    font-family: var(--f-titulo); font-weight: 700;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 0 40px rgba(123, 224, 79, .5);
}
.obra--vacia .obra__iniciales { transform: translateY(-14%); }
.obra__info {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 2px;
    padding: 40px 16px 14px;
    background: linear-gradient(180deg, transparent, rgba(3, 6, 5, .9));
    transform: translateY(35%); opacity: .0;
    transition: transform .45s var(--ease), opacity .45s;
}
.obra__cat {
    font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--verde-neon);
}
.obra__nombre { font-family: var(--f-titulo); font-weight: 600; font-size: 1.05rem; }
.obra__ver {
    position: absolute; top: 12px; right: 12px;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(5, 8, 7, .6); backdrop-filter: blur(8px);
    border: 1px solid var(--borde-2);
    opacity: 0; transform: scale(.7);
    transition: all .35s var(--ease);
}
.obra__ver svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.obra__btn:hover img,
.obra__btn:focus-visible img,
.obra__btn:hover .obra__placeholder { transform: scale(1.07); }
.obra__btn:hover .obra__info,
.obra__btn:focus-visible .obra__info,
.obra--vacia .obra__info { transform: none; opacity: 1; }
.obra__btn:hover .obra__ver,
.obra__btn:focus-visible .obra__ver { opacity: 1; transform: none; }
.obra__btn:hover { border-color: rgba(123, 224, 79, .35); }

/* ---------- Clientes ---------- */
.clientes { padding: 0 0 clamp(70px, 10vw, 120px); }
.clientes__titulo {
    text-align: center;
    font-family: var(--f-mono); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--texto-3);
    margin-bottom: 26px;
}
.clientes__carril {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clientes__pista {
    display: flex; width: max-content;
    animation: desplazar 40s linear infinite;
}
.clientes__carril:hover .clientes__pista { animation-play-state: paused; }
.cliente {
    display: grid; place-items: center;
    height: 72px; padding: 0 clamp(24px, 4vw, 48px);
    border-right: 1px solid var(--borde);
}
.cliente img {                                   /* logo con sus colores reales (antes se pintaba en blanco) */
    height: 52px; width: auto; max-width: 180px; object-fit: contain;
    border-radius: 8px;                            /* si el logo trae fondo sólido, sus esquinas se ven redondeadas */
    opacity: .85; transition: opacity .3s, transform .3s;
}
.cliente span {
    font-family: var(--f-titulo); font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: -.01em;
    color: rgba(234, 242, 236, .42);
    white-space: nowrap;
    transition: color .3s;
}
.cliente:hover img { opacity: 1; transform: scale(1.06); }
.cliente:hover span { color: var(--verde-neon); }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    padding-top: clamp(36px, 5vw, 52px);
    border-top: 1px solid var(--borde);
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 120% at 50% 100%, rgba(75, 170, 44, .10), transparent 70%),
        var(--bg);
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px 32px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo img { height: 46px; width: auto; pointer-events: none; }
/* Mantener presionado = abrir el admin (make.js): sin menú ni lupa de iOS, con un brillo mientras se mantiene */
/* (sin filter: en iOS los filtros sobre PNG transparentes pintan un rectángulo blanco, ver §9) */
.footer__logo { display: inline-block; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform 1.2s linear, opacity 1.2s linear; }
.footer__logo.is-presionando { transform: scale(.9); opacity: .6; }
.footer__brand p { font-family: var(--f-titulo); font-weight: 500; font-size: .95rem; line-height: 1.3; color: var(--texto); white-space: nowrap; }
.footer__brand .mono { font-size: .68rem; letter-spacing: .16em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer__nav a { position: relative; color: var(--texto-2); font-size: .9rem; transition: color .2s; }
.footer__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: var(--verde-neon); transform: scaleX(0); transition: transform .25s var(--ease);
}
.footer__nav a:hover { color: var(--verde-neon); }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__redes { display: flex; justify-content: flex-end; gap: 8px; }
.footer__redes a {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--borde-2);
    color: var(--texto-2);
    transition: all .25s;
}
.footer__redes a:hover { color: #04140a; background: var(--verde); border-color: var(--verde); transform: translateY(-3px); }
.footer__redes svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---- Marca "make": decodificador (Cipher Reveal) ----
   Los caracteres aleatorios usan --fuente-cifra y cada letra se resuelve en la letra real del logo (SVG).

   ¿TIENES EL ARCHIVO DE LA FUENTE DEL LOGO? (opcional)
   1. Copia el archivo a  src/main/resources/static/fonts/  (ej. make-logo.woff2). Revisa que su licencia permita uso web.
      Para que pese poco, recórtalo a los caracteres que usa el efecto (pyftsubset … --text="makeMAKE3409@#%&<>/_=+*").
   2. Quita el comentario del @font-face de abajo y ajusta la ruta en src: url(...).
   3. Cambia --fuente-cifra a:  "MakeLogo", "JetBrains Mono", monospace
      (el resultado final sigue siendo el SVG del logo, idéntico; la fuente solo cambia los caracteres que parpadean).

@font-face {
    font-family: "MakeLogo";
    src: url("/fonts/make-logo.woff2") format("woff2"),      ← ruta de tu archivo .woff2
         url("/fonts/make-logo.woff") format("woff"),        ← (opcional) .woff
         url("/fonts/make-logo.ttf") format("truetype");     ← (opcional) .ttf
    font-weight: 700; font-style: normal; font-display: swap;
}
*/
.footer__marca {
    --fuente-cifra: "JetBrains Mono", ui-monospace, monospace;
    display: flex; justify-content: center;
    margin-top: clamp(18px, 3vw, 30px);
    line-height: 0;
    user-select: none;
    pointer-events: none;
}
.footer__marca[data-marca-cifra] { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.footer__make { display: block; width: clamp(155px, 34.5vw, 400px); height: auto; overflow: visible; }

/* Estado final (también sin JS): verde de la marca con halo suave */
.footer__make-forma {
    fill: var(--verde-neon);
    shape-rendering: geometricPrecision;          /* bordes suaves (letras vectorizadas a 8x, v2.11.2) */
    filter: drop-shadow(0 0 5px rgba(123, 224, 79, .35));
}
/* Carácter aleatorio: mismo alto que la letra, centrado en su lugar (la palabra nunca cambia de ancho) */
.footer__make-cifra {
    font-family: var(--fuente-cifra); font-size: 72px; font-weight: 700;
    text-anchor: middle;
    fill: #8ff5d2;                                              /* esmeralda / cian mientras decodifica */
    filter: drop-shadow(0 0 4px rgba(47, 211, 196, .85));
    opacity: 0;
}
.footer__make-letra.is-cifrada .footer__make-forma { opacity: 0; }
.footer__make-letra.is-cifrada .footer__make-cifra { opacity: 1; }
/* Al resolverse: un destello breve que se asienta en el verde */
.footer__make-letra.is-resuelta .footer__make-forma { animation: make-resuelta .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes make-resuelta {
    from { fill: #eaffdc; filter: drop-shadow(0 0 12px rgba(143, 245, 210, .95)); }
    to   { fill: var(--verde-neon); filter: drop-shadow(0 0 5px rgba(123, 224, 79, .35)); }
}

.footer__legal {
    position: relative;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
    padding-block: 16px 20px;
    border-top: 1px solid var(--borde);
    color: var(--texto-3); font-size: .82rem;
}
.footer__legal .mono { font-size: .72rem; }

/* Botón discreto "Recibir avisos" (push) */
.avisos {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    border: 1px solid var(--borde); background: transparent;
    color: var(--texto-3); font-size: .72rem; letter-spacing: .04em;
    cursor: pointer; transition: color .25s, border-color .25s, background .25s;
}
.avisos[hidden] { display: none; }
.avisos svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avisos:hover, .avisos:focus-visible { color: var(--texto); border-color: var(--verde); }
.avisos.is-activo { color: var(--verde-neon); border-color: color-mix(in srgb, var(--verde-neon) 45%, transparent); }
.avisos:disabled { opacity: .5; cursor: progress; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
    transition: transform .3s var(--ease);
}
.wa-flotante::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #25d366;
    animation: onda 2.4s var(--ease) infinite;
}
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante__tip {
    position: absolute; right: 70px; top: 50%;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(8, 12, 10, .9); border: 1px solid var(--borde-2);
    font-size: .85rem; font-weight: 500; white-space: nowrap;
    transform: translate(8px, -50%); opacity: 0; pointer-events: none;
    transition: all .3s var(--ease);
}
.wa-flotante:hover .wa-flotante__tip { opacity: 1; transform: translate(0, -50%); }

/* ---------- Diálogos ---------- */
dialog {
    border: 1px solid var(--borde-2);
    border-radius: var(--radio);
    background: rgba(10, 15, 12, .96);
    color: var(--texto);
    padding: 0;
    max-width: min(960px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(2, 4, 3, .75); backdrop-filter: blur(6px); }
dialog[open] { animation: zoomIn .35s var(--ease); }

.lightbox figure { display: grid; }
.lightbox__media { background: #000; aspect-ratio: 4 / 3; max-height: 72vh; }
.lightbox__media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__media .obra__placeholder { position: relative; height: 100%; }
.lightbox figcaption {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    padding: 18px 22px;
}
.lightbox figcaption strong { font-family: var(--f-titulo); font-size: 1.2rem; flex: 1; }
.lightbox__cerrar {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--borde-2);
    background: rgba(5, 8, 7, .7);
}

.ios-tip { padding: 28px; max-width: 380px; }
.ios-tip h3 { font-family: var(--f-titulo); margin-bottom: 14px; }
.ios-tip ol { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; margin-bottom: 20px; color: var(--texto-2); }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 150;
    padding: 12px 20px; border-radius: 999px;
    background: rgba(10, 15, 12, .95); border: 1px solid var(--borde-2);
    font-size: .92rem;
    transform: translate(-50%, 150%); opacity: 0;
    transition: all .4s var(--ease);
    pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Página sin conexión ---------- */
.offline { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.offline__caja { max-width: 440px; padding: 40px 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.offline__caja h1 { font-family: var(--f-titulo); font-size: 1.8rem; }
.offline__caja p { color: var(--texto-2); }

/* ---------- Animación al hacer scroll ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Pantalla de carga ---------- */
.loader { display: none; }
html.con-loader .loader {
    --p: 1;                                   /* progreso 0-100 (lo actualiza make.js) */
    position: fixed; inset: 0; z-index: 300;
    display: grid; place-items: center;
}
html.con-loader:not(.loader-listo) body { overflow: hidden; }

/* Mientras carga, las animaciones de la portada esperan */
html.con-loader:not(.loader-listo) :is(.hero__logo, .hero__titulo, .hero__sub, .hero__ctas) {
    animation-play-state: paused;
}

.loader__panel {
    position: absolute; left: 0; right: 0; height: 50.5%;
    background: var(--bg);
    transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.loader__panel--arriba { top: 0; }
.loader__panel--abajo { bottom: 0; }
.loader__centro {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    isolation: isolate;
    transition: opacity .5s, transform .7s var(--ease), filter .5s;
}

.loader__centro::before {
    /* rejilla y halo de marca detrás del logo */
    content: ""; position: absolute; z-index: -1;
    left: 50%; top: 40%;
    width: min(900px, 160vw); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(75, 170, 44, .16), transparent 40%),
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 62%);
            mask-image: radial-gradient(circle, #000 15%, transparent 62%);
    pointer-events: none;
}
.loader__logo {
    position: relative;
    width: clamp(170px, 28vw, 280px);
    aspect-ratio: 777 / 570;
}
.loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__base { filter: grayscale(1) brightness(.55); opacity: .28; }
/* El recorte (clip-path) va en la imagen y el brillo en su contenedor: así el halo sigue la silueta del logo.
   Con ambos en la misma imagen, clip-path también recorta el drop-shadow y se veía el cuadro de la imagen. */
.loader__brillo { position: absolute; inset: 0; filter: drop-shadow(0 0 14px rgba(75, 170, 44, .4)); transition: filter .35s; }
.loader__relleno { clip-path: inset(calc(100% - var(--p) * 1%) 0 0 0); }
/* Línea de "escaneo" que sigue el borde del llenado, recortada a la silueta del logo */
.loader__borde {
    position: absolute; inset: 0;
    -webkit-mask: url("/img/logo-2026-blanco.png") center / contain no-repeat;
            mask: url("/img/logo-2026-blanco.png") center / contain no-repeat;
    background: linear-gradient(to top,
        transparent calc(var(--p) * 1% - 4%),
        rgba(190, 255, 150, .95) calc(var(--p) * 1%),
        transparent calc(var(--p) * 1% + .6%));
}

.loader__pct {
    margin-top: 26px;
    font-family: var(--f-titulo); font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 3.8rem);
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    color: var(--texto);
    min-width: 4ch; text-align: center;
}
.loader__pct small {
    font-size: .45em; margin-left: 2px;
    color: var(--verde-neon);
    vertical-align: .9em;
}
.loader__barra {
    width: clamp(180px, 30vw, 260px); height: 2px;
    margin-top: 18px;
    background: rgba(255, 255, 255, .08);
    border-radius: 2px; overflow: hidden;
}
.loader__barra span {
    display: block; height: 100%;
    width: calc(var(--p) * 1%);
    background: var(--grad);
    box-shadow: 0 0 12px rgba(123, 224, 79, .8);
}
.loader__txt {
    margin-top: 14px;
    font-family: var(--f-mono); font-size: .7rem;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--texto-3);
}
.loader__txt::after { content: "_"; animation: parpadeo 1s steps(2) infinite; }

/* Al llegar a 100%: brillo del logo */
.loader.is-completo .loader__brillo { filter: drop-shadow(0 0 26px rgba(123, 224, 79, .7)) brightness(1.08); }
.loader.is-completo .loader__borde { opacity: 0; transition: opacity .3s; }

/* Salida tipo cortina */
html.loader-listo .loader { pointer-events: none; }
html.loader-listo .loader__centro { opacity: 0; transform: scale(1.12); filter: blur(6px); }
html.loader-listo .loader__panel--arriba { transform: translateY(-101%); }
html.loader-listo .loader__panel--abajo { transform: translateY(101%); }
html.loader-listo .loader__panel { transition-delay: .12s; }

/* ---------- Keyframes ---------- */
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(123, 224, 79, .6); } 70% { box-shadow: 0 0 0 10px rgba(123, 224, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 224, 79, 0); } }
@keyframes fluir { to { background-position: 300% 0; } }
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
@keyframes barrido { from { top: -30%; } to { top: 100%; } }
@keyframes aparecerLogo {
    0% { opacity: 0; transform: scale(.9); }
    100% { opacity: 1; transform: none; }
}
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes parpadeo { to { visibility: hidden; } }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes desplazar { to { transform: translateX(-50%); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes onda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
    .galeria { grid-template-columns: repeat(3, 1fr); }
    .servicios__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --nav-h: 70px; }
    .nav__toggle { display: block; }
    .nav__cta { display: none; }
    .nav__links {
        position: fixed; inset: 0; z-index: -1;
        flex-direction: column; justify-content: center; align-items: center; gap: 8px;
        background: rgba(5, 8, 7, .97);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden;
        transition: opacity .35s, visibility .35s;
    }
    .nav__links a { font-family: var(--f-titulo); font-size: 1.8rem; font-weight: 600; color: var(--texto); padding: 10px 22px; }
    .nav__links a.is-activo::after { bottom: 4px; }
    .nav.is-abierto .nav__links { opacity: 1; visibility: visible; }
    .nav.is-abierto .nav__bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }

    .nosotros__grid { grid-template-columns: 1fr; }
    .nav__links .nav__wa {
        display: inline-flex; align-items: center; gap: 10px;
        margin-top: 18px; padding: 14px 26px;
        border-radius: 999px;
        background: var(--verde); color: #04140a;
        font-size: 1.05rem;
    }
    .nav__links .nav__wa svg { width: 22px; height: 22px; fill: currentColor; }
    .hud--tr, .hud--br { display: none; }
}

@media (max-width: 640px) {
    .galeria { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .servicios__grid { grid-template-columns: 1fr; }
    .servicio { min-height: 0; }
    .bento__item { padding: 20px; min-height: 130px; }
    .bento__item--grande { min-height: 274px; }
    .proceso { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .proceso li:nth-child(2)::after { display: none; }
    .hud--tl { top: calc(var(--nav-h) + 14px); }
    .hud--bl { display: none; }
    .hero__ctas .btn { flex: 1 1 100%; }
    .obra__info { padding: 30px 10px 10px; }
    .obra__nombre { font-size: .92rem; }
    .obra__iniciales { font-size: 2rem; }
    .obra--vacia .obra__iniciales { transform: translateY(-30%); }
    .obra__cat { font-size: .6rem; letter-spacing: .08em; }

    .wa-flotante { width: 54px; height: 54px; right: 16px; }
    .wa-flotante__tip { display: none; }
    .footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer__brand { flex-direction: column; gap: 8px; }
    .footer__redes { justify-content: center; }
    .footer__marca { margin-top: 28px; }
    .footer__legal { flex-direction: column; text-align: center; padding-bottom: calc(20px + 64px); }
    .btn { white-space: normal; text-align: center; }
}

/* Dispositivos táctiles: sin inclinación 3D ni halo de cursor */
@media (hover: none) {
    .cursor-glow { display: none; }
    .obra__info { transform: none; opacity: 1; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee__pista,
    .clientes__pista { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* =====================================================================
   Escena láser — "Innovación que puedes ver, programar y adaptar"
   Scrollytelling: la escena queda fija (sticky) mientras se baja; el scroll
   dibuja el camaleón (stroke-dashoffset en make.js). Solo se animan
   transform / opacity / stroke-dashoffset para mantener 60 fps.
   ===================================================================== */
.laser { position: relative; background: #030504; }
.laser__pista { height: 320vh; }                         /* largo del recorrido de scroll */
.laser__escena {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: grid; align-items: center; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(ellipse 60% 55% at 72% 50%, rgba(31, 199, 162, .09), transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(123, 224, 79, .05), transparent 70%);
}
/* Rejilla holográfica de líneas finas (tipo pantalla) */
.laser__escena::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.laser__grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 90px); align-items: center;
}

/* ---- Texto ---- */
.laser__titulo {
    margin-top: 18px;
    font-family: var(--f-titulo); font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em;
    color: var(--texto);
}
.laser__palabra { color: rgba(234, 242, 236, .18); transition: color .6s var(--ease), text-shadow .6s var(--ease); }
.laser__palabra.is-activa { color: #9ff7ff; text-shadow: 0 0 28px rgba(95, 243, 255, .45); }
.laser__palabra[data-laser-palabra="1"].is-activa { color: var(--verde-neon); text-shadow: 0 0 28px rgba(123, 224, 79, .5); }
.laser__palabra[data-laser-palabra="2"].is-activa {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: none; filter: drop-shadow(0 0 18px rgba(155, 92, 255, .35));
    padding-right: .1em; margin-right: -.1em;            /* que el degradado no corte la última letra */
}
.laser__pasos { display: grid; gap: 6px; margin-top: clamp(24px, 4vh, 42px); max-width: 460px; }
.laser__pasos li {
    display: flex; gap: 16px; align-items: flex-start; padding: 12px 16px; border-radius: 14px;
    border-left: 2px solid rgba(255, 255, 255, .08);
    opacity: .32; transform: translateX(0);
    transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s, background .5s;
}
.laser__pasos li.is-activo {
    opacity: 1; transform: translateX(8px); border-color: var(--verde-neon);
    background: linear-gradient(90deg, rgba(75, 170, 44, .1), transparent);
}
.laser__pasos .mono { color: var(--verde-neon); font-size: .78rem; padding-top: 4px; }
.laser__pasos strong { font-family: var(--f-titulo); font-size: 1.1rem; letter-spacing: -.01em; }
.laser__pasos p { margin-top: 2px; color: var(--texto-2); font-size: .94rem; }

/* ---- Visor del logo ---- */
.laser__visor { position: relative; width: min(100%, 540px); justify-self: center; perspective: 1100px; }
.laser__visor::before, .laser__visor::after {          /* esquinas tipo HUD */
    content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none;
    border: 1px solid rgba(95, 243, 255, .45);
}
.laser__visor::before { top: 34px; left: -6px; border-right: 0; border-bottom: 0; }
.laser__visor::after { bottom: 34px; right: -6px; border-left: 0; border-top: 0; }
.laser__hud {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: .68rem; letter-spacing: .18em; color: rgba(159, 247, 255, .55);
}
.laser__hud b { font-weight: 500; color: #9ff7ff; }
.laser__hud--arriba { margin-bottom: 14px; }
.laser__hud--abajo { margin-top: 14px; }
.laser__logo {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d; will-change: transform;
}
.laser__svg { display: block; width: 100%; height: auto; overflow: visible; }
.laser__trazo {
    fill: none; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
    transition: opacity .9s var(--ease), stroke-width .9s var(--ease);
}
.laser__trazo--verde { stroke: var(--verde-neon); }
.laser__trazo--raya { stroke: #5ff3ff; }
.laser__trazo--texto { stroke: #fff; }
.laser__original { opacity: 0; transition: opacity 1.1s var(--ease); }
.laser__punta { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px #9ff7ff) drop-shadow(0 0 10px var(--verde-neon)); transition: opacity .2s; }
.laser__punta.is-activa { opacity: 1; }
/* Al terminar: aparece el logo original y los trazos quedan como un halo */
.laser.is-completo .laser__original { opacity: 1; }
.laser.is-completo .laser__trazo { opacity: .45; stroke-width: 2.2; }

/* ---- Líneas de escaneo y partículas (solo corren cuando la sección está a la vista) ---- */
.laser__scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.laser__scan span {
    position: absolute; left: 0; right: 0; top: 0; height: 160px;
    background: linear-gradient(180deg, transparent, rgba(123, 224, 79, .07) 50%, transparent);
    border-bottom: 1px solid rgba(123, 224, 79, .12);
    animation: laser-scan 7s linear infinite paused;
}
.laser__scan span + span {
    background: linear-gradient(180deg, transparent, rgba(95, 243, 255, .06) 50%, transparent);
    border-bottom-color: rgba(95, 243, 255, .1);
    animation-duration: 11s; animation-delay: -4s;
}
@keyframes laser-scan { from { transform: translateY(-180px); } to { transform: translateY(105vh); } }
.laser__particulas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.laser__particulas i {
    position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%;
    background: #9ff7ff; box-shadow: 0 0 6px #5ff3ff; opacity: 0;
    animation: laser-particula var(--d, 9s) linear var(--r, 0s) infinite paused;
}
.laser__particulas i:nth-child(3n) { background: var(--verde-neon); box-shadow: 0 0 6px var(--verde-neon); }
@keyframes laser-particula {
    0% { opacity: 0; transform: translateY(0); }
    15%, 70% { opacity: .7; }
    100% { opacity: 0; transform: translateY(-120px); }
}
.laser.is-visible .laser__scan span,
.laser.is-visible .laser__particulas i { animation-play-state: running; }

/* ---- Celular y tableta ---- */
@media (max-width: 900px) {
    .laser__pista { height: 260vh; }
    .laser__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: left; }
    .laser__visor { order: -1; width: min(78vw, 330px); }
    .laser__hud { font-size: .6rem; }
    .laser__titulo { margin-top: 8px; font-size: clamp(1.7rem, 7.2vw, 2.3rem); }
    .laser__pasos { margin-top: 14px; min-height: 92px; }
    .laser__pasos li { display: none; }
    .laser__pasos li.is-activo { display: flex; transform: none; }
    .laser .etiqueta { display: none; }
}
@media (max-height: 640px) and (max-width: 900px) {
    .laser__visor { width: min(60vw, 240px); }
    .laser__hud { display: none; }
}

/* ---- Reducir movimiento: escena normal (sin fijar), logo completo y sin efectos ---- */
@media (prefers-reduced-motion: reduce) {
    .laser__pista { height: auto; }
    .laser__escena { position: relative; height: auto; padding: clamp(80px, 12vw, 140px) 0; }
    .laser__scan, .laser__particulas { display: none; }
    .laser__palabra, .laser__pasos li { transition: none; }
}
.laser--estatico .laser__pasos li { display: flex; opacity: 1; transform: none; }
