/* ==========================================================================
   Julen Mínguez — piel inspirada en kott.studio
   Claro / tinta alternos, azul eléctrico, rosa señal, ángulos rectos, grano.
   ========================================================================== */

@font-face { font-family: "Syne"; src: url("../fonts/syne-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-italic-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f4f5f7;
  --ink: #101113;
  --ink-2: #1a1c1f;
  --mute: #5b5f66;
  --mute-d: #a3a7ae;
  --line: rgba(16, 17, 19, 0.16);
  --line-d: rgba(244, 245, 247, 0.16);
  --blue: #0037ff;
  --blue-l: #7d96ff;
  --pink: #ff3060;
  --ok: #1e7a4a;

  --display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --text: "Instrument", ui-sans-serif, system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scrollbar-color: var(--ink) var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 6.2vw, 5.6rem); }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; font-family: var(--text); font-weight: 500; letter-spacing: -0.02em; }
::selection { background: var(--blue); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dark, .pink { --focus: var(--paper); }
.pink { --focus: var(--ink); }
button { font: inherit; color: inherit; }

/* Grano fijo (sin coste en el scroll) */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { padding-inline: var(--pad); max-width: 1600px; margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus-visible { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dark { background: var(--ink); color: var(--paper); }
.pink { background: var(--pink); color: var(--ink); }

/* ---------- Botones rectos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 0; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: color .35s var(--ease); position: relative; overflow: hidden; isolation: isolate;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.dark .btn::before { background: var(--paper); }
.dark .btn:hover { color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn__icon svg { width: 14px; height: 14px; display: block; transition: transform .45s var(--ease); }
.btn:hover .btn__icon svg { transform: translate(2px, -2px); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); }
.dark .btn--line::before { background: var(--paper); }
.dark .btn--line:hover { color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Cabecera fija con inversión de color ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.header__bar { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.header a, .header button { pointer-events: auto; }
.brand { font-family: var(--display); font-size: 1.65rem; font-weight: 500; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 32px); }
.nav a { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; position: relative; display: block; padding: 10px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 110px var(--pad) 40px; background: var(--ink); color: var(--paper); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.menu a { font-family: var(--display); font-size: clamp(2.1rem, 10vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; text-decoration: none; }
.menu a span { color: var(--blue-l); }
.menu p { margin: 24px 0 0; color: var(--mute-d); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 96px; overflow: hidden; }
.hero__stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.hero__word { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 15.6vw, 15.5rem); letter-spacing: -0.05em; line-height: .85; text-transform: uppercase; white-space: nowrap; user-select: none; }
.hero__word .b { color: var(--blue); }
.hero__word .ch { display: inline-block; }
.hero__obj { position: absolute; width: min(34vw, 500px); aspect-ratio: 16 / 11; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.hero__obj figure { position: absolute; inset: 0; margin: 0; background: #fff; box-shadow: 0 50px 80px -40px rgba(16, 17, 19, .55); }
.hero__obj img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero__obj figure:nth-child(1) { transform: translate3d(-24%, 6%, -140px) rotate(-8deg); }
.hero__obj figure:nth-child(2) { transform: translate3d(22%, -4%, -70px) rotate(7deg); }
.hero__obj figure:nth-child(3) { transform: translate3d(0, 0, 0); }
.hero__foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; align-items: end; padding-bottom: 28px; }
.hero__tag { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
.hero__tag em { color: var(--blue); display: block; font-size: 1.04em; }
.hero__side { display: grid; gap: 18px; justify-items: start; }
.hero__side p { margin: 0; color: var(--mute); max-width: 44ch; }
.hero__bar { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 22px; border-top: 1px solid var(--line); color: var(--mute); }

/* ---------- Encabezados de sección ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .label { grid-column: 1 / -1; color: var(--mute); }
.dark .sec-head .label { color: var(--mute-d); }
.pink .sec-head .label { color: var(--ink); }
.sec-head p { margin: 0; max-width: 46ch; color: var(--mute); font-size: 1.1rem; }
.dark .sec-head p { color: var(--mute-d); }
.pink .sec-head p { color: var(--ink); }
.sec-head h2 em { color: var(--blue); }
.dark .sec-head h2 em { color: var(--blue-l); }

/* ---------- Recorrido (momento protagonista) ---------- */
.flow { border-top: 1px solid var(--line-d); }
.flow__sim { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 12px; border: 1px solid var(--line-d); font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-d); }
.flow__sim svg { width: 14px; height: 14px; }
.flow__pin { position: relative; }
.flow__board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 96px; align-items: center; min-height: 480px; }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow__lines path { fill: none; stroke: var(--line-d); stroke-width: 1.5; stroke-dasharray: 4 7; }
.flow__lines .trace { stroke: var(--pink); stroke-dasharray: none; stroke-width: 2; }
.flow__dot { fill: var(--pink); }
.form-mock { position: relative; z-index: 1; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #e3e5ea; color: var(--mute); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(16, 17, 19, .25); }
.win-bar b { margin-left: 10px; font-size: .72rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-mock__body { padding: 26px; display: grid; gap: 16px; }
.form-mock__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.fm-field { display: grid; gap: 6px; font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.fm-input { min-height: 40px; padding: 8px 0; border-bottom: 1px solid rgba(16, 17, 19, .35); color: var(--ink); font-family: var(--text); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.fm-input--area { min-height: 84px; }
.fm-type { white-space: pre-wrap; }
.fm-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--blue); }
.fm-send { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--blue); color: #fff; font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fm-sent { position: absolute; inset: 34px 0 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--paper); text-align: center; opacity: 0; visibility: hidden; }
.fm-sent svg { width: 44px; height: 44px; color: var(--ok); }
.fm-sent strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.fm-sent span { color: var(--mute); font-size: .95rem; }
.nodes { position: relative; z-index: 1; display: grid; gap: 18px; }
.node { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--line-d); background: var(--ink-2); transition: border-color .4s; }
.node.is-on { border-color: var(--pink); }
.node__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-d); color: var(--paper); transition: background-color .4s, color .4s, border-color .4s; }
.node.is-on .node__icon { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.node__icon svg { width: 20px; height: 20px; }
.node h3 { font-size: 1.15rem; margin-bottom: 6px; }
.node p { margin: 0; font-size: .95rem; color: var(--mute-d); }
.node__data { margin: 12px 0 0; display: grid; gap: 6px; padding: 12px; background: rgba(244, 245, 247, .06); font-size: .88rem; font-variant-numeric: tabular-nums; }
.node__data div { display: flex; justify-content: space-between; gap: 12px; }
.node__data dt { color: var(--mute-d); }
.node__data dd { margin: 0; text-align: right; }
.toast { margin-top: 12px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--paper); color: var(--ink); font-size: .9rem; }
.toast i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.chip { display: inline-flex; margin-top: 12px; padding: 7px 12px; background: var(--pink); color: var(--ink); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.flow__steps li { padding-top: 14px; border-top: 1px solid var(--line-d); color: var(--mute-d); font-size: .95rem; transition: border-color .4s, color .4s; }
.flow__steps li strong { display: block; color: var(--paper); font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.flow__steps li.is-on { border-color: var(--pink); color: var(--paper); }
.flow__note { margin: 40px 0 0; max-width: 62ch; color: var(--mute-d); }

/* ---------- Proyectos ---------- */
.work__list { border-top: 1px solid var(--line-d); }
.work__row { position: relative; display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 8px 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line-d); }
.work__num { font-family: var(--display); font-size: .8rem; font-weight: 600; color: var(--mute-d); }
.work__row h3 { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 500; letter-spacing: -0.04em; transition: color .35s var(--ease), transform .5s var(--ease); }
@media (hover: hover) { .work__row:hover h3 { color: var(--blue-l); transform: translateX(10px); } }
.work__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 14px; color: var(--mute-d); font-size: .92rem; }
.tag { display: inline-flex; padding: 4px 8px; border: 1px solid currentColor; font-family: var(--display); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag--demo { color: var(--blue-l); }
.tag--prop { color: var(--pink); }
.work__body { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; margin: 14px 0 0; }
.work__body dt { font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-d); margin-bottom: 6px; }
.work__body dd { margin: 0; font-size: .97rem; color: #d6d8dc; }
.work__link { grid-column: 2 / -1; margin-top: 18px; justify-self: start; }
.work__img { display: none; grid-column: 1 / -1; margin-top: 18px; }
.work__pending { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-d); }
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: 380px; aspect-ratio: 16 / 10; pointer-events: none; overflow: hidden; opacity: 0; visibility: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s; }
.preview img.is-on { opacity: 1; }

/* ---------- Diseño web ---------- */
.svc { border-top: 1px solid var(--line); }
.svc li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc .n { font-family: var(--display); font-size: .8rem; font-weight: 600; color: var(--mute); }
.svc h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.035em; transition: color .35s; }
@media (hover: hover) { .svc li:hover h3 { color: var(--blue); } }
.svc p { margin: 0; color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.web__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.web__cta p { margin: 0; color: var(--mute); }

/* ---------- Automatización (rosa) ---------- */
.auto__status { display: flex; gap: 14px; align-items: flex-start; max-width: 74ch; margin-bottom: 48px; padding: 18px 20px; border: 1px solid var(--ink); }
.auto__status svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.auto__status p { margin: 0; }
.swaps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid rgba(16, 17, 19, .3); }
.swaps li { padding: 26px 0; border-bottom: 1px solid rgba(16, 17, 19, .3); }
.swaps h3 { margin-bottom: 12px; font-size: 1.35rem; }
.swaps dl { display: grid; gap: 8px; margin: 0; }
.swaps dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; }
.swaps dt { font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.swaps dd { margin: 0; }
.swaps dt.after::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--ink); vertical-align: 1px; }
.auto__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 48px; }
.auto__cta .btn { background: var(--ink); color: var(--paper); }
.auto__cta .btn::before { background: var(--paper); }
.auto__cta .btn:hover { color: var(--ink); }
.auto__cta p { margin: 0; max-width: 56ch; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); counter-reset: step; }
.steps li { padding: 24px 24px 0 0; counter-increment: step; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero) "/"; display: block; margin-bottom: 40px; font-family: var(--display); font-size: .8rem; font-weight: 600; color: var(--blue); }
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--mute); font-size: .97rem; }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.about__big { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
.about__big em { color: var(--blue-l); }
.about__text p { color: #d6d8dc; font-size: 1.1rem; max-width: 56ch; }
.about__text p.muted { color: var(--mute-d); font-size: 1rem; }

/* ---------- Preguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 1fr 24px; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; justify-self: end; font-weight: 400; font-size: 1.6rem; line-height: 1; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { max-width: 68ch; color: var(--mute); padding-bottom: 12px; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.contact__intro h2 em { color: var(--blue-l); display: block; }
.contact__intro p { margin-top: 28px; color: var(--mute-d); max-width: 44ch; }
.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .choices legend { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mute-d); }
.field small { text-transform: none; letter-spacing: 0; font-family: var(--text); font-weight: 400; }
.input { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(244, 245, 247, .35); border-radius: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--paper); caret-color: var(--blue-l); transition: border-color .3s; }
.input::placeholder { color: #8b9097; }
.input:focus-visible { outline: none; border-bottom-color: var(--paper); box-shadow: 0 1px 0 0 var(--paper); }
textarea.input { min-height: 120px; resize: vertical; }
.field.has-error .input { border-bottom-color: #ff8a8a; }
.field__error { color: #ffa3a3; font-size: .9rem; }
.field__error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border: 1px solid rgba(244, 245, 247, .35); cursor: pointer; font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background-color .25s, color .25s, border-color .25s; }
.choice span:hover { border-color: var(--paper); }
.choice input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--mute-d); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check a { color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__send small { color: var(--mute-d); }
.form__status { padding: 14px 16px; font-size: .97rem; }
.form__status:empty { display: none; }
.form__status.is-ok { background: #d9f2e3; color: #0d3d23; }
.form__status.is-error { background: #ffe1e1; color: #6e1212; }
.form__status a { color: inherit; }
.form__summary { padding: 14px 16px; background: #ffe1e1; color: #6e1212; }
.form__summary[hidden] { display: none; }
.form__summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.form__summary a { color: inherit; }
.direct { margin-top: 40px; border-top: 1px solid var(--line-d); }
.direct li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.direct small { font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mute-d); }
.direct a { font-weight: 500; }
.pending { color: var(--pink); font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Pie ---------- */
.footer { padding: 80px 0 28px; border-top: 1px solid var(--line-d); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.footer__mark { font-family: var(--display); font-weight: 500; font-size: clamp(5rem, 17vw, 14rem); letter-spacing: -0.06em; line-height: .85; margin: 0; }
.footer__mark span { color: var(--blue-l); }
.footer__line { margin: 18px 0 0; color: var(--mute-d); font-style: italic; font-size: 1.15rem; }
.footer nav ul { display: grid; gap: 8px; }
.footer nav a { font-family: var(--display); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.footer nav a:hover { color: var(--blue-l); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-d); color: var(--mute-d); }

/* ---------- Páginas de servicio y legal ---------- */
.lp-hero { padding: 150px 0 clamp(64px, 8vw, 110px); }
.lp-hero .label { color: var(--mute); }
.lp-hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 15ch; letter-spacing: -0.045em; }
.lp-hero h1 em { color: var(--blue); }
.lp-hero p { max-width: 58ch; margin-top: 28px; font-size: 1.2rem; color: var(--mute); }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-points { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.lp-points li { padding: 24px 24px 0 0; }
.lp-points li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.lp-points h3 { margin-bottom: 10px; }
.lp-points p { margin: 0; color: var(--mute); }
.lp-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-work figure { margin: 0; }
.lp-work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.lp-work figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.lp-work figcaption b { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.legal { max-width: 760px; padding-top: 140px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.legal p { color: var(--mute); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(4) { padding-left: 0; border-left: 0; }
  .work__body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero__foot, .sec-head, .about, .contact__grid, .footer__top { grid-template-columns: 1fr; }
  .hero__obj { width: min(60vw, 420px); }
  .flow__board { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .flow__lines { display: none; }
  .flow__steps { grid-template-columns: 1fr 1fr; }
  .work__row { grid-template-columns: 1fr; }
  .work__meta { justify-content: flex-start; }
  .work__body, .work__link { grid-column: 1; }
  .work__img { display: block; }
  .preview { display: none; }
  .svc li { grid-template-columns: 1fr; }
  .lp-points, .lp-work { grid-template-columns: 1fr; }
  .lp-points li + li { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero__stage { display: flex; flex-direction: column; align-items: center; padding: 48px 0 56px; }
  .hero__obj { position: relative; width: 70%; margin-top: 28px; }
  .swaps, .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li::before { margin-bottom: 12px; }
  .flow__steps { grid-template-columns: 1fr; }
  .node { grid-template-columns: 1fr; }
  .hero__bar span:last-child { display: none; }
  .form__send .btn { width: 100%; }
  .direct li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Ajustes tras revisión de la portada */
.hero > .wrap { width: 100%; }
.hero__obj { width: min(24vw, 360px); }
@media (max-width: 900px) { .hero__obj { width: min(52vw, 360px); } }
.header.is-plain { mix-blend-mode: normal; color: var(--ink); }
.menu { --focus: var(--paper); }
@media (max-width: 900px) {
  .header, .header.is-plain { mix-blend-mode: normal; color: var(--paper); background: var(--ink); }
  .header__bar { min-height: 64px; }
  .hero { padding-top: 64px; }
}

/* Marca Trazo y Sistema */
.brand { font-size: 1.45rem; }
.brand span { color: var(--blue-l); margin: 0 .04em; }
.header.is-plain .brand span, .header .brand span { color: inherit; opacity: .7; }
.footer__mark { font-size: clamp(3.6rem, 11vw, 10rem); line-height: .9; }
.footer__mark span { font-family: var(--text); font-style: italic; font-weight: 500; }

/* Punto de cursor con contraste sobre fondos claros y oscuros. */
.cursor-dot { position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; mix-blend-mode: difference; z-index: 9999; pointer-events: none; visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .has-dot-cursor, .has-dot-cursor * { cursor: none !important; }
  .has-dot-cursor .cursor-dot { visibility: visible; }
}

/* Proyectos: capturas laterales permanentes, dentro de cada ficha. */
.work__row { grid-template-columns: 36px minmax(0, 1fr) minmax(300px, .95fr); column-gap: 36px; padding: 42px 0; align-items: start; }
.work__num { grid-column: 1; grid-row: 1; padding-top: 12px; }
.work__row h3 { grid-column: 2; grid-row: 1; font-size: clamp(2rem, 3.3vw, 3.3rem); }
.work__meta { grid-column: 2; grid-row: 2; justify-content: flex-start; margin-top: 8px; }
.work__body { grid-column: 2; grid-row: 3; grid-template-columns: 1fr; gap: 18px; }
.work__link { grid-column: 2; grid-row: 4; }
.work__img { display: block; grid-column: 3; grid-row: 1 / 5; margin-top: 8px; align-self: center; border: 1px solid rgba(255,255,255,.16); overflow: hidden; }
.work__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
@media (hover: hover) { .work__row:hover .work__img img { transform: scale(1.025); } }
@media (max-width: 900px) {
 .work__row { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
 .work__num { grid-column: 1; grid-row: 1; padding-top: 0; }
 .work__row h3 { grid-column: 1; grid-row: 2; }
 .work__meta { grid-column: 1; grid-row: 3; }
 .work__img { grid-column: 1; grid-row: 4; margin-top: 8px; }
 .work__body { grid-column: 1; grid-row: 5; }
 .work__link { grid-column: 1; grid-row: 6; }
}

.work__title-link { color: inherit; text-decoration: none; display: inline-block; }
.work__title-link:hover { color: var(--blue-l); }
.work__title-link:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 6px; }
.work__title-arrow { font-size: .5em; vertical-align: middle; }

/* Capturas de proyectos: marco con aire, sin recorte ni zoom */
.work__img { padding: 14px; background: #1a1c1f; }
.work__img img { aspect-ratio: auto; object-fit: contain; }
@media (hover: hover) { .work__row:hover .work__img img { transform: none; } }
