/* Fuentes propias (SIL Open Font License), subconjunto latino: sin peticiones a Google */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/instrument-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); }

/* Arcmint · estudio digital
   Concepto: estudio sobrio y técnico. Casi negro con matiz ciruela, tipografía grotesca precisa
   y los colores del logo (lila, malva y cobre) solo como acento: en el símbolo 3D, en los titulares y en los detalles. */
:root {
  --bg: #0E0C10;
  --bg-2: #141117;
  --bg-3: #1B171F;
  --line: rgba(236, 231, 238, .09);
  --line-2: rgba(236, 231, 238, .18);
  --text: #ECE7EE;
  --muted: #A39AA8;
  --dim: #8C8392;
  --lilac: #C9A3D4;
  --mauve: #A86FA6;
  --copper: #D99C79;
  --grad: linear-gradient(105deg, var(--lilac) 0%, var(--mauve) 48%, var(--copper) 100%);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
::selection { background: rgba(168, 111, 166, .45); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ───── INTRO ───── */
.intro { display: none; }
.js .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); cursor: pointer; animation: introFailsafe .4s 7s forwards; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
.intro-mark { position: absolute; left: 50%; top: 50%; width: 132px; height: auto; transform: translate(-50%, -60%); overflow: visible; transform-origin: 0 0; }
.intro-fill { opacity: 0; }
.intro-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-word { position: absolute; left: 50%; top: calc(50% + 40px); transform: translateX(-50%); margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .32em; padding-left: .32em; opacity: 0; }
.intro-ripples { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.intro-ripples i { position: absolute; left: 0; top: 0; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, var(--mauve), var(--lilac), var(--copper), var(--lilac), var(--mauve));
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); }

/* ───── NAV ───── */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: background .5s var(--ease), box-shadow .5s; }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; transition: height .5s var(--ease); }
.nav.solid { background: rgba(14, 12, 16, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.solid .nav-inner { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.mark { width: 30px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-links a { position: relative; text-decoration: none; font-size: 15px; color: var(--muted); transition: color .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--bg); background: var(--text); padding: 10px 18px; border-radius: 2px; font-weight: 500; }
.nav-links .nav-cta:hover { color: var(--bg); background: #FFFFFF; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; margin-left: auto; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ───── BOTONES ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 2px; border: 1px solid transparent; text-decoration: none; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #FFFFFF; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.i-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover .i-arrow, .svc-cta:hover .i-arrow { transform: translateX(4px); }

/* ───── HERO ───── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -18vmax; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(168, 111, 166, .16), rgba(168, 111, 166, .05) 55%, transparent 75%); }
.hero-lines { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); pointer-events: none; }
.hero-lines i { border-left: 1px solid rgba(236, 231, 238, .035); }
.hero-lines i:last-child { border-right: 1px solid rgba(236, 231, 238, .035); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; }
.eyebrow { margin: 0 0 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .sep { color: var(--mauve); margin: 0 6px; }
.hero-title { margin: 0; font-weight: 500; font-size: clamp(52px, 7.6vw, 120px); line-height: .94; letter-spacing: -0.045em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }
.hero-sub { margin: 30px 0 38px; max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hero-fallback { position: absolute; inset: 14%; width: 72%; height: auto; transition: opacity .8s; filter: drop-shadow(0 30px 60px rgba(168, 111, 166, .25)); }
.hero-visual.ready .hero-fallback { opacity: 0; }
.hero-shadow { position: absolute; left: 22%; right: 22%; bottom: 8%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(10px); z-index: -1; }
.hero-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; }
.hero-bar a { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 15px; color: var(--muted); transition: color .3s, border-color .3s; }
.hero-bar a + a { padding-left: 20px; }
.hero-bar a .mono { color: var(--dim); }
.hero-bar a:hover { color: var(--text); border-top-color: var(--mauve); }

/* ───── SECCIONES ───── */
.section { position: relative; padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--grad); }
.sec-head h2, .contact-copy h2 { margin: 0; font-weight: 500; font-size: clamp(36px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.04em; }
.sec-intro { margin: 0; max-width: 600px; color: var(--muted); font-size: 18px; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Estudio */
.studio-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lead { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.4; letter-spacing: -0.015em; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.principles li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.principles h3 { margin: 0 0 8px; font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* Servicios */
.svc { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc-tabs { position: sticky; top: 96px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-tabs button { position: relative; display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 18px 16px 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 17px; color: var(--muted); cursor: pointer; transition: color .3s, padding .5s var(--ease); }
.svc-tabs button .mono { color: var(--dim); transition: color .3s; }
.svc-tabs button::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-tabs button:hover { color: var(--text); }
.svc-tabs button[aria-selected="true"] { color: var(--text); padding-left: 12px; }
.svc-tabs button[aria-selected="true"] .mono { color: var(--lilac); }
.svc-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.svc-panels { min-width: 0; }
.svc-panel { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); }
.svc-panel + .svc-panel { margin-top: 20px; }
.js .svc-panel + .svc-panel { margin-top: 0; }
.svc-n { margin: 0 0 18px; color: var(--dim); }
.svc-panel h3 { margin: 0 0 16px; font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.svc-lead { margin: 0; max-width: 720px; font-size: 19px; color: #CFC7D3; }
.svc-meta { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin: 32px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.svc-meta dt, .svc-panel h4, .phase dt { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.svc-meta dd { margin: 0; font-size: 16px; }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.svc-panel h4 { margin-bottom: 14px; }
.svc-panel h4:not(:first-child) { margin-top: 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 2px; color: #D7D0DA; }
.svc-example { margin: 26px 0 0; padding: 18px 20px; background: var(--bg-3); border-left: 2px solid var(--mauve); font-size: 15px; color: #CFC7D3; }
.svc-example .mono { display: block; margin-bottom: 6px; color: var(--lilac); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.svc-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 500; transition: border-color .3s; }
.svc-cta:hover { border-color: var(--text); }

/* Método */
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method-head { position: sticky; top: 110px; margin-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 8px; width: 1px; height: calc((100% - 16px) * var(--p, 0)); background: linear-gradient(180deg, var(--lilac), var(--mauve), var(--copper)); }
.phase { position: relative; padding-bottom: 52px; }
.phase:last-child { padding-bottom: 0; }
.phase::before { content: ""; position: absolute; left: -39px; top: 8px; width: 11px; height: 11px; border: 1px solid var(--line-2); background: var(--bg); transition: background .5s, border-color .5s; }
.phase.lit::before { background: var(--mauve); border-color: var(--mauve); }
.phase-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.phase-n { color: var(--dim); }
.phase h3 { margin: 0; font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.phase-time { margin-left: auto; color: var(--lilac); }
.phase > p { margin: 0 0 18px; color: var(--muted); max-width: 600px; }
.phase dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.phase dd { margin: 0; font-size: 15px; }

/* Incluido */
.standards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.standards li { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.standards h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.standards h3::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.standards p { margin: 0; color: var(--muted); font-size: 16px; }

/* Formas de colaborar */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model { display: flex; flex-direction: column; gap: 14px; padding: 34px 30px 36px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .4s; }
.model:hover { border-color: var(--line-2); }
.model h3 { margin: 0; font-weight: 500; font-size: 26px; letter-spacing: -0.03em; }
.model-for { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--lilac); }
.model > p:not(.model-for) { margin: 0 0 8px; color: var(--muted); }
.model .checks { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { margin: 0; padding: 0 48px 28px 0; color: var(--muted); max-width: 640px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.next-steps { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.next-steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.next-steps .mono { color: var(--lilac); padding-top: 3px; }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(24px, 4vw, 44px); background: var(--bg-2); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg); outline: none; font-size: 16px; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lilac); }
.field .invalid { border-color: #E07A8B; }
.brief-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.budget { margin: 0; padding: 0; border: 0; }
.budget legend { padding: 0; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.budget-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.budget-opts label { position: relative; cursor: pointer; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.budget-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.budget-opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 14px; color: var(--muted); transition: border-color .3s, color .3s, background .3s; }
.budget-opts label:hover span { color: var(--text); border-color: var(--text); }
.budget-opts input:checked + span { color: var(--bg); background: var(--text); border-color: var(--text); }
.budget-opts input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.brief-msg { margin: 0; font-size: 15px; color: var(--lilac); }

/* Zona privada */
.vault { padding-block: 40px 120px; border-top: 1px solid var(--line); }
.vault-door { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; padding: 26px 28px; border: 1px solid var(--line); background: var(--bg-2); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.vault-door.opening { opacity: 0; transform: translateY(-10px); }
.vault-lock { width: 30px; height: 30px; color: var(--lilac); }
.vault-door h2 { margin: 0 0 2px; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.vault-door p { margin: 0; color: var(--muted); font-size: 15px; }
.vault-form { display: flex; gap: 10px; }
.vault-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg); outline: none; }
.vault-form input:focus { border-color: var(--lilac); }
.vault-msg { grid-column: 1 / -1; margin: 0; min-height: 0; font-size: 14px; color: #E07A8B; }
.vault-msg:empty { display: none; }
.vault-door.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.vault-content { animation: vaultIn 1s var(--ease) both; }
@keyframes vaultIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.vault-content .vault-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.vault-content h2 { margin: 0; font-weight: 500; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.04em; line-height: 1; }
.vault-content h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vault-content .vault-head p { margin: 0; max-width: 460px; color: var(--muted); }
.proto-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proto { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .4s; }
.proto:hover { border-color: var(--line-2); }
.proto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proto-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 28px; }
.proto-n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.proto-title { font-weight: 500; font-size: 28px; letter-spacing: -0.03em; }
.proto-text { color: var(--muted); font-size: 15px; }
.proto-cta { margin-top: 6px; color: var(--lilac); }
.vault-lockagain { display: block; margin: 24px 0 0; padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 14px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: 56px 48px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; color: var(--muted); width: fit-content; transition: color .3s; }
.footer-nav a:hover { color: var(--text); }
.footer-meta { display: grid; gap: 10px; justify-items: start; }
.footer-meta p { margin: 0; color: var(--dim); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-btn { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 2px; background: none; color: var(--muted); cursor: pointer; font-size: 14px; transition: color .3s, border-color .3s; }
.footer-btn:hover { color: var(--text); border-color: var(--text); }

/* ───── RESPONSIVE ───── */
@media (max-width: 1080px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 0; border-bottom: 1px solid var(--line); margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tabs button { flex: none; width: auto; padding: 14px 18px 14px 0; border-bottom: 0; margin-right: 8px; }
  .svc-tabs button[aria-selected="true"] { padding-left: 0; }
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 0 0 auto; padding: calc(84px + env(safe-area-inset-top, 0px)) var(--pad) 28px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(14, 12, 16, .98); transform: translateY(-105%); transition: transform .5s var(--ease); z-index: -1; border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links .nav-cta { margin-top: 18px; text-align: center; border: 0; }
  .nav.open .nav-links { transform: none; }
  .hero { padding-top: 96px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-visual { order: -1; max-width: 360px; justify-self: center; margin-bottom: -10px; }
  .hero-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .hero-bar a + a { padding-left: 0; }
  .hero-bar a:nth-child(even) { padding-left: 16px; }
  .studio-body, .method-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .method-head { position: static; margin-bottom: 40px; }
  .faq-grid .sec-head { margin-bottom: 20px; }
  .vault-door { grid-template-columns: auto minmax(0, 1fr); }
  .vault-form { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .eyebrow .sep, .eyebrow .coords { display: none; }
  .principles, .standards { grid-template-columns: minmax(0, 1fr); }
  .svc-meta, .svc-cols, .phase dl { grid-template-columns: minmax(0, 1fr); }
  .svc-meta { gap: 16px; }
  .brief { grid-template-columns: minmax(0, 1fr); }
  .proto-list { grid-template-columns: minmax(0, 1fr); }
  .vault-form { flex-direction: column; }
  .phase-time { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Formulario: campo trampa antispam y consentimiento */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lilac); }
.consent a { color: var(--text); }
.brief button[disabled] { opacity: .6; cursor: progress; }

/* Páginas sencillas: legales y 404 */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple-nav { border-bottom: 1px solid var(--line); }
.simple-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.simple-nav .brand .mark { width: 30px; height: auto; }
.simple-back { color: var(--muted); text-decoration: none; font-size: 15px; }
.simple-back:hover { color: var(--text); }
.simple-main { flex: 1; max-width: 820px; padding-block: clamp(48px, 8vw, 96px); }
.simple-main h1 { margin: 14px 0 8px; font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.simple-main h2 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -0.01em; font-weight: 600; }
.simple-main p, .simple-main li { color: var(--muted); }
.simple-main strong { color: var(--text); font-weight: 500; }
.simple-main a { color: var(--text); }
.simple-main .btn { color: var(--bg); text-decoration: none; }
.simple-meta { font-size: 13px; color: var(--dim) !important; }
.simple-404 { padding-block: 6vh; }
.simple-404 h1 { font-size: clamp(44px, 8vw, 88px); }
.simple-foot { border-top: 1px solid var(--line); padding-block: 28px; }
.simple-foot p { margin: 0; font-size: 13px; color: var(--dim); }
.simple-foot a { color: var(--muted); }

/* Selector de idioma */
.lang { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 2px; background: none; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: color .3s, border-color .3s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); border-color: var(--text); }
.lang-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .i-chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.lang-btn[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; margin: 0; padding: 6px; list-style: none; background: rgba(20, 17, 23, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); z-index: 5; }
.lang-menu[hidden] { display: none; }
.lang-menu a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 2px; color: var(--muted); text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.lang-menu a .mono { width: 22px; font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--bg-3); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--text); }
.lang-menu a[aria-current="true"]::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--grad); }

/* Barrido de color al cambiar de idioma */
.flush { position: fixed; inset: 0; z-index: 400; overflow: hidden; pointer-events: all; cursor: progress; }
.flush-band { position: absolute; top: -10%; bottom: -10%; left: -30%; right: -30%; transform: translateX(-135%) skewX(-14deg); will-change: transform; }
.flush-band.b1 { background: var(--lilac); }
.flush-band.b2 { background: var(--mauve); }
.flush-band.b3 { background: var(--copper); }
.flush-core { background: var(--bg); display: grid; place-items: center; }
.flush-label { display: flex; flex-direction: column; align-items: center; gap: 18px; transform: skewX(14deg); opacity: 0; }
.flush-label svg { width: clamp(72px, 9vw, 110px); height: auto; }
.flush-label span { font-family: var(--mono); font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--text); }
.nav-inner .lang { margin-left: -12px; }
@media (max-width: 1180px) { .nav-links { gap: 26px; } }
@media (max-width: 900px) {
  .nav-inner .lang { margin-left: auto; }
  .nav-inner .menu-btn { margin-left: 0; }
  .nav-inner { gap: 10px; }
}
