/* ==========================================================================
   SILO — v2
   Tres colores: tinta, hueso y el rojo del «0» del logo.
   Dos familias: Newsreader (display) y Geist (texto + etiquetas mono).
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --bone: #f2efe8;
  --bone-2: #e8e4da;
  --red: #d8402a;

  --line-l: rgba(10, 10, 10, 0.16);
  --line-d: rgba(242, 239, 232, 0.16);
  --mute-l: rgba(10, 10, 10, 0.62);
  --mute-d: rgba(242, 239, 232, 0.62);

  --line: var(--line-l);
  --mute: var(--mute-l);
  --fg: var(--ink);
  --bg: var(--bone);

  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 3.4vw, 52px);
  --max: 1560px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variant-numeric: lining-nums;
}
h3 { letter-spacing: -0.015em; line-height: 1.12; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
section[id] { scroll-margin-top: 84px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--bone); color: var(--ink); }
.skip:focus { top: 12px; }

.dark {
  --line: var(--line-d);
  --mute: var(--mute-d);
  --fg: var(--bone);
  --bg: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- tipografía ---------- */
.d1, .d2 { letter-spacing: -0.035em; text-wrap: balance; }
.d1 { font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: 0.94; }
.d2 { font-size: clamp(2.3rem, 4.9vw, 4.9rem); line-height: 1; max-width: 15em; }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.5; color: var(--mute); max-width: 46ch; }
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.dot { color: var(--red); }

/* el «0» del logo, como marca gráfica */
.zero {
  display: inline-block;
  width: 0.62em;
  height: 1.05em;
  margin-right: 0.8em;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  vertical-align: -0.2em;
  flex: none;
}
.js:not(.rm) .zero.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 64, 42, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(216, 64, 42, 0); }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* flecha dibujada: el carácter ↗ sale como emoji en los celulares */
.arrow { flex: none; width: 0.7em; height: 0.7em; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .nav-cta:hover .arrow { transform: translate(2px, -2px); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--red); border-color: var(--red); color: var(--bone); }
.btn-link {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-link:hover { border-color: var(--red); color: var(--red); }

/* ---------- retícula visible ---------- */
.lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lines::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  transform: translateX(-50%);
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: 25% 0, 50% 0, 75% 0;
}

/* ---------- animaciones de entrada (sólo con JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0 0.2em;
  margin: -0.12em 0 -0.2em;
}
.js [data-split] .w > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms));
}
.js [data-split].in .w > i { transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  height: 54px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  background: #000;
  color: var(--bone);
  border: 1px solid rgba(242, 239, 232, 0.18);
  --mute: var(--mute-d);
  transition: transform 0.5s var(--ease);
}
.nav.hide { transform: translate(-50%, -80px); }
.nav-logo { display: flex; align-items: center; padding: 0 18px 0 10px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); padding-left: clamp(8px, 2vw, 28px); border-left: 1px solid rgba(242, 239, 232, 0.18); }
.nav-links a { position: relative; font-size: 0.875rem; color: var(--mute-d); transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-status { display: flex; align-items: center; margin-left: auto; padding: 0 22px; white-space: nowrap; }
.nav-status .zero { margin-right: 0.9em; }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
  padding: 0 22px;
  background: var(--bone); color: var(--ink);
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--red); color: var(--bone); }
.nav-burger {
  display: none;
  margin-left: auto;
  padding: 0 20px;
  background: var(--bone); color: var(--ink);
  border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
}

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
  background: var(--ink); color: var(--bone);
  --mute: var(--mute-d);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-d);
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.03em; line-height: 1.1;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 104px;
  padding-bottom: clamp(26px, 3.4vw, 48px);
}
.hero-meta { display: flex; justify-content: space-between; gap: 24px; }
.hero-meta p:last-child { text-align: right; }
.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  padding-top: clamp(28px, 3.6vw, 56px);
}
.hero-copy { grid-column: 1 / span 5; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 6.1rem); white-space: nowrap; }
.hero-copy .lead { margin-top: clamp(22px, 2.4vw, 36px); max-width: 40ch; color: var(--ink); }
.hero-sub { margin-top: 14px; max-width: 46ch; font-size: clamp(0.94rem, 1.05vw, 1.02rem); line-height: 1.55; color: var(--mute); }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }

/* ---- el computador: marco dibujado, pantalla con capturas reales ---- */
.device { grid-column: 6 / -1; margin-right: calc(-0.5 * var(--gutter)); }
.laptop { position: relative; padding: 0 6%; }
.laptop-lid {
  position: relative;
  padding: 2.1% 2.1% 2.5%;
  background: #0b0b0c;
  border-radius: clamp(10px, 1.3vw, 20px) clamp(10px, 1.3vw, 20px) 0 0;
  box-shadow: inset 0 0 0 1px #2e2e31;
}
.laptop-lid::before {
  content: "";
  position: absolute; top: 0.85%; left: 50%;
  width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%;
  background: #24262b;
}
.laptop-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.laptop-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.laptop-screen img.on { opacity: 1; z-index: 1; }
.laptop-screen img.prev { opacity: 1; }
.laptop-base {
  position: relative;
  height: clamp(9px, 1.15vw, 17px);
  margin: 0 -6.82%;
  border-top: 1px solid #8c8983;
  border-radius: 0 0 clamp(8px, 1vw, 15px) clamp(8px, 1vw, 15px);
  background: linear-gradient(180deg, #e3e0d9 0%, #cbc8c1 42%, #9a9791 100%);
}
.laptop-base::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 13%; height: 42%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #a5a29c, #c2bfb8);
}
.laptop-base::after {
  content: "";
  position: absolute; left: 3%; right: 3%; top: 100%;
  height: clamp(18px, 3.2vw, 48px);
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(10, 10, 10, 0.24), rgba(10, 10, 10, 0) 70%);
}
/* ---- el celular: mismo lenguaje que el portátil ---- */
.device-stage { position: relative; }
.phone {
  display: flow-root;
  position: relative;
  padding: 0;
  border: 0;
  background: #0b0b0c;
  border-radius: 13.5% / 7.4%;
  box-shadow: inset 0 0 0 1px #2e2e31, 0 28px 38px -24px rgba(10, 10, 10, 0.5);
}
.phone-screen {
  display: block;
  position: relative;
  margin: 4.4%;
  aspect-ratio: 589 / 1120;
  overflow: hidden;
  border-radius: 10.4% / 5.5%;
  background: #fff;
}
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-phone { position: absolute; z-index: 2; right: 0; bottom: -7%; width: 17%; cursor: pointer; }
.hero-phone img { opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-phone img.on { opacity: 1; z-index: 1; }
.hero-phone img.prev { opacity: 1; }
.device-now { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.device-now b { font-weight: 500; color: var(--ink); margin-right: 0.6em; }
.device-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: clamp(26px, 3.4vw, 52px); padding-left: 6%; }
.device-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.device-tabs::-webkit-scrollbar { display: none; }
.device-tabs button {
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.device-tabs button + button { border-left: 0; }
.device-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.device-tabs button:hover { background: var(--red); border-color: var(--red); color: var(--bone); }

.hero-strip { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-strip .wrap > div { display: flex; align-items: baseline; gap: 14px; padding: 18px 18px 20px; }
.hero-strip .wrap > div:first-child { padding-left: 0; }
.hero-strip strong { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums; white-space: nowrap; }
.hero-strip span { font-size: 0.8125rem; line-height: 1.35; color: var(--mute); }
.hero-scroll { justify-content: flex-end; align-items: center !important; padding-right: 0 !important; }
.scroll-line { position: relative; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--red); }
.js:not(.rm) .scroll-line::after { transform: translateX(-100%); animation: scan 2.4s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ==========================================================================
   CIFRAS
   ========================================================================== */
.figures dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures dl > div { padding: clamp(22px, 2.4vw, 36px) 20px clamp(28px, 3vw, 46px); border-left: 1px solid var(--line); }
.figures dl > div:first-child { padding-left: 0; border-left: 0; }
.figures dd {
  margin-top: clamp(16px, 1.8vw, 28px);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.1vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.figures dd small { font-size: 0.34em; letter-spacing: -0.01em; color: var(--mute); }
.figures .cur { font-size: 0.46em; vertical-align: 0.62em; margin-right: 0.06em; letter-spacing: 0; color: var(--mute); }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.sec { position: relative; padding: clamp(84px, 11vw, 176px) 0; }
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  margin-bottom: clamp(48px, 6.5vw, 104px);
}
.sec-head > .idx { grid-column: 1 / span 3; padding-top: 0.7em; }
.sec-head > :not(.idx) { grid-column: 4 / span 9; }
.sec-head .lead { margin-top: clamp(20px, 2.2vw, 34px); }
.idx { display: flex; align-items: center; color: var(--fg); }

/* ---------- 01 problema ---------- */
.problem-text, .sec-text {
  margin-top: clamp(22px, 2.4vw, 38px);
  max-width: 50ch;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--mute);
}
.problem-text b, .sec-text b { font-weight: inherit; color: var(--ink); }
.problem-close {
  margin-top: clamp(18px, 2vw, 30px);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.flow { position: relative; }
.flow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flow path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.flow-ghost { stroke-width: 1; opacity: 0.1; }
.flow-tangle { stroke-width: 1.3; }
.flow-line { stroke-width: 1.3; }
.flow-noise li {
  position: absolute;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--bone);
  color: var(--ink);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.flow-nodes li {
  position: absolute;
  display: flex; flex-direction: column; align-items: flex-start;
  transform: translate(-5px, -9px);
  opacity: 0.22;
  transition: opacity 0.5s var(--ease);
}
.flow-nodes li.on { opacity: 1; }
.flow-nodes .zero { width: 11px; height: 18px; margin: 0 0 16px; background: var(--bone); transition: background 0.4s var(--ease); }
.flow-nodes li.on .zero { background: var(--red); }
.flow-nodes strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.7rem); line-height: 1.1; letter-spacing: -0.02em; }
.flow-nodes em { font-style: normal; margin-top: 6px; }
html:not(.js) .flow svg, html:not(.js) .flow-noise { display: none; }
html:not(.js) .flow-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
html:not(.js) .flow-nodes li { position: static; transform: none; opacity: 1; }
.flow.vertical .flow-nodes li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; transform: translate(-5px, -50%); }
.flow.vertical .flow-nodes .zero { grid-row: 1 / span 2; margin: 0; }
.flow.vertical .flow-nodes em { grid-column: 2; margin-top: 3px; }
.flow-cap { margin: 22px 0 0; }

/* ---------- soluciones ---------- */
.index { border-top: 1px solid var(--ink); }
.row { border-bottom: 1px solid var(--line); }
.row-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
  width: 100%;
  padding: clamp(18px, 2vw, 28px) 0;
  border: 0; background: none;
  text-align: left; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), padding 0.35s var(--ease);
}
.row-n { grid-column: 1 / span 1; color: inherit; opacity: 0.6; }
.row-t { grid-column: 2 / span 5; font-family: var(--serif); font-size: clamp(1.5rem, 2.7vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.row-t sup { margin-left: 10px; padding: 3px 7px; border: 1px solid var(--red); color: var(--red); vertical-align: 0.9em; letter-spacing: 0.08em; }
.row-s { grid-column: 7 / span 5; font-size: 0.98rem; line-height: 1.45; color: var(--mute); transition: color 0.35s var(--ease); }
.row-x { grid-column: 12 / span 1; justify-self: end; align-self: center; position: relative; width: 18px; height: 18px; }
.row-x::before, .row-x::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease); }
.row-x::after { transform: rotate(90deg); }
.row.open .row-x::after { transform: rotate(0deg); }
.row-head:hover, .row.open .row-head {
  padding-left: clamp(12px, 1.6vw, 24px);
  padding-right: clamp(12px, 1.6vw, 24px);
  background: var(--ink); color: var(--bone);
}
.row-head:hover .row-s, .row.open .row-s { color: var(--mute-d); }
/* cierre de la lista: lo que no está, se diseña */
.row-more { border-bottom: 1px solid var(--line); }
.row-more .arrow { grid-column: 12 / span 1; justify-self: end; align-self: center; width: 16px; height: 16px; }
.row-more:hover .arrow { transform: translate(2px, -2px); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); background: var(--ink); color: var(--bone); }
.row.open .row-body { grid-template-rows: 1fr; }
.row-body > div { overflow: hidden; }
.row-body ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  margin-left: calc(100% / 12);
  padding: 6px clamp(12px, 1.6vw, 24px) clamp(26px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
}
.row-body li { padding: 13px 0; border-top: 1px solid var(--line-d); font-size: 0.92rem; line-height: 1.4; color: rgba(242, 239, 232, 0.86); }
/* filas con captura real: lista a la izquierda, pantalla a la derecha */
.row-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: 6px clamp(12px, 1.6vw, 24px) clamp(26px, 3vw, 44px);
}
.row-body .row-in ul { grid-column: 2 / span 4; display: block; margin: 0; padding: 0; }
.row-shot { grid-column: 7 / span 6; margin-top: 6px; border: 1px solid var(--line-d); background: #fff; }
.row-shot img { width: 100%; }
/* fila ancha: varias capturas (una a la vez, con sus pasos al lado) y la lista debajo */
.row-shots { grid-column: 2 / span 11; display: grid; grid-template-columns: 8fr 3fr; column-gap: 24px; align-items: start; margin-top: 6px; }
.shots-frame { position: relative; aspect-ratio: 1600 / 750; overflow: hidden; border: 1px solid var(--line-d); background: #fff; }
.shots-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.shots-frame img.on { opacity: 1; z-index: 1; }
.shots-frame img.prev { opacity: 1; }
.shots-steps { border-bottom: 1px solid var(--line-d); }
.shots-steps button {
  display: grid; grid-template-columns: 34px 1fr; align-items: baseline;
  width: 100%; padding: 13px 0;
  border: 0; border-top: 1px solid var(--line-d);
  background: none; color: var(--mute-d);
  text-align: left; cursor: pointer;
  transition: color 0.3s var(--ease);
}
.shots-steps .label { color: inherit; }
.shots-steps b { font-weight: 400; font-size: 0.98rem; line-height: 1.3; }
.shots-steps small { grid-column: 2; display: none; margin-top: 6px; font-size: 0.86rem; line-height: 1.45; color: var(--mute-d); }
.shots-steps button:hover, .shots-steps button[aria-pressed="true"] { color: var(--bone); }
.shots-steps button[aria-pressed="true"] .label { color: var(--red); }
.shots-steps button[aria-pressed="true"] small { display: block; }
.row-body .row-in.wide ul { grid-column: 2 / span 11; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; margin: clamp(26px, 3vw, 44px) 0 0; padding: 0; }
.row-list { grid-column: 2 / span 11; display: grid; grid-template-columns: 1fr 2fr; column-gap: 24px; margin-top: clamp(26px, 3vw, 44px); }
.row-list .label { padding-bottom: 12px; color: var(--mute-d); }
.row-body .row-in.wide .row-list ul { grid-template-columns: 1fr; margin: 0; }
.row-body .row-in.wide .row-list > div + div ul { grid-template-columns: 1fr 1fr; }

/* ---------- inteligencia artificial ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.ai-copy { grid-column: 1 / span 6; }
.ai-copy .d2 { margin-top: 30px; font-size: clamp(2.2rem, 4.1vw, 4.2rem); }
.ai-copy .lead { margin-top: 26px; }
.ai-list { margin-top: clamp(36px, 4.4vw, 64px); border-bottom: 1px solid var(--line); }
.ai-list li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: clamp(16px, 1.7vw, 24px) 0; border-top: 1px solid var(--line); }
.ai-list h3 { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
.ai-list p { margin-top: 6px; font-size: 0.96rem; color: var(--mute); }
.ai-shot { grid-column: 8 / span 5; position: sticky; top: 110px; }
.ai-shot img { width: 100%; max-width: 496px; border: 1px solid var(--line); }
.ai-shot figcaption { margin-top: 14px; }

/* ---------- dispositivos móviles ---------- */
.field { background: var(--bone-2); }
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.phones li:nth-child(even) { margin-top: clamp(28px, 4.4vw, 72px); }
.phones .phone { margin-bottom: 24px; }
.phones .label { margin-bottom: 10px; }
.phones h3 { font-size: clamp(1.2rem, 1.55vw, 1.5rem); margin-bottom: 8px; }
.phones li > p:last-child { color: var(--mute); font-size: 0.92rem; }

/* ---------- método ---------- */
.method-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(56px, 7vw, 104px); }
.method-photo { grid-column: 1 / span 7; }
.method-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.method-photo figcaption { margin-top: 12px; }
.x20 { grid-column: 9 / span 4; }
.x20-num { font-family: var(--serif); font-size: clamp(7rem, 17vw, 17rem); line-height: 0.74; letter-spacing: -0.07em; margin: 0 0 0.16em -0.04em; font-variant-numeric: lining-nums; }
.x20 p:last-child { color: var(--mute); max-width: 34ch; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 20px 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps .label { display: block; margin-bottom: 40px; }
.steps h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 10px; }
.steps p { color: var(--mute); font-size: 0.96rem; }

.included { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 104px); border: 1px solid var(--ink); }
.included > .label { grid-column: 1 / span 3; padding: 20px; color: var(--ink); }
.included ul { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(4, 1fr); }
.included li { padding: 20px; border-left: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- infraestructura ---------- */
.infra { background: var(--bone-2); }
.infra-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.infra-head { grid-column: 1 / span 5; position: sticky; top: 110px; }
.infra-head .d2 { margin-top: 30px; font-size: clamp(2.2rem, 4.1vw, 4.2rem); }
.infra-head .lead { margin-top: 26px; }
.specs { grid-column: 7 / span 6; border-bottom: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 150px 1fr; column-gap: 24px; align-items: baseline; padding: clamp(16px, 1.7vw, 24px) 0; border-top: 1px solid var(--line); }
.specs dd { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.22; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }

/* ---------- contacto ---------- */
.contact-media { position: absolute; top: 0; left: 0; right: 0; height: clamp(380px, 44vw, 640px); overflow: hidden; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.contact-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.66) 44%, rgba(10, 10, 10, 0.12) 100%),
    linear-gradient(0deg, var(--ink) 16%, rgba(10, 10, 10, 0) 64%);
}
.contact .d1 { margin-top: 30px; max-width: 10.5em; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(56px, 7vw, 112px); padding-top: 30px; border-top: 1px solid var(--line); }
.contact-info { grid-column: 1 / span 5; }
.contact-mail { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-mail a { font-family: var(--serif); font-size: clamp(1.7rem, 2.7vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.contact-info a { transition: color 0.25s; }
.contact-info a:hover { color: var(--red); }

.form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; align-content: start; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%;
  padding: 8px 0 12px;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.015em;
  transition: border-color 0.3s var(--ease);
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--fg); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--red); border-bottom-color: var(--red); }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.form-note { color: var(--fg); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line-d); }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: 44px; padding-bottom: clamp(40px, 6vw, 88px); }
.footer-logo { grid-column: 1 / span 3; }
.footer-logo img { height: 34px; width: auto; }
.footer nav { grid-column: 4 / span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 0.9rem; }
.footer nav a { color: var(--mute-d); transition: color 0.25s; }
.footer nav a:hover { color: var(--bone); }
.footer-top > .label:nth-of-type(1) { grid-column: 7 / span 3; }
.footer-top > .label:nth-of-type(2) { grid-column: 10 / span 3; text-align: right; }
.footer-word {
  margin: 0 0 -0.2em;
  padding: 0 var(--gutter);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 8.9vw, 10.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
  color: rgba(242, 239, 232, 0.1);
  user-select: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-status { display: none; }
  .nav-links { margin-right: auto; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }

  .lines { display: none; }

  .hero-main { display: block; }
  .device { margin: 48px 0 0; }
  .laptop { padding: 0 5.5%; }
  .laptop-base { margin: 0 -6.18%; }
  .device-cap { padding-left: 0; }
  .hero-phone { width: 21%; bottom: -9%; }
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 250px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-left: var(--gutter);
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones li { scroll-snap-align: start; }
  .phones li:nth-child(even) { margin-top: 0; }
  .hero-strip .wrap { grid-template-columns: 1fr 1fr; }
  .hero-strip .wrap > div { flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
  .hero-strip .wrap > div:nth-child(odd) { padding-left: 0; }
  .hero-strip .wrap > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-scroll { flex-direction: row !important; align-items: center !important; justify-content: flex-start; gap: 14px !important; }

  .sec-head { display: block; }
  .sec-head > .idx { padding: 0; margin-bottom: 26px; }

  .figures dl { grid-template-columns: 1fr 1fr; }
  .figures dl > div { padding: 20px 16px 26px 0; border-left: 0; }
  .figures dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 20px 0 26px; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps .label { margin-bottom: 14px; }

  .row-head { grid-template-columns: 40px 1fr 24px; row-gap: 8px; column-gap: 12px; }
  .row-n { grid-column: 1; }
  .row-t { grid-column: 2; }
  .row-x { grid-column: 3; grid-row: 1; }
  .row-more .arrow { grid-column: 3; grid-row: 1; }
  .row-s { grid-column: 2 / span 2; }
  .row-body ul { grid-template-columns: 1fr 1fr; margin-left: 52px; padding-left: 0; }
  .row-in { display: block; padding-left: 52px; }
  .row-body .row-in ul { margin: 0; }
  .row-shot, .row-shots { margin-top: 22px; }
  .row-shots, .row-list { display: block; }
  .shots-steps { margin-top: 14px; }
  .row-list > div + div { margin-top: 30px; }
  .row-body .row-in.wide ul, .row-body .row-in.wide .row-list > div + div ul { grid-template-columns: 1fr; }

  .method-grid { display: block; }
  .x20 { margin-top: 48px; }
  .included { display: block; }
  .included > .label { border-bottom: 1px solid var(--ink); }
  .included ul { grid-template-columns: 1fr 1fr; }
  .included li:nth-child(odd) { border-left: 0; }
  .included li:nth-child(n + 3) { border-top: 1px solid var(--ink); }

  .infra-grid { display: block; }
  .ai-grid { display: block; }
  .ai-shot { position: static; margin-top: 48px; }
  .infra-head { position: static; margin-bottom: 48px; }

  .contact .d1 { max-width: none; }
  .contact-grid { display: block; }
  .form { margin-top: 56px; }

  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-logo, .footer nav, .footer-top > .label:nth-of-type(1), .footer-top > .label:nth-of-type(2) { grid-column: auto; text-align: left; }
}

@media (max-width: 600px) {
  .row-body ul { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; row-gap: 6px; }
  .form { grid-template-columns: 1fr; }
}

/* Movimiento reducido (.rm): se conservan fundidos y efectos ligados al scroll;
   se quitan zoom, parallax, desplazamientos y animaciones en bucle. */
.rm { scroll-behavior: auto; }
.rm .reveal { transform: none; }
.rm [data-split] .w > i { transform: none; opacity: 0; transition: opacity 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 30ms); }
.rm [data-split].in .w > i { opacity: 1; }
