/* DLVisuals 2026 · sistema visual blanco y negro
   Un solo tema por pagina (oscuro por defecto, claro opcional), un solo radio (0),
   sin acento de color. Tipografia: Syne (titulares) + Geist (texto) + Geist Mono (cifras). */

/* Fuentes alojadas en el propio sitio (sin Google Fonts). Licencia OFL en assets/fonts. */
@font-face { font-family: 'Syne'; src: url('../assets/fonts/Syne.woff') format('woff'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../assets/fonts/Geist.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/GeistMono.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --font-display: 'Syne', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 68px;

  --z-float: 80;
  --z-menu: 90;
  --z-nav: 100;
  --z-banner: 110;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #101010;
  --surface: #161616;
  --line: #262626;
  --line-strong: #3d3d3d;
  --text: #f2f2f0;
  --muted: #a3a3a3;
  --inv-bg: #f2f2f0;
  --inv-text: #0a0a0a;
  --inv-muted: #4d4d4d;
  --dot: rgba(255, 255, 255, 0.16);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f3f1;
  --bg-2: #ebebe9;
  --surface: #fafaf8;
  --line: #d9d9d6;
  --line-strong: #b4b4b0;
  --text: #0a0a0a;
  --muted: #565656;
  --inv-bg: #0a0a0a;
  --inv-text: #f3f3f1;
  --inv-muted: #a3a3a3;
  --dot: rgba(0, 0, 0, 0.18);
}

/* Base ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--inv-bg); color: var(--inv-text); }
input, textarea { caret-color: var(--text); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--bg); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

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

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  padding: 0.7rem 1.1rem; background: var(--inv-bg); color: var(--inv-text);
}
.skip-link:focus { top: 12px; }

/* Iconos (lineas simples, un solo trazo) --------------------------------- */

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

/* Botones y enlaces --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--text);
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 160ms ease-out;
}
.btn .icon { font-size: 1.05em; transition: transform 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.88rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--text); }
  .btn:hover .icon--arrow { transform: translateX(3px); }
  .btn:hover .icon--up { transform: translate(2px, -2px); }
  .btn--solid:hover { background: transparent; color: var(--text); border-color: var(--text); }
}

.link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--text); } }

/* Navegacion ----------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease-out, border-color 240ms ease-out;
}
.nav.is-scrolled, .nav.is-open { background: var(--bg); border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__logo img { height: 40px; width: 40px; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: 0.92rem; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color 160ms ease-out; }
.nav__links a[aria-current="page"], .nav__links a:not(.btn):hover { color: var(--text); }
.nav__tools { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); font-size: 1.15rem;
  transition: border-color 180ms ease-out, transform 160ms ease-out;
}
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--text); } }
.nav__burger { display: none; }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-menu);
  background: var(--bg); padding: 2rem var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms ease-out, transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 6.6vw, 2.2rem); padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: 1.5rem; align-self: flex-start; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}

/* Secciones ------------------------------------------------------------------- */

main { display: block; }
.section { padding-block: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.section__head p { margin-top: 1.4rem; color: var(--muted); font-size: 1.08rem; max-width: 58ch; }

/* Hero -------------------------------------------------------------------------- */

.hero { padding-top: calc(var(--nav-h) + 3.25rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero h1 { font-size: clamp(1.9rem, 4.1vw, 3.9rem); line-height: 1; letter-spacing: -0.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; }
.hero__row {
  margin-top: clamp(1.8rem, 3.2vw, 2.8rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: end;
}
.hero__lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-start; }
.hero__frames { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.hero__frames .frame:last-child { margin-top: clamp(2rem, 6vw, 5rem); }

@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__frames { grid-template-columns: 1fr; }
  .hero__frames .frame:last-child { margin-top: 0; }
}

/* Marco de navegador (capturas reales) ---------------------------------------- */

.frame { border: 1px solid var(--line-strong); background: var(--surface); transition: transform 420ms var(--ease-out), border-color 240ms ease-out; }
.frame__bar { height: 34px; display: flex; align-items: center; gap: 0.5rem; padding-inline: 12px; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 8px; height: 8px; border: 1px solid var(--line-strong); }
.frame__bar span { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.01em; }
.frame img { width: 100%; }
@media (hover: hover) and (pointer: fine) { a.frame:hover, .case__media:hover .frame { transform: translateY(-5px); border-color: var(--text); } }

/* Proyectos ---------------------------------------------------------------------- */

.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: center; }
.case + .case { margin-top: clamp(4rem, 8vw, 7.5rem); }
.case__media { grid-column: 1 / span 7; display: block; }
.case__body { grid-column: 8 / span 5; }
.case--flip .case__media { grid-column: 6 / span 7; order: 2; }
.case--flip .case__body { grid-column: 1 / span 5; order: 1; }
.case__kind { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.case__body h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.case__body > p { margin-top: 1.2rem; color: var(--muted); max-width: 46ch; }
.case__list { margin-top: 1.6rem; }
.case__list li { padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.96rem; }
.case__list li:last-child { border-bottom: 1px solid var(--line); }
.case__links { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }

@media (max-width: 860px) {
  .case, .case--flip { display: flex; flex-direction: column; align-items: stretch; }
  .case__media, .case--flip .case__media { order: 0; }
  .case__body, .case--flip .case__body { order: 1; }
}

/* Servicios (lista) ---------------------------------------------------------------- */

.svc { border-bottom: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 1rem 3rem; align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; border-top: 1px solid var(--line);
  transition: padding 320ms var(--ease-out), background-color 240ms ease-out;
}
.svc__row h3 { font-size: clamp(1.05rem, 1.7vw, 1.45rem); }
.svc__row p { color: var(--muted); max-width: 52ch; }
.svc__price { display: flex; align-items: center; gap: 1.2rem; justify-content: flex-end; font-family: var(--font-mono); font-size: 0.92rem; white-space: nowrap; }
.svc__price .icon { font-size: 1.3rem; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc__row:hover { padding-inline: 1.25rem; background: var(--bg-2); }
  .svc__row:hover .icon { transform: translate(3px, -3px); }
}
@media (max-width: 860px) {
  .svc__row { grid-template-columns: minmax(0, 1fr) auto; }
  .svc__row p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .svc__row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .svc__row p { grid-row: auto; }
  .svc__price { justify-content: space-between; }
}

/* Proceso ---------------------------------------------------------------------------- */

.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process__intro { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
.process__intro h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.process__intro p { margin-top: 1.3rem; color: var(--muted); max-width: 34ch; }
.steps li { padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 2rem; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); grid-column: 1; }
.steps p { color: var(--muted); grid-column: 1; max-width: 52ch; }
.steps .steps__time { grid-column: 2; grid-row: 1; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process__intro { position: static; }
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .steps h3, .steps p, .steps .steps__time { grid-column: 1; }
  .steps .steps__time { grid-row: auto; white-space: normal; }
}

/* Laboratorio ------------------------------------------------------------------------ */

.lab { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.lab__cell { position: relative; min-height: 340px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.lab__cell--wide { grid-column: span 4; }
.lab__cell--std { grid-column: span 2; }
.lab__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 250px; touch-action: pan-y; }
.lab__caption { padding: 1rem 1.25rem 1.2rem; border-top: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.lab__caption h3 { font-size: 0.98rem; letter-spacing: -0.01em; }
.lab__caption p { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }

@media (max-width: 980px) {
  .lab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab__cell--wide { grid-column: 1 / -1; }
  .lab__cell--std { grid-column: span 1; }
  .lab__cell--std:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .lab { grid-template-columns: 1fr; }
  .lab__cell--std, .lab__cell--std:last-child { grid-column: 1 / -1; }
}

/* a) acordeon de imagenes */
.strips { position: absolute; inset: 0; display: flex; gap: 2px; background: var(--line); }
.strip { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--bg); transition: flex-grow 560ms var(--ease-in-out); cursor: pointer; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: grayscale(1) contrast(1.05); transition: filter 420ms ease-out; }
.strip.is-active { flex-grow: 5; }
.strip.is-active img { filter: none; }
.strip::after { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: 0.45; transition: opacity 420ms ease-out; pointer-events: none; }
.strip.is-active::after { opacity: 0; }
@media (max-width: 620px) { .strips { flex-direction: column; } }

/* b) tarjeta con profundidad */
.tilt { perspective: 900px; width: min(78%, 240px); }
.tilt__card {
  position: relative; aspect-ratio: 4 / 5; padding: 1.4rem; background: var(--inv-bg); color: var(--inv-text);
  display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.55);
}
.tilt__card.is-live { transition: transform 90ms linear; }
.tilt__card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.32), transparent 55%); mix-blend-mode: soft-light; opacity: var(--glow, 0); transition: opacity 300ms ease-out; }
.tilt__card b { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.03em; }
.tilt__card span { font-size: 0.82rem; color: var(--inv-muted); }

/* c) boton con iman */
.magnet-zone { position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 18px 18px; display: flex; align-items: center; justify-content: center; }
.magnet { will-change: transform; transition: transform 500ms var(--ease-out); }
.magnet.is-live { transition: transform 80ms linear; }
.magnet .btn { padding: 1.15rem 1.9rem; pointer-events: none; }

/* d) foco de luz */
.spot { position: absolute; inset: 0; cursor: crosshair; --x: 30%; --y: 40%; }
.spot__layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.5rem, 2.6vw, 2.2rem); user-select: none; }
.spot__layer--base { color: var(--line-strong); }
.spot__layer--lit { color: var(--text); -webkit-mask-image: radial-gradient(circle 95px at var(--x) var(--y), #000 30%, transparent 100%); mask-image: radial-gradient(circle 95px at var(--x) var(--y), #000 30%, transparent 100%); }

/* e) texto que se descifra */
.scramble { padding: 1.5rem; text-align: center; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.scramble__btn { position: absolute; right: 0.9rem; top: 0.9rem; }

/* Presupuestador ------------------------------------------------------------------------ */

.quote { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quote__form fieldset { border: 0; margin-bottom: 2.6rem; min-width: 0; }
.quote__form legend { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.1rem; margin-bottom: 1rem; }
.quote__form legend small { font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 0.9rem; margin-left: 0.6rem; }

.choice { display: grid; gap: 0; border-top: 1px solid var(--line); }
.choice__item { position: relative; }
.choice__item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choice__item label {
  display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center;
  padding: 1rem 0.9rem; margin-inline: -0.9rem; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background-color 180ms ease-out;
}
.choice__box { width: 1.15rem; height: 1.15rem; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.choice__box .icon { font-size: 0.85rem; color: var(--inv-text); opacity: 0; transform: scale(0.6); transition: opacity 140ms ease-out, transform 200ms var(--ease-out); }
.choice--radio .choice__box { }
.choice__item input:checked + label { background: var(--bg-2); }
.choice__item input:checked + label .choice__box { background: var(--inv-bg); border-color: var(--inv-bg); }
.choice__item input:checked + label .choice__box .icon { opacity: 1; transform: none; }
.choice__item input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; }
.choice__name { font-weight: 500; }
.choice__hint { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.choice__price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .choice__item:hover label { background: var(--bg-2); } }

.range { display: grid; gap: 0.9rem; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--muted); font-size: 0.92rem; }
.range__top output { font-family: var(--font-mono); color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--inv-bg); border: 0; transition: transform 160ms ease-out; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 0; background: var(--inv-bg); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-group .choice__item { flex: 1 1 8rem; }
.pill-group label { display: block; text-align: center; padding: 0.85rem 0.9rem; border: 1px solid var(--line-strong); cursor: pointer; font-size: 0.94rem; grid-template-columns: none; transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out; }
.pill-group input:checked + label { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); padding-inline: 0.9rem; }

.result { position: sticky; top: calc(var(--nav-h) + 1.5rem); background: var(--inv-bg); color: var(--inv-text); padding: clamp(1.6rem, 3vw, 2.4rem); }
.result h3 { font-size: 1rem; letter-spacing: -0.01em; color: var(--inv-muted); }
.result__price { margin-top: 1rem; font-family: var(--font-mono); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result__row { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(128, 128, 128, 0.35); display: grid; gap: 0.35rem; font-size: 0.95rem; }
.result__row dt { color: var(--inv-muted); font-size: 0.85rem; }
.result__list { margin-top: 0.4rem; display: grid; gap: 0.2rem; }
.result__list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.result__list span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.result__note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--inv-muted); }
.result .btn { margin-top: 1.5rem; background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
@media (hover: hover) and (pointer: fine) { .result .btn:hover { background: transparent; color: var(--inv-text); border-color: var(--inv-text); } }
@media (max-width: 980px) { .quote { grid-template-columns: 1fr; } .result { position: static; } }

/* Reseñas --------------------------------------------------------------------------------- */

.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); }
.review { border-top: 1px solid var(--line-strong); padding-top: 1.6rem; }
.review--lead { grid-column: 1 / span 7; }
.reviews__side { grid-column: 9 / span 4; display: grid; gap: 2.5rem; align-self: end; }
.review blockquote { font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.32; letter-spacing: -0.015em; font-weight: 400; text-wrap: balance; }
.reviews__side blockquote { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.review figcaption { margin-top: 1.4rem; color: var(--muted); font-size: 0.94rem; }
.review figcaption b { color: var(--text); font-weight: 500; display: block; }
.reviews__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: center; padding-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.reviews__foot strong { color: var(--text); font-weight: 500; font-family: var(--font-mono); }
@media (max-width: 860px) { .review--lead, .reviews__side { grid-column: 1 / -1; } }

/* Sobre mi -------------------------------------------------------------------------------- */

.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.about__text { grid-column: 1 / span 6; }
.about__text h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.about__text p { margin-top: 1.3rem; color: var(--muted); max-width: 54ch; }
.about__text p:first-of-type { margin-top: 1.8rem; color: var(--text); font-size: 1.12rem; }
.about__side { grid-column: 8 / span 5; }
.about__photo { border: 1px solid var(--line-strong); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.about__points li { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.about__points li:last-child { border-bottom: 1px solid var(--line); }
.about__points b { display: block; font-weight: 500; margin-bottom: 0.2rem; }
.about__points span { color: var(--muted); font-size: 0.95rem; }
.about__photo + .about__points { margin-top: 1.6rem; }
@media (max-width: 860px) { .about__text, .about__side { grid-column: 1 / -1; } }

/* FAQ ---------------------------------------------------------------------------------------- */

.faq { max-width: 52rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font-size: 1.08rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 1.15rem; transition: transform 280ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.faq details[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 3rem 1.5rem 0; color: var(--muted); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--muted); } }

/* Contacto -------------------------------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__info h2 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
.contact__info > p { margin-top: 1.4rem; color: var(--muted); max-width: 40ch; }
.contact__data { margin-top: 2.2rem; }
.contact__data li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.contact__data li:last-child { border-bottom: 1px solid var(--line); }
.contact__data span { color: var(--muted); }
.contact__data a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); word-break: break-word; }
@media (hover: hover) and (pointer: fine) { .contact__data a:hover { text-decoration-color: var(--text); } }

.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.95rem 1rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0; font: inherit; font-size: 1rem;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--text); background: var(--bg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field__help { color: var(--muted); font-size: 0.85rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--text); border-width: 2px; }
.field__error { display: none; font-size: 0.86rem; font-weight: 500; }
.field.has-error .field__error { display: block; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5rem; font-size: 0.95rem; }
.form__note { display: none; padding: 0.9rem 1rem; border: 1px solid var(--line-strong); font-size: 0.92rem; color: var(--muted); }
.form__note.is-visible { display: block; }
.form__note button { color: var(--text); text-decoration: underline; text-underline-offset: 4px; margin-left: 0.5rem; }
.form__success { padding: 2.2rem; border: 1px solid var(--text); }
.form__success h3 { font-size: 1.5rem; }
.form__success p { margin-top: 0.8rem; color: var(--muted); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } .contact { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }

/* Cabecera de paginas interiores ------------------------------------------------------------------ */

.page-hero { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); max-width: 16ch; }
.page-hero p { margin-top: 1.5rem; color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.page-hero + .section { border-top: 1px solid var(--line); }

/* Proyecto (detalle) ----------------------------------------------------------------------------------- */

.project__back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.94rem; margin-bottom: 2rem; }
.project__back .icon { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .project__back:hover { color: var(--text); } }
.project__hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
.project__hero p { margin-top: 1.4rem; color: var(--muted); font-size: 1.15rem; max-width: 50ch; }
.project__cover { margin-top: clamp(2rem, 4vw, 3.5rem); }
.project__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.project__cols h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.project__cols p { color: var(--muted); }
.project__cols p + p { margin-top: 1rem; }
.project__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.project__gallery .frame:first-child { grid-column: 1 / -1; }
.project__next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
@media (max-width: 860px) { .project__cols { grid-template-columns: 1fr; } .project__gallery { grid-template-columns: 1fr; } }
.project[hidden] { display: none; }

/* Banda final ---------------------------------------------------------------------------------------------- */

.band { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.band__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.band h2 { font-size: clamp(1.7rem, 3.3vw, 2.7rem); max-width: 18ch; }

/* Legal y 404 -------------------------------------------------------------------------------------------------- */

.legal { max-width: 46rem; margin-inline: auto; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 6rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; text-transform: none; letter-spacing: -0.01em; margin-top: 2.6rem; margin-bottom: 0.9rem; font-family: var(--font-body); font-weight: 600; }
.legal h3 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; margin: 1.6rem 0 0.6rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.legal strong { color: var(--text); font-weight: 500; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal a { text-decoration: underline; text-underline-offset: 4px; color: var(--text); }
.notfound { min-height: 100dvh; display: flex; align-items: center; padding-top: var(--nav-h); }
.notfound h1 { font-size: clamp(5rem, 18vw, 12rem); }
.notfound h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-top: 1rem; }
.notfound p { color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.notfound .btn { margin-top: 1.8rem; margin-right: 0.6rem; }

/* Pie ------------------------------------------------------------------------------------------------------------ */

.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; }
.footer__brand img { height: 48px; width: 48px; }
.footer__brand p { margin-top: 1.2rem; color: var(--muted); max-width: 34ch; font-size: 0.95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer__cols h4 { font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.86rem; color: var(--muted); margin-bottom: 0.9rem; }
.footer__cols li + li { margin-top: 0.5rem; }
.footer__cols a { font-size: 0.95rem; transition: color 160ms ease-out; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--muted); } }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; color: var(--muted); font-size: 0.86rem; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.footer__dot { opacity: 0.35; margin-left: 0.6rem; text-decoration: none !important; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* WhatsApp y cookies ------------------------------------------------------------------------------------------------ */

.float-wa {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-float);
  display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--inv-bg); color: var(--inv-text);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  transition: transform 180ms ease-out, opacity 240ms ease-out;
}
.float-wa:active { transform: scale(0.96); }

.cookie {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-banner);
  max-width: 26rem; padding: 1.25rem 1.3rem; background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 0.9rem; color: var(--muted);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 260ms ease-out, transform 320ms var(--ease-out);
}
.cookie.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
@media (max-width: 620px) { .float-wa { bottom: 84px; } }

/* Movimiento de entrada ------------------------------------------------------------------------------------------------ */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero h1 .line > span { transform: translateY(105%); transition: transform 820ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
.js .hero.is-ready h1 .line > span { transform: none; }
.js .hero .hero__row, .js .hero .hero__frames { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out) 380ms, transform 700ms var(--ease-out) 380ms; }
.js .hero .hero__frames { transition-delay: 520ms; }
.js .hero.is-ready .hero__row, .js .hero.is-ready .hero__frames { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero .hero__row, .js .hero .hero__frames, .js .hero h1 .line > span { opacity: 1; transform: none; }
}

/* Iconos de marca -------------------------------------------------------------------------------------------------- */
.icon--brand { font-size: 1.35rem; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.float-wa .icon--brand { font-size: 1.6rem; }
.social { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); transition: background-color 180ms ease-out, color 180ms ease-out, transform 160ms ease-out; }
.social a:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .social a:hover { background: var(--inv-bg); color: var(--inv-text); } }
.brandlabel { display: inline-flex; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
