/* =========================================================
   i2 Ingeniería — estilos
   Sistema basado en referencia/DESIGN.md (Hyer): tinta casi negra,
   lienzo blanco, bandas oscuras, píldoras y tipografía enorme y apretada.
   Acento único: el naranja del "2" del logo.
   ========================================================= */

:root {
  --ink: #000d10;
  --white: #ffffff;
  --ash: #8e8e95;
  --muted: #5e6068;          /* gris de texto secundario con contraste suficiente sobre blanco */
  --pebble: #d5d3d4;
  --hull: #0f0f1c;
  --deck: #151623;
  --orange: #fb7424;
  --orange-deep: #e5611a;

  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-glass: cubic-bezier(.34, 1.4, .64, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-panel: clamp(28px, 4vw, 45px);
  --radius-card: 28px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.61;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- Bloques apilados con esquinas redondeadas ---------- */
.panel {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: calc(var(--radius-panel) * -1);
  padding: clamp(96px, 12vw, 150px) 0 clamp(110px, 13vw, 170px);
}
.panel:first-child { margin-top: 0; border-radius: 0; }
.dark { background: var(--hull); color: var(--white); }

/* =========================================================
   CRISTAL LÍQUIDO
   capa base translúcida + desenfoque y saturación del fondo
   + brillo especular que sigue al puntero (::before)
   + borde refractado con degradado (::after)
   ========================================================= */
.glass {
  --mx: 30%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.12) 55%, rgba(255,255,255,.22));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 1px rgba(255,255,255,.18),
    inset 0 0 18px rgba(255,255,255,.12),
    0 8px 32px rgba(0,13,16,.10);
}
.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
.glass::before {
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), rgba(255,255,255,0) 45%);
  opacity: .55;
  transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }
.glass::after {
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.08) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass--dark {
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 55%, rgba(255,255,255,.07));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 1px rgba(255,255,255,.05),
    0 20px 50px rgba(0,0,0,.35);
}
.glass--dark::before { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.18), rgba(255,255,255,0) 45%); }
.glass--dark::after { background: linear-gradient(140deg, rgba(255,255,255,.45), rgba(255,255,255,.04) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.22)); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255,255,255,.88); }
  .glass--dark { background: rgba(30,32,48,.92); }
}

/* Manchas de color difuminadas: dan algo que refractar al cristal */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob--orange { background: radial-gradient(circle, rgba(251,116,36,.75), rgba(251,116,36,0) 70%); }
.blob--blue { background: radial-gradient(circle, rgba(120,160,200,.8), rgba(120,160,200,0) 70%); }

/* ---------- Botones píldora ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 24px 16px;
  border-radius: 1000px;
  border: 1px solid transparent;
  font-size: 17px; font-weight: 700; line-height: 1;
  transition: transform .5s var(--ease-glass), background .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { box-shadow: 0 10px 30px rgba(0,13,16,.25); }
.btn--ghost { border-color: rgba(0,13,16,.25); color: var(--ink); background: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-deep); box-shadow: 0 12px 30px rgba(251,116,36,.35); }
.btn--sm { padding: 11px 18px 12px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow.glass { padding: 9px 16px; border-radius: 1000px; }
.eyebrow--plain { color: var(--orange); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(251,116,36,.2); animation: pulso 2.4s ease-in-out infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 0 9px rgba(251,116,36,0); } }

.title {
  font-size: clamp(40px, 6.2vw, 84px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 14ch;
}
.title--xl { font-size: clamp(64px, 13vw, 187px); letter-spacing: -.045em; line-height: .85; }
.title em, .hero__title em { font-style: normal; color: var(--orange); }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%;
  width: min(calc(100% - 32px), 980px);
  height: var(--nav-h);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 0 10px 0 22px;
  border-radius: 1000px;
  transition: background .5s, box-shadow .5s, color .5s, top .5s var(--ease-out);
}
.nav__logo { position: relative; display: block; width: 132px; flex: none; }
.nav__logo-img { width: 100%; transition: opacity .4s; }
.nav__logo-img--light { position: absolute; inset: 0; opacity: 0; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a {
  padding: 9px 16px; border-radius: 1000px; font-size: 17px;
  transition: background .3s;
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(0,13,16,.07); }
.nav__call { flex: none; }
.nav__burger { display: none; }

/* sobre bloques oscuros el cristal se tiñe y el texto pasa a blanco */
.nav[data-on="dark"] { color: var(--white); background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 40px rgba(0,0,0,.3); }
.nav[data-on="dark"]::after { background: linear-gradient(140deg, rgba(255,255,255,.5), rgba(255,255,255,.04) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.25)); }
.nav[data-on="dark"] .nav__logo-img--dark { opacity: 0; }
.nav[data-on="dark"] .nav__logo-img--light { opacity: 1; }
.nav[data-on="dark"] .nav__links a:hover, .nav[data-on="dark"] .nav__links a.is-active { background: rgba(255,255,255,.12); }
.nav[data-on="dark"] .nav__call { background: var(--white); color: var(--ink); }
.nav.is-hidden { top: -90px; }

.menu-movil {
  position: fixed; z-index: 49; top: 88px; left: 16px; right: 16px;
  padding: 18px; border-radius: 28px;
  display: flex; flex-direction: column; gap: 4px;
  transform-origin: top center;
  animation: caer .5s var(--ease-glass);
}
.menu-movil[hidden] { display: none; }
.menu-movil a:not(.btn) { padding: 12px 14px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; border-radius: 16px; }
.menu-movil .btn { justify-content: center; margin-top: 8px; }
@keyframes caer { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* =========================================================
   1 · PORTADA
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 150px;
  background: linear-gradient(180deg, #d9e4ec 0%, #e9eef0 38%, #f5f1ea 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sky .blob--orange { width: 46vw; height: 46vw; right: -8vw; top: 6vh; opacity: .42; }
.hero__sky .blob--blue { width: 55vw; height: 55vw; left: -18vw; top: -10vh; }

.hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title {
  font-size: clamp(50px, 9.4vw, 150px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.045em;
  margin-bottom: 34px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); color: #31343a; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__sketch { position: absolute; pointer-events: none; mix-blend-mode: multiply; z-index: 1; }
.hero__sketch--front { width: min(56vw, 820px); right: -4vw; bottom: 76px; opacity: .9; }
.hero__sketch--back { width: min(52vw, 760px); left: -10vw; top: 14vh; opacity: .12; }

/* cinta de áreas que se desplaza sin fin */
.marquee {
  position: absolute; left: 0; right: 0; bottom: calc(var(--radius-panel) + 22px); z-index: 3;
  overflow: hidden; padding: 10px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; animation: cinta 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip { padding: 11px 20px; border-radius: 1000px; font-weight: 700; font-size: 16px; white-space: nowrap; }
@keyframes cinta { to { transform: translateX(calc(-50% - 6px)); } }

/* =========================================================
   2 · EL ESTUDIO
   ========================================================= */
.estudio { background: var(--hull); }
.estudio__bg {
  position: absolute; width: min(90vw, 1200px); right: -12vw; top: 10%;
  filter: invert(1); mix-blend-mode: screen; opacity: .1; pointer-events: none;
}
.lit {
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 24ch;
  margin-bottom: clamp(60px, 8vw, 110px);
}
.lit .w { opacity: .16; transition: opacity .5s, color .5s; }
.lit .w.on { opacity: 1; }
.lit .w.hl.on { color: var(--orange); }

.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pilar { padding: 32px 30px 34px; border-radius: var(--radius-card); }
.pilar__n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 40px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  font-weight: 700; font-size: 15px; color: var(--orange);
}
.pilar h3 { font-size: 23px; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; }
.pilar p { color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.55; }

/* =========================================================
   3 · SERVICIOS
   ========================================================= */
.servicios { background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%); }
.servicios__bg { position: absolute; inset: 0; pointer-events: none; }
.servicios__bg .blob--orange { width: 40vw; height: 40vw; left: -12vw; top: 30%; opacity: .3; }
.servicios__bg .blob--blue { width: 50vw; height: 50vw; right: -15vw; top: 55%; opacity: .45; }

.head { display: grid; gap: 0; margin-bottom: clamp(48px, 6vw, 80px); }
.head__hint { margin-top: 18px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.card { border-radius: var(--radius-card); overflow: hidden; transition: transform .6s var(--ease-glass), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 24px 50px rgba(0,13,16,.12); }
.card__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  position: relative;
  display: grid; grid-template-columns: 1fr; grid-template-areas: "fig" "n" "title";
  padding: 14px 14px 24px;
}
.card__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; border-radius: var(--radius-card); }
.card__fig {
  grid-area: fig; display: block; aspect-ratio: 2.1 / 1; overflow: hidden;
  border-radius: 18px; background: rgba(255,255,255,.75); margin-bottom: 20px;
}
.card__fig img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease-out); }
.card:hover .card__fig img { transform: scale(1.06); }
.card__n { grid-area: n; padding: 0 10px 6px; font-size: 15px; font-weight: 700; color: var(--orange); }
.card__title { grid-area: title; padding: 0 10px; min-height: 2.3em; font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.card__plus {
  position: absolute; right: 26px; top: 26px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 6px 18px rgba(0,13,16,.25);
  transition: transform .5s var(--ease-glass), background .3s;
}
.card:hover .card__plus { transform: scale(1.1); }
.card.open:hover .card__plus { transform: rotate(45deg) scale(1.1); }
.card__plus::before, .card__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #fff; transform: translate(-50%, -50%); border-radius: 2px; }
.card__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.card.open .card__plus { transform: rotate(45deg); background: var(--orange); }
.card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.card.open .card__more { grid-template-rows: 1fr; }
.card__more > ul { overflow: hidden; padding: 0 30px; }
.card.open .card__more > ul { padding-bottom: 26px; }
.card__more li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid rgba(0,13,16,.1); color: #31343a; font-size: 17px; line-height: 1.5; }
.card__more li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* =========================================================
   4 · GALERÍA HORIZONTAL
   ========================================================= */
.galeria { background: var(--deck); }
.galeria__head { margin-bottom: clamp(36px, 5vw, 64px); }
.galeria__head .title { max-width: none; }
.galeria__rows { display: flex; flex-direction: column; gap: 20px; }
/* cada fila se desliza en un sentido distinto según avanza el scroll (js/main.js) */
.galeria__row { display: flex; gap: 20px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.frame { width: clamp(260px, 34vw, 480px); border-radius: var(--radius-card); padding: 12px 12px 16px; flex: none; transition: transform .6s var(--ease-glass); }
.frame:hover { transform: translateY(-6px) scale(1.02); }
.frame img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; border-radius: 16px; filter: invert(1); mix-blend-mode: screen; opacity: .9; }
.frame figcaption { padding: 14px 6px 0; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

/* =========================================================
   5 · CONTACTO
   ========================================================= */
.contacto { background: linear-gradient(180deg, #f5f1ea 0%, #e6edf1 100%); }
.contacto__bg { position: absolute; inset: 0; pointer-events: none; }
.contacto__bg .blob--orange { width: 44vw; height: 44vw; right: 5vw; top: 35%; opacity: .5; }
.contacto__bg .blob--blue { width: 50vw; height: 50vw; left: -10vw; top: 0; }
.contacto__bg img { position: absolute; width: min(70vw, 900px); right: -8vw; top: 4%; mix-blend-mode: multiply; opacity: .14; }

.contacto__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }

/* bloque destacado naranja: el único bloque cálido de la página */
.datos { background: var(--orange); color: var(--ink); padding: clamp(30px, 4vw, 53px) clamp(26px, 4vw, 59px); display: flex; flex-direction: column; gap: 30px; }
.datos__item { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid rgba(0,13,16,.25); }
.datos__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.datos__ext { letter-spacing: 0; text-transform: none; }
.datos__value { font-size: clamp(24px, 2.7vw, 37px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); }
.datos__value--mail { font-size: clamp(19px, 2vw, 26px); overflow-wrap: anywhere; }
a.datos__value:hover, a.datos__item:hover .datos__value { background-size: 100% 2px; }
.datos__addr { font-size: 18px; line-height: 1.45; font-weight: 700; }

.form { border-radius: var(--radius-card); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #31343a; }
.field input, .field textarea {
  font: inherit; font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
  width: 100%; padding: 14px 18px; border-radius: 18px;
  border: 1px solid rgba(0,13,16,.12);
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 2px rgba(0,13,16,.06);
  transition: border-color .3s, background .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.85); box-shadow: 0 0 0 4px rgba(251,116,36,.18); }
.field .is-invalid, .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c4361c; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: #31343a; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__note { flex: 1 1 220px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.form__msg { font-size: 16px; font-weight: 700; min-height: 1px; }
.form__msg.is-error { color: #b42f17; }

.link { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--orange); }
.link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }

/* =========================================================
   PIE
   ========================================================= */
.pie { background: var(--ink); padding-bottom: 40px; }
.pie__logo { width: min(100%, 980px); margin-bottom: clamp(56px, 8vw, 100px); }
.pie__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.pie__cols a, .pie__cols p:not(.pie__h) { display: block; color: var(--ash); font-size: 18px; line-height: 1.6; transition: color .3s; }
.pie__cols a:hover { color: var(--white); }
.pie__h { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; color: var(--ash); font-size: 15px; }
.pie__legal div { display: flex; gap: 22px; }
.pie__legal .link { text-decoration: none; }
.pie__legal .link:hover { color: var(--white); }

/* =========================================================
   TEXTOS LEGALES
   ========================================================= */
.legal {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  width: min(calc(100% - 32px), 760px); max-height: min(86svh, 900px);
  padding: 0; border: 0; border-radius: 30px; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.7));
  overflow: hidden;
}
.legal[open] { display: flex; flex-direction: column; animation: emerger .55s var(--ease-glass); }
.legal::backdrop { background: rgba(0,13,16,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes emerger { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.legal__top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px 18px; border-bottom: 1px solid rgba(0,13,16,.08); }
.legal__tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0,13,16,.06); border-radius: 1000px; overflow-x: auto; }
.legal__tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 1000px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .3s, color .3s; }
.legal__tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.legal__close { margin-left: auto; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: rgba(0,13,16,.08); font-size: 26px; line-height: 1; transition: background .3s, transform .4s var(--ease-glass); }
.legal__close:hover { background: rgba(0,13,16,.16); transform: rotate(90deg); }
.legal__body { overflow-y: auto; padding: 26px clamp(20px, 4vw, 40px) 36px; overscroll-behavior: contain; }
.legal__body h3 { font-size: clamp(28px, 4vw, 37px); line-height: 1; letter-spacing: -.03em; margin-bottom: 18px; }
.legal__body h4 { font-size: 18px; margin: 24px 0 6px; }
.legal__body p, .legal__body li { font-size: 16px; line-height: 1.6; color: #31343a; }
.legal__datos li { padding: 6px 0; border-bottom: 1px solid rgba(0,13,16,.07); }
mark.pendiente { background: rgba(251,116,36,.25); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* =========================================================
   MOVIMIENTO — entradas desde fuera al hacer scroll
   (solo si hay JavaScript; sin JS todo se ve normal)
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.js [data-reveal="left"]  { transform: translateX(-45vw) rotate(-2deg); }
.js [data-reveal="right"] { transform: translateX(45vw) rotate(2deg); }
.js [data-reveal="up"]    { transform: translateY(120px) scale(.94); filter: blur(8px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* carga inicial de la portada */
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .marquee { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero__lead { transition-delay: .35s; }
.js .hero__actions { transition-delay: .5s; }
.js .marquee { transition-delay: .7s; }
.js .hero__sketch--front { opacity: 0; translate: 40vw 0; transition: opacity 1.4s var(--ease-out) .25s, translate 1.8s var(--ease-out) .25s; }
.js.is-loaded .hero__title .line > span { transform: none; }
.js.is-loaded .hero__eyebrow, .js.is-loaded .hero__lead, .js.is-loaded .hero__actions, .js.is-loaded .marquee { opacity: 1; transform: none; }
.js.is-loaded .hero__sketch--front { opacity: .9; translate: 0 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card__fig { aspect-ratio: 1.55 / 1; }
  .card__title { font-size: 20px; }
}
@media (max-width: 960px) {
  .pilares { grid-template-columns: 1fr; }
  .contacto__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { padding: 0 8px 0 18px; height: 58px; }
  .nav__links, .nav__call { display: none; }
  .nav__burger {
    display: grid; place-items: center; align-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--ink);
  }
  .nav__burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-glass); }
  .nav[data-on="dark"] .nav__burger { background: var(--white); }
  .nav[data-on="dark"] .nav__burger span { background: var(--ink); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-movil { top: 80px; }

  .hero { padding-bottom: 210px; }
  .hero__sketch--front { width: 120vw; right: -30vw; bottom: 90px; opacity: .55; }
  .js.is-loaded .hero__sketch--front { opacity: .55; }
  .hero__sketch--back { display: none; }

  .cards { grid-template-columns: 1fr; }
  .card__more > ul { padding: 0 18px; }
  .form__row { grid-template-columns: 1fr; }
  .frame { width: 66vw; }
  .pie__cols { grid-template-columns: 1fr; }
  .js [data-reveal="left"]  { transform: translateX(-70vw); }
  .js [data-reveal="right"] { transform: translateX(70vw); }
}

/* galería sin movimiento: desplazamiento horizontal normal */
.galeria--static .galeria__row { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.galeria--static .frame { scroll-snap-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  .marquee { -webkit-mask: none; mask: none; }
}
