/* ============ TOKENS IOLISAI ============ */
:root {
  /* Paleta */
  --night: #0D0F14;       /* fondo oscuro: casi negro con un tinte frío mínimo */
  --surface-d: #171A21;   /* superficies sobre fondo oscuro */
  --pearl: #F4F1EA;       /* Pearl White */
  --coal: #13151B;        /* texto sobre fondo claro */
  --coral: #FF5A4E;       /* Electric Coral */
  --coral-ink: #C8352B;   /* coral para texto sobre claro (contraste AA) */
  --on-coral: #13151B;    /* texto sobre botón coral (contraste AA) */

  /* Tema claro (primera parte de la página) */
  --bg: var(--pearl);
  --ink: var(--coal);
  --muted: #62656E;
  --line: rgba(19, 21, 27, .12);
  --line-strong: rgba(19, 21, 27, .22);
  --surface: #FBFAF6;
  --accent-text: var(--coral-ink);
  --coral-soft: rgba(255, 90, 78, .12);
  --shadow: 0 18px 50px rgba(19, 21, 27, .12);

  /* Tipografía */
  --display: 'Space Grotesk', system-ui, sans-serif;  /* titulares */
  --sans: 'Inter', system-ui, sans-serif;             /* cuerpo y UI */
  --mono: 'JetBrains Mono', ui-monospace, monospace;  /* técnico */
  --heavy: 'Archivo', 'Arial Black', sans-serif;      /* wordmark IOLISAI */

  --r-sm: 8px;
  --r-md: 12px;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* Tema oscuro (desde el manifiesto hasta el final) */
body.dark {
  --bg: var(--night);
  --ink: var(--pearl);
  --muted: #9A9DA6;
  --line: rgba(244, 241, 234, .10);
  --line-strong: rgba(244, 241, 234, .22);
  --surface: var(--surface-d);
  --accent-text: var(--coral);
  --coral-soft: rgba(255, 90, 78, .15);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .9s var(--ease), color .9s var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; }
p { margin: 0; }
img { display: block; }
::selection { background: var(--coral); color: var(--on-coral); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
.accent { color: var(--accent-text); }

/* Insignia IA */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); background: var(--coral-soft);
  border: 1px solid rgba(255, 90, 78, .28); border-radius: 999px;
  padding: 4px 10px; line-height: 1.2;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ''; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 30%, color-mix(in srgb, var(--bg) 0%, transparent));
  opacity: .92;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--heavy); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.btn-orange { background: var(--coral); color: var(--on-coral); }
.btn-orange:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(255, 90, 78, .45); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); height: 44px; padding: 0 22px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: var(--coral); }

/* ---------- ESCENA PRINCIPAL ---------- */
.pin { position: relative; height: 1500vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.cards {
  position: absolute; inset: 0;
  perspective: 1000px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 0; transition: opacity .8s var(--ease);
}
body.ready .cards { opacity: 1; }
.card {
  position: absolute; left: 50%; top: 50%;
  width: 400px; height: 250px; margin: -125px 0 0 -200px;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-d);
  will-change: transform;
  backface-visibility: visible;
  box-shadow: var(--shadow);
  pointer-events: none;
}
/* Esfera: teselas curvas (franjas 3D) y orden real por profundidad */
.sslices { display: none; position: absolute; inset: 0; transform-style: preserve-3d; }
.ss {
  position: absolute; left: 0; top: 0; height: 250px;
  background-image: var(--simg); background-repeat: no-repeat; background-size: 400px 250px;
  backface-visibility: visible; opacity: var(--o, 1);
}
.cards.curve { transform-style: preserve-3d; }
.cards.curve .card { transform-style: preserve-3d; overflow: visible; background: transparent; opacity: 1 !important; }
.cards.curve .card > img, .cards.curve .card::after, .cards.curve .card .slices { display: none; }
.cards.curve .card .sslices { display: block; }

/* bola oscura del centro */
.core {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 50%, #2a2e38 0%, #171a21 58%, #0a0b0f 100%);
  box-shadow: inset -14px -18px 40px rgba(0, 0, 0, .65), inset 6px 8px 18px rgba(255, 255, 255, .05), 0 0 60px rgba(0, 0, 0, .6);
}

/* en la esfera: sin sombras difuminadas (muy caras con decenas de capas en movimiento) */
.cards.in-sphere .card { box-shadow: none; border-radius: 3px; }
.cards.in-sphere .card::after { display: none; }
.card > img { width: 100%; height: 100%; object-fit: cover; }
.cards.interactive .card.live { pointer-events: auto; cursor: pointer; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.cards.interactive .card.live:hover::after { box-shadow: inset 0 0 0 2px var(--coral); }

/* Franjas que curvan la imagen sobre la pared del túnel (3D real) */
.slices { display: none; position: absolute; inset: 0; transform-style: preserve-3d; }
.sl {
  position: absolute; left: 0; top: 0; height: 250px;
  background-image: var(--img); background-repeat: no-repeat; background-size: 400px 250px;
  backface-visibility: visible; opacity: var(--o, 1);
}
/* opacity/overflow aplanarían el 3D: en modo curvo la opacidad pasa a las franjas */
.cards.bent .card.has-sl { transform-style: preserve-3d; will-change: transform; overflow: visible; background: transparent; box-shadow: none; border-radius: 0; opacity: 1 !important; }
.cards.bent .card.has-sl > img, .cards.bent .card.has-sl::after { visibility: hidden; }
.cards.bent .card.has-sl .slices { display: block; }

/* Glitch entre la grilla y la esfera */
.glitch { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; mix-blend-mode: normal; }
.cards.glitching .card { filter: drop-shadow(3px 0 rgba(255, 40, 90, .55)) drop-shadow(-3px 0 rgba(0, 210, 255, .55)); }

.hero-tag {
  position: absolute; left: 0; right: 0; bottom: 11vh;
  text-align: center; pointer-events: none;
}
.hero-tag h1 { font-weight: 500; font-size: clamp(18px, 2vw, 26px); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 16px; }
.hero-tag .mono { color: var(--muted); font-size: 10px; }

.worlds {
  position: absolute; inset: 0; padding: 15vh var(--gutter) 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3.5vh;
  pointer-events: none; opacity: 0;
}
.worlds .w1, .worlds .w2 { font-size: clamp(36px, 4.6vw, 96px); line-height: 1; letter-spacing: -.04em; max-width: 100%; }
/* compensación óptica: los trazos descendentes (g, y) del título acortan el hueco a la vista */
.worlds .wsub { margin-top: calc(clamp(36px, 4.6vw, 96px) * .14); max-width: 300px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.worlds .w2 { color: var(--accent-text); }

.tunnel-text {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; font-family: var(--display); font-weight: 500;
  font-size: clamp(17px, 1.8vw, 25px); letter-spacing: -.01em; color: var(--ink);
  text-shadow: 0 0 12px var(--bg), 0 0 24px var(--bg), 0 0 4px var(--bg);
  pointer-events: none; opacity: 0;
}

.grid-info {
  position: absolute; left: var(--gutter); top: 14vh; width: 25vw; min-width: 260px;
  opacity: 0; pointer-events: none;
}
.grid-info.on { pointer-events: auto; }
.grid-info h2 { font-size: clamp(30px, 2.9vw, 44px); line-height: 1.05; margin: 14px 0 16px; letter-spacing: -.03em; }
.grid-info .lede { font-size: 13.5px; color: var(--muted); max-width: 330px; margin-bottom: 22px; }
.sel-list { list-style: none; margin: 0; padding: 0; }
.sel-list button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline;
  width: 100%; padding: 1px 0; line-height: 1.38;
  font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.05vw, 16px); color: var(--muted);
  transition: color .25s, transform .35s var(--ease);
}
.sel-list .n { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.sel-list .c { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); opacity: 0; transition: opacity .25s; }
.sel-list button.hot, .sel-list button:focus-visible { color: var(--ink); transform: translateX(4px); }
.sel-list button.hot .n { color: var(--accent-text); }
.sel-list button.hot .c { opacity: 1; }

/* ---------- MANIFIESTO ---------- */
.m-text {
  position: absolute; left: var(--gutter); top: 15vh; bottom: 12vh; width: 44vw; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; pointer-events: none;
}
.m-lead { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; letter-spacing: -.025em; max-width: 13.5em; }
.m-lead .w { color: color-mix(in srgb, var(--ink) 13%, transparent); transition: color .45s var(--ease); }
.m-lead .w.on { color: var(--ink); }
.m-lead .w.a.on { color: var(--accent-text); }
.m-foot { font-size: 14px; color: var(--muted); max-width: 300px; }


/* ---------- SECCIONES ---------- */
.section { padding: 14vh var(--gutter); position: relative; }
.mt { margin-top: 18vh; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 26px 30px;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.svc::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--coral), rgba(255, 90, 78, 0) 50%, rgba(244, 241, 234, .25));
  -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;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc .num { color: var(--accent-text); font-size: 11px; }
.svc h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; margin: 46px 0 14px; letter-spacing: -.03em; }
.svc p { color: var(--muted); max-width: 30em; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 22px; }
.step { padding: 26px 22px 30px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
/* Números del proceso: el trazo se dibuja al entrar en pantalla */
.big-num { display: block; height: clamp(56px, 5.4vw, 84px); width: auto; overflow: visible; margin-bottom: 22px; }
.big-num text {
  font-family: var(--display); font-weight: 500; font-size: 100px;
  fill: transparent; stroke: var(--muted); stroke-width: 1.4px; vector-effect: non-scaling-stroke;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1), stroke .3s, fill .6s;
}
.step.in .big-num text { stroke-dashoffset: 0; }
.step.in:nth-child(2) .big-num text { transition-delay: .15s, 0s, 0s; }
.step.in:nth-child(3) .big-num text { transition-delay: .3s, 0s, 0s; }
.step.in:nth-child(4) .big-num text { transition-delay: .45s, 0s, 0s; }
.step:hover .big-num text { stroke: var(--coral); fill: var(--coral-soft); }
.step h4 { font-weight: 500; font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

.reel { padding-top: 10vh; border-top: 1px solid var(--line); }
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 10vh 0 40px; }
.reel-head h2 { font-size: clamp(46px, 6.2vw, 98px); line-height: .95; letter-spacing: -.045em; }
.reel-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reel-list li { border-bottom: 1px solid var(--line); }
.reel-row {
  all: unset; box-sizing: border-box; cursor: pointer;
  /* el fondo del hover sobresale 12px por ambos lados de la línea */
  width: calc(100% + 24px);
  display: grid; grid-template-columns: 120px minmax(140px, 1.2fr) minmax(120px, .9fr) 2fr 24px; gap: 28px; align-items: center;
  padding: 14px 12px; margin: 0 -12px; border-radius: var(--r-sm); transition: background-color .3s;
}
.reel-row:hover, .reel-row:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.reel-row img { width: 120px; height: 72px; object-fit: cover; border-radius: var(--r-sm); transition: transform .5s var(--ease); }
.reel-row:hover img { transform: scale(1.04); }
.reel-row .t { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.8vw, 27px); letter-spacing: -.02em; }
.reel-row .c { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.reel-row .d { color: var(--muted); font-size: 14.5px; }
.reel-row .arr { color: var(--accent-text); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.reel-row:hover .arr, .reel-row:focus-visible .arr { opacity: 1; transform: none; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 18vh; padding-bottom: 18vh; }
.contact h2 { font-size: clamp(42px, 4.8vw, 74px); line-height: 1; letter-spacing: -.04em; margin: 16px 0 26px; }
.contact .lede { color: var(--muted); max-width: 320px; font-size: 15px; }
.ct-form {
  display: flex; flex-direction: column; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .mono, .chips legend { font-size: 10px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ink); font: inherit; font-size: 16px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input { height: 46px; }
.field input:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--coral); }
.chips input:checked + span { background: var(--coral-soft); color: var(--accent-text); border-color: var(--coral); }
.chips input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form { position: relative; }
.send[disabled] { opacity: .6; pointer-events: none; }
.form-note.err { color: var(--coral); }
.send { align-self: flex-start; height: 44px; padding: 0 26px; }
.form-note { font-family: var(--display); font-weight: 500; font-size: 18px; min-height: 1.4em; color: var(--accent-text); }

/* ---------- FOOTER ---------- */
.footer { padding: 4vh var(--gutter) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark {
  font-family: var(--heavy); font-weight: 900; font-size: 21.5vw; line-height: .8; letter-spacing: -.05em;
  text-align: center; margin: 6vh 0 0;
  background: linear-gradient(180deg, var(--ink) 25%, color-mix(in srgb, var(--ink) 6%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(var(--wm, 30%)); transition: transform 1.2s var(--ease);
  pointer-events: none;   /* es decorativo: no debe tapar los enlaces de abajo */
}
.wordmark.in { --wm: 0%; }
.foot-row { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; color: var(--muted); }
.foot-row nav { display: flex; gap: 22px; }
.foot-row a:hover { color: var(--accent-text); }

/* ---------- MODAL (siempre oscuro) ---------- */
.modal {
  --ink: var(--pearl); --muted: #9A9DA6; --line: rgba(244, 241, 234, .10); --line-strong: rgba(244, 241, 234, .22);
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 9, 12, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 80px var(--gutter);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.m-close { position: absolute; top: 16px; right: var(--gutter); width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--surface-d); border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .2s; }
.m-close:hover, .m-close:focus-visible { border-color: var(--coral); outline: none; }
.m-body {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; width: 100%; max-width: 1240px;
  background: var(--surface-d); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 36px 20px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.m-img { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--night); transform: scale(.96); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.modal.open .m-img { transform: none; opacity: 1; }
.m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-info > * { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.modal.open .m-info > * { opacity: 1; transform: none; }
.modal.open .m-info > *:nth-child(2) { transition-delay: .05s; }
.modal.open .m-info > *:nth-child(3) { transition-delay: .1s; }
.modal.open .m-info > *:nth-child(n+4) { transition-delay: .15s; }
.m-cat { color: var(--coral); font-size: 10px; }
.m-info h3 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 14px 0 16px; }
.m-desc { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: var(--muted); max-width: 24em; margin-bottom: 28px; }
.m-label { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; }
.tags span { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 6px 10px; font-size: 13px; }
.m-nav { display: flex; gap: 8px; }

/* ---------- TÍTULOS QUE ENTRAN POR LÍNEAS ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.si { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); will-change: transform; }
[data-split].in .si { transform: none; }


/* Expansión tarjeta → modal */
.flip-clone {
  position: fixed; z-index: 150; pointer-events: none;
  transform-origin: 0 0; border-radius: var(--r-sm); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); will-change: transform;
}
.flip-clone img { width: 100%; height: 100%; object-fit: cover; }
.modal.flip .m-img { opacity: 0 !important; transform: none !important; transition: none !important; }

/* ---------- VISTA PREVIA DEL ARCHIVO ---------- */
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 320px; height: 200px; margin: -100px 0 0 -160px;
  will-change: transform;
}
.pv-inner {
  position: absolute; inset: 0; border-radius: var(--r-sm); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.preview.on .pv-inner { opacity: 1; transform: none; }
.pv-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.pv-inner img.on { opacity: 1; transform: none; }

/* ---------- CURSOR CONTEXTUAL ---------- */
.cursor, .cursor-dot { display: none; }
html.has-cursor .cursor, html.has-cursor .cursor-dot { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="radio"]), html.has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; will-change: transform; }
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 201; pointer-events: none;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--coral);
  will-change: transform; transition: opacity .2s;
}
.c-ring {
  position: absolute; width: 88px; height: 88px; left: -44px; top: -44px; border-radius: 50%;
  border: 1.5px solid var(--coral); display: grid; place-items: center;
  transform: scale(.4); transition: transform .45s var(--ease), background-color .3s, border-color .3s, opacity .25s;
}
.c-ring span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--on-coral); opacity: 0; transition: opacity .2s; }
.cursor.is-link .c-ring { transform: scale(.62); background: var(--coral-soft); }
.cursor.is-view .c-ring { transform: scale(1); background: var(--coral); border-color: var(--coral); }
.cursor.is-view .c-ring span { opacity: 1; transition-delay: .1s; }
.cursor.is-view + .cursor-dot, .cursor.is-text + .cursor-dot, .cursor.is-out + .cursor-dot { opacity: 0; }
.cursor.is-text .c-ring, .cursor.is-out .c-ring, .cursor.is-dot .c-ring { opacity: 0; }
.cursor.is-down .c-ring { transform: scale(.32); }
.cursor.is-view.is-down .c-ring { transform: scale(.9); }

/* ---------- REVEAL ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: .08s; }
.rv:nth-child(3) { transition-delay: .16s; }
.rv:nth-child(4) { transition-delay: .24s; }
.svc.rv.in:hover { transform: translateY(-4px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-orange { height: 38px; font-size: 13px; padding: 0 14px; }
  .grid-info { top: 11vh; right: var(--gutter); width: auto; min-width: 0; }
  .grid-info .lede, .grid-info .sel-list { display: none; }
  .m-text { top: 12vh; bottom: auto; right: var(--gutter); width: auto; gap: 16px; justify-content: flex-start; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .reel-row { grid-template-columns: 88px 1fr 20px; gap: 16px; }
  .reel-row img { width: 88px; height: 56px; }
  .reel-row .c, .reel-row .d { display: none; }
  .reel-row .arr { opacity: 1; transform: none; }
  .reel-head { flex-direction: column; align-items: flex-start; }
  .contact { grid-template-columns: 1fr; }
  .ct-form { padding: 20px; }
  .row2 { grid-template-columns: 1fr; }
  .m-body { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 24px; max-height: calc(100vh - 100px); overflow: auto; }
  .worlds { padding-top: 12vh; }
  .worlds .w1, .worlds .w2 { font-size: clamp(34px, 10vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .si { transform: none; transition: none; }
  .big-num text { stroke-dashoffset: 0; transition: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .wordmark { --wm: 0%; transition: none; }
  .btn-orange:hover, .svc:hover { transform: none; }
}
