/* {found} studio · foundstudio.cl
   Sistema visual oscuro y vibrante (rediseño v2, octubre 2026).
   Marca v10: navy #1F2A4A, crema #F2ECDF, lila #C586C0, Sora. Celeste #9CDCFE = color de código de la marca,
   usado solo para "encontrado / 200 OK". Sin fotos de terceros: solo capturas propias y de clientes. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-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: "Sora";
  src: url("../fonts/sora-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Sora Respaldo"; src: local("Arial"); size-adjust: 109%; ascent-override: 92%; descent-override: 27%; line-gap-override: 0%; }

:root {
  --noche: #0F1528;      /* fondo */
  --navy: #1F2A4A;       /* superficies */
  --navy-2: #2A3760;     /* superficies elevadas */
  --crema: #F2ECDF;      /* texto */
  --crema-2: #B9BFD0;    /* texto secundario (9:1 sobre noche) */
  --lila: #C586C0;       /* acción, llaves */
  --lila-2: #DCA9D7;
  --line: rgba(242, 236, 223, .12);
  --line-2: rgba(242, 236, 223, .22);
  --glow: 0 30px 70px -40px rgba(0, 0, 0, .9);

  --font: "Sora", "Sora Respaldo", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;

  --t-sm: 14px;
  --t-body: 17px;
  --t-lead: clamp(18px, 1.5vw, 21px);
  --t-h3: clamp(22px, 2vw, 28px);
  --t-h2: clamp(30px, 3.6vw, 48px);
  --t-h1: clamp(42px, 6.4vw, 96px);

  --m: clamp(18px, 3vw, 40px);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--noche); color: var(--crema);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* textura: luces de la marca y una trama de puntos, fijas detrás de todo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(197, 134, 192, .13), transparent 60%),
    radial-gradient(rgba(242, 236, 223, .05) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--noche);
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--lila); color: var(--noche); }
:focus-visible { outline: 3px solid var(--lila-2); outline-offset: 3px; border-radius: 6px; }
.b { color: var(--lila); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: var(--m); top: 12px; z-index: 100; background: var(--lila); color: var(--noche); padding: 12px 18px; font-weight: 700; border-radius: 99px; text-decoration: none; }
.soft { color: var(--crema-2); }
.wrap { width: min(1240px, 100%); margin: 0 auto; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lila); color: var(--noche); font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none;
  box-shadow: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: var(--lila-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(242, 236, 223, .06); color: var(--crema); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: rgba(242, 236, 223, .12); box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link { font-weight: 700; color: var(--crema); text-decoration: underline; text-decoration-color: var(--lila); text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--crema); }

/* ---------- barra superior ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--m);
  background: rgba(15, 21, 40, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: block; width: 132px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--crema-2); padding: 10px 0; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--crema); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lila); text-decoration-thickness: 2px; text-underline-offset: .5em; }
.menu-btn { display: none; }
.menu-panel { display: none; }
@media (max-width: 820px) {
  .wordmark { width: 112px; }
  .nav { gap: 8px; }
  .nav-links { display: none; }
  .hide-sm { display: none; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 0; background: rgba(242, 236, 223, .08); font-weight: 700; font-size: 15px; cursor: pointer; }
  .menu-panel[data-open] { display: grid; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; z-index: 50; background: var(--navy); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
  .menu-panel a { padding: 14px 0; font-size: 20px; font-weight: 700; text-decoration: none; }
  .menu-panel a + a { border-top: 1px solid var(--line); }
}

/* ---------- secciones ---------- */
.sec { padding: clamp(60px, 7vw, 100px) var(--m); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: var(--t-h2); }
.sec-head p { margin-top: 18px; font-size: var(--t-lead); color: var(--crema-2); max-width: 56ch; }

/* ---------- HERO ---------- */
.hero { padding: clamp(40px, 6vw, 88px) var(--m) clamp(70px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.04em; font-weight: 760; }
.hero h1 .l2 { display: block; color: var(--crema); }
.hero-lead { margin-top: 24px; font-size: var(--t-lead); color: var(--crema-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-sm); color: var(--crema-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lila); }

/* escenario: ventana de navegador + celular */
.stage { position: relative; padding: 0 0 70px 0; }
.win {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #121933; border: 1px solid var(--line-2); box-shadow: var(--glow), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.win-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #19213F; border-bottom: 1px solid var(--line); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A4672; }
.win-dots i { background: rgba(242, 236, 223, .22); }
.win-url { flex: 1; display: flex; align-items: center; gap: 8px; background: rgba(242, 236, 223, .06); border-radius: 99px; padding: 7px 14px; font-family: var(--mono); font-size: 13.5px; color: var(--crema); min-width: 0; overflow: hidden; white-space: nowrap; }
.win-url .caret { width: 2px; height: 1.1em; background: var(--lila); animation: blink 1s steps(1) infinite; }
.win-status { font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; transition: background-color .3s, color .3s; background: rgba(197, 134, 192, .18); color: var(--lila-2); }
.win[data-state="ok"] .win-status { background: rgba(242, 236, 223, .1); color: var(--crema); }
.win-body { position: relative; aspect-ratio: 16 / 10; }
.s404, .sok { position: absolute; inset: 0; }
.s404 { display: grid; place-content: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 45%, rgba(197, 134, 192, .16), transparent 60%); }
.s404 .code { position: relative; font-size: clamp(72px, 10vw, 150px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: var(--lila); }
.s404 .code::before, .s404 .code::after { content: attr(data-t); position: absolute; inset: 0; opacity: 0; }
.s404 .code::before { color: var(--crema); transform: translate(-3px, 0); clip-path: inset(0 0 55% 0); }
.s404 .code::after { color: var(--lila-2); transform: translate(3px, 0); clip-path: inset(60% 0 0 0); }
.s404 p { margin-top: 14px; font-family: var(--mono); font-size: 14px; color: var(--crema-2); }
.sok { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.sok img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.win[data-state="ok"] .sok { clip-path: inset(0 0 0 0); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lila); opacity: 0; }
.win[data-state="ok"] .scan { animation: scan 1.1s var(--ease) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .s404 .code::before { animation: glitch 2.4s infinite steps(1); }
  .s404 .code::after { animation: glitch 2.4s .3s infinite steps(1) reverse; }
}
@keyframes glitch { 0%, 86%, 100% { opacity: 0; transform: none; } 88% { opacity: .8; transform: translate(5px, -2px); } 92% { opacity: .8; transform: translate(-6px, 2px); } 95% { opacity: .6; transform: translate(3px, 0); } }

@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- servicios: tres tarjetas con pestaña web ---------- */
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.svc { display: flex; flex-direction: column; border-radius: 22px; padding: 12px; background: rgba(31, 42, 74, .45); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.svc:hover { border-color: rgba(197, 134, 192, .45); transform: translateY(-3px); }
.win-card { display: block; text-decoration: none; border-radius: 14px; box-shadow: none; }
.win-card .win-top { padding: 9px 12px; }
.win-card .win-url { font-size: 12px; padding: 5px 12px; }
.win-card .win-dots i { width: 9px; height: 9px; }
.win-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; }
.svc-body { padding: 20px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.svc .lead { margin-top: 6px; font-size: 15.5px; color: var(--crema-2); }
.svc ul { margin: 16px 0 0; display: grid; gap: 6px; font-size: 15px; }
.svc li { position: relative; padding-left: 22px; }
.svc li::before { content: "✓"; position: absolute; left: 2px; color: var(--lila-2); font-size: 13px; top: 1px; }
.svc-meta { margin-top: 16px; font-size: 13.5px; color: var(--crema-2); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 18px; }
.svc-actions .link { font-size: 15px; font-weight: 600; }
@media (max-width: 980px) { .svc-list { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ---------- trabajo real ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.case { text-decoration: none; display: block; }
.case-stage { position: relative; }
.case .win { transition: transform .35s var(--ease); }
.case:hover .win, .case:focus-visible .win { transform: translateY(-6px); }
.case .win-body { aspect-ratio: 16 / 10; }
.case .win-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.case h3 { margin-top: 16px; font-size: 20px; }
.case p { color: var(--crema-2); margin-top: 4px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }

/* ---------- pasos (secuencia real) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: paso; position: relative; text-align: center; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 28px; height: 2px; background: var(--lila); opacity: .3; }
.steps li { position: relative; counter-increment: paso; padding: 76px 10px 18px; border-radius: 20px; transition: background-color .3s var(--ease), transform .3s var(--ease); cursor: default; outline: none; }
.steps li::before { content: counter(paso); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--lila); font-weight: 800; font-size: 20px; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.steps li:hover, .steps li:focus-visible, .steps li.is-on { background: rgba(31, 42, 74, .55); transform: translateY(-4px); }
.steps li:hover::before, .steps li:focus-visible::before, .steps li.is-on::before { background: var(--lila); color: var(--noche); transform: translateX(-50%) scale(1.12) rotate(-6deg); }
.steps h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--crema-2); font-size: 16px; max-width: 30ch; margin: 0 auto; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .steps::before { left: 37px; right: auto; top: 44px; bottom: 44px; width: 2px; height: auto; background: var(--lila); opacity: .3; }
  .steps li { padding: 16px 12px 16px 86px; min-height: 88px; }
  .steps li::before { top: 16px; left: 10px; transform: none; }
  .steps li:hover::before, .steps li:focus-visible::before, .steps li.is-on::before { transform: scale(1.1) rotate(-6deg); }
  .steps p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .steps li, .steps li::before { transition: none; } .steps li:hover, .steps li.is-on { transform: none; } }

/* ---------- sección del asistente ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ai h2 { font-size: var(--t-h2); }
.ai .lead { margin-top: 18px; font-size: var(--t-lead); color: var(--crema-2); max-width: 44ch; }
.ai ul { margin-top: 24px; display: grid; gap: 10px; }
.ai li { display: flex; gap: 12px; align-items: baseline; }
.ai li::before { content: "✓"; color: var(--lila-2); font-weight: 700; }
@media (max-width: 960px) { .ai { grid-template-columns: 1fr; } }

/* ---------- preguntas ---------- */
.faq { max-width: 880px; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: rgba(31, 42, 74, .55); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: rgba(197, 134, 192, .5); background: rgba(31, 42, 74, .85); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--lila); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--crema-2); max-width: 70ch; }

/* ---------- llamado final ---------- */
.final {
  position: relative; border-radius: 32px; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); overflow: hidden; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(197, 134, 192, .25), transparent 70%), linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line-2);
}
.final h2 { font-size: var(--t-h2); }
.final p { margin: 18px auto 0; color: var(--crema-2); font-size: var(--t-lead); max-width: 46ch; }
.final .hero-cta { justify-content: center; }

/* ---------- pie ---------- */
.foot { padding: 64px var(--m) 32px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot-logo { width: 150px; }
.foot-slogan { margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.foot h2 { font-size: 15px; letter-spacing: 0; color: var(--crema-2); font-weight: 600; margin-bottom: 12px; }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--lila-2); }
.foot-legal { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--t-sm); color: var(--crema-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- páginas interiores ---------- */
.page-head { padding: clamp(56px, 7vw, 100px) var(--m) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: var(--t-h1); }
.page-head p { margin-top: 20px; font-size: var(--t-lead); color: var(--crema-2); max-width: 52ch; }

/* ejemplos */
.ex-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.ex-tabs button { min-height: 46px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(242, 236, 223, .04); font-weight: 700; font-size: 15.5px; cursor: pointer; color: var(--crema-2); transition: all .2s; }
.ex-tabs button:hover { color: var(--crema); border-color: var(--crema-2); }
.ex-tabs button[aria-selected="true"] { background: var(--lila); color: var(--noche); border-color: var(--lila); }
.ex-stage { display: grid; justify-items: center; gap: 18px; }
.phone { width: min(390px, 100%); border-radius: 40px; padding: 7px; background: linear-gradient(145deg, #D9DCE6, #8E95AD 45%, #C9CDD9); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9); position: relative; }
.phone-screen { height: min(720px, 76svh); overflow: auto; overscroll-behavior: contain; border-radius: 33px; position: relative; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.ex-note { font-size: var(--t-sm); color: var(--crema-2); text-align: center; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* contacto */
.form-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.side { display: grid; gap: 16px; }
.card { border-radius: 24px; padding: clamp(24px, 3vw, 36px); background: rgba(31, 42, 74, .65); border: 1px solid var(--line); }
.card h2 { font-size: var(--t-h3); margin-bottom: 10px; }
.card p { color: var(--crema-2); margin-bottom: 20px; }
.card .btn { width: 100%; }
.card dl { margin-top: 24px; display: grid; gap: 12px; font-size: 16px; }
.card dt { color: var(--crema-2); font-size: var(--t-sm); }
.card dd a { font-weight: 600; }
form.full { border-radius: 24px; padding: clamp(24px, 3vw, 40px); background: rgba(31, 42, 74, .65); border: 1px solid var(--line); }
form.full h2 { font-size: var(--t-h3); margin-bottom: 6px; }
form.full .lead { margin-bottom: 26px; color: var(--crema-2); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field label small { font-weight: 400; color: var(--crema-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid #4A5680; background: rgba(15, 21, 40, .7);
  padding: 12px 14px; font-size: 16.5px; color: var(--crema);
}
.field select option { background: var(--navy); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8D94AB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lila); box-shadow: 0 0 0 4px rgba(197, 134, 192, .18); }
.field [aria-invalid="true"] { border-color: #FF8A80; }
.err { color: #FFB4AB; font-size: 14.5px; margin-top: 6px; font-weight: 600; }
.err:empty { display: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; margin: 8px 0 22px; color: var(--crema-2); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lila); }
.consent a { color: var(--crema); }
.botcheck { display: none !important; }
.status { margin-top: 18px; font-weight: 600; border-radius: 14px; }
.status[data-kind="ok"] { background: rgba(242, 236, 223, .08); border: 1px solid var(--line-2); padding: 16px 18px; }
.status[data-kind="error"] { background: rgba(197, 134, 192, .16); border: 1px solid rgba(197, 134, 192, .6); padding: 16px 18px; }
.status a { color: var(--crema); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } form.full .btn { width: 100%; } }

/* textos legales */
.legal-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.legal-toc { font-size: 15px; position: sticky; top: 100px; align-self: start; }
.legal-toc li + li { margin-top: 8px; }
.legal-toc a { text-decoration: none; color: var(--crema-2); font-weight: 600; }
.legal-toc a:hover { color: var(--crema); }
.legal-text { max-width: 66ch; font-size: 17px; line-height: 1.7; }
.legal-text section + section { margin-top: 52px; }
.legal-text h2 { font-size: var(--t-h3); margin-bottom: 14px; }
.legal-text p + p, .legal-text p + ul, .legal-text ul + p { margin-top: 14px; }
.legal-text ul { list-style: disc; padding-left: 22px; }
.legal-text li + li { margin-top: 6px; }
.legal-table { overflow-x: auto; }
.legal-text table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 14px; }
.legal-text th, .legal-text td { text-align: left; padding: 10px 10px 10px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-text .rights { display: grid; gap: 10px; margin: 14px 0; }
.legal-text .rights div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.legal-text .rights dt { font-weight: 700; }
.legal-text .rights-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 20px; border-radius: 20px; padding: 24px; background: rgba(31, 42, 74, .65); border: 1px solid var(--line); }
.legal-text .rights-form .field-wide, .legal-text .rights-form .form-foot { grid-column: 1 / -1; }
.legal-date { margin-top: 14px !important; font-size: var(--t-sm) !important; }
@media (max-width: 860px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-text .rights-form { grid-template-columns: 1fr; }
  .legal-text .rights div { grid-template-columns: 1fr; gap: 0; }
}

/* página 404 */
.nf { min-height: calc(100svh - 80px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--m); padding: 40px var(--m); }
.nf h1 { font-size: clamp(110px, 16vw, 240px); line-height: .85; letter-spacing: -0.06em; color: var(--lila); }
.nf p { font-size: var(--t-lead); color: var(--crema-2); margin: 20px 0 30px; max-width: 32ch; }
.nf video { width: min(480px, 100%); aspect-ratio: 1; justify-self: center; border-radius: 28px; box-shadow: var(--glow); }
@media (max-width: 860px) { .nf { grid-template-columns: 1fr; } }

/* ============ ASISTENTE (chat guiado) ============ */
.chat {
  display: flex; flex-direction: column; height: min(620px, 80svh); border-radius: 24px; overflow: hidden;
  background: #151C35; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  font-size: 14.5px; letter-spacing: -0.012em; -webkit-font-smoothing: antialiased;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(31, 42, 74, .35); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex: none; }
.chat-avatar img { width: 26px; }
.chat-who { flex: 1; min-width: 0; line-height: 1.3; }
.chat-who strong { display: block; font-size: 14.5px; font-weight: 600; }
.chat-who span { font-size: 12.5px; color: var(--crema-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.chat-who span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #98C379; }
.chat-icon { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--crema-2); transition: background-color .15s, color .15s; }
.chat-icon:hover { background: rgba(242, 236, 223, .08); color: var(--crema); }
.chat-icon svg { width: 17px; height: 17px; }
.chat-log { flex: 1; min-height: 0; position: relative; overflow-y: auto; padding: 20px 18px 10px; display: flex; flex-direction: column; gap: 8px; }
.chat-log > * { flex: none; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; font-weight: 400; animation: pop .28s var(--ease); }
.msg-bot { align-self: flex-start; background: rgba(42, 55, 96, .7); color: #E9E4D8; border-bottom-left-radius: 5px; }
.msg-me { align-self: flex-end; background: rgba(197, 134, 192, .2); color: var(--crema); border: 1px solid rgba(197, 134, 192, .35); border-bottom-right-radius: 5px; margin: 4px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 16px; border-bottom-left-radius: 5px; background: rgba(42, 55, 96, .7); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--crema-2); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-3px); } }
.chat-opts { padding: 10px 14px 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; max-height: 46%; overflow-y: auto; }
.chat-opts:empty { display: none; }
.opt { min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(242, 236, 223, .03); color: var(--crema); font-weight: 500; font-size: 13px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.opt[hidden] { display: none; }
.opt-mas { border-style: dashed; color: var(--lila-2); }
.opt-quiet { border-color: transparent; background: none; color: var(--crema-2, var(--crema)); opacity: .7; }
.opt-quiet:hover { opacity: 1; }
.opt:hover { background: rgba(197, 134, 192, .12); border-color: rgba(197, 134, 192, .6); }
.opt[aria-pressed="true"] { background: rgba(197, 134, 192, .22); border-color: var(--lila); color: var(--crema); }
.opt[aria-pressed="true"]::before { content: "✓ "; color: var(--lila-2); }
.opt-go { background: var(--lila); color: var(--noche); border-color: var(--lila); font-weight: 600; }
.opt-go:hover { background: var(--lila-2); border-color: var(--lila-2); }
.opt-go:disabled { opacity: .4; cursor: not-allowed; }
.chat-text { display: flex; gap: 6px; width: 100%; }
.chat-text input { flex: 1; min-width: 0; min-height: 40px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(15, 21, 40, .6); padding: 0 14px; font-size: 14.5px; }
.chat-text input:focus { outline: none; border-color: var(--lila); }
.estimate { align-self: stretch; border-radius: 18px; padding: 18px; margin-top: 6px; background: rgba(31, 42, 74, .8); border: 1px solid var(--line-2); animation: pop .4s var(--ease); }
.estimate small { display: block; font-size: 12.5px; color: var(--crema-2); font-weight: 400; }
.estimate .range { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--crema); line-height: 1.2; margin: 4px 0 2px; }
.estimate .plazo { font-size: 13.5px; color: var(--crema-2); font-weight: 400; }
.estimate ul { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 5px; font-size: 13.5px; color: #E9E4D8; }
.estimate li { padding-left: 18px; position: relative; }
.estimate li::before { content: "✓"; position: absolute; left: 0; color: var(--lila-2); font-size: 12px; top: 1px; }
.estimate .fine { font-size: 12.5px; color: var(--crema-2); margin-bottom: 14px; line-height: 1.5; }
.estimate .btns { display: grid; gap: 8px; }
.estimate .btn { width: 100%; min-height: 44px; font-size: 14.5px; font-weight: 600; }

/* botón flotante y panel */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 8px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--lila); color: var(--noche); font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9);
  transition: transform .2s var(--ease), opacity .2s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .fab-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--noche); display: grid; place-items: center; }
.chat-fab .fab-ic img { width: 30px; }
.chat-fab[hidden] { display: none; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(400px, calc(100vw - 24px)); }
.chat-panel[hidden] { display: none; }
.chat-panel .chat { height: min(640px, calc(100svh - 36px)); }
.chat-panel .chat-log, .chat-panel .chat-opts { overscroll-behavior: contain; }
@media (max-width: 520px) {
  html.chat-abierto, html.chat-abierto body { overflow: hidden; }
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; }
  .chat-panel .chat { height: 100svh; height: 100dvh; border-radius: 0; }
  [data-asistente].chat { height: min(560px, 72svh); }
  .chat-fab { right: 12px; bottom: 12px; padding: 0 7px; min-height: 58px; }
  .chat-fab .fab-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .estimate { animation: none; }
  .typing i { animation: none; opacity: .7; }
}

/* ajustes de páginas interiores */
.page-head-center { text-align: center; }
.page-head-center p { margin-left: auto; margin-right: auto; }
.sec-tight { padding-top: 8px; }
.steps-plain::before { opacity: .35; }

/* ---------- próximamente: tu negocio ---------- */
.cases-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-soon .win { border: 1.5px dashed rgba(197, 134, 192, .55); background: rgba(31, 42, 74, .35); }
.case-soon .win-body { display: grid; place-content: center; text-align: center; gap: 14px; padding: 20px; }
.case-soon .soon-mark { font-size: clamp(40px, 4vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.case-soon .win-body .btn { justify-self: center; }
@media (max-width: 1000px) { .cases-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cases-3 { grid-template-columns: 1fr; } }

/* ---------- lo que te vamos a pedir: carpeta + documento ---------- */
.brief { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.brief-copy h2 { font-size: var(--t-h2); }
.brief-copy p { margin-top: 16px; font-size: var(--t-lead); color: var(--crema-2); max-width: 40ch; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.folder { position: relative; display: block; justify-self: center; width: min(340px, 82%); aspect-ratio: 340 / 260; text-decoration: none; cursor: pointer; }
.folder-back, .folder-front { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.folder-back path { fill: #3B3157; }
.folder-front path { fill: var(--lila); }
.folder-front { transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.folder-paper { position: absolute; left: 11%; right: 11%; top: 18%; height: 52%; border-radius: 8px; background: #FFFDF8; padding: 16px 18px; display: grid; align-content: start; gap: 9px; transition: transform .45s var(--ease); box-shadow: 0 -2px 12px rgba(0, 0, 0, .12); }
.folder-paper b { color: var(--navy); font-size: 14px; font-weight: 600; }
.folder-paper i { display: block; height: 7px; border-radius: 4px; background: #E4DED0; }
.folder-paper i:nth-of-type(2) { width: 80%; } .folder-paper i:nth-of-type(4) { width: 60%; }
.folder:hover .folder-paper, .folder:focus-visible .folder-paper { transform: translateY(-16%); }
.folder:hover .folder-front, .folder:focus-visible .folder-front { transform: perspective(800px) rotateX(-12deg); }
@media (prefers-reduced-motion: reduce) { .folder-paper, .folder-front { transition: none; } }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } .folder { width: min(300px, 80%); } }

/* ---------- pie: logo y slogan lado a lado ---------- */
.foot-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand .foot-logo { width: 170px; }
.foot-brand .foot-slogan-img { width: clamp(200px, 26vw, 300px); }
.foot-grid-2 { grid-template-columns: 1fr 1fr; max-width: 640px; }
.stage { padding: 0; }
@media (max-width: 960px) { .stage { margin: 8px 0 0; } }
@media (max-width: 520px) {
  .foot-brand { flex-wrap: nowrap; gap: 20px; }
  .foot-brand .foot-logo { width: 118px; }
  .foot-brand .foot-slogan-img { width: 170px; }
}

/* ejemplo interactivo dentro de una ventana de navegador */
.win-demo { width: min(1000px, 100%); }
.win-demo .win-status { background: rgba(242, 236, 223, .08); color: var(--crema-2); font-family: var(--font); font-weight: 500; }
.win-demo .phone-screen { height: min(640px, 70svh); border-radius: 0; overflow: auto; scrollbar-width: thin; }
@media (max-width: 600px) { .win-demo .win-status { display: none; } .win-demo .phone-screen { height: 70svh; } }

/* la portada nunca más ancha que la pantalla (Android con texto agrandado) */
.hero-grid > *, .stage, .win, .win-top { min-width: 0; max-width: 100%; }
.win-dots, .win-status { flex: none; }
@media (max-width: 340px) { .win .win-status { display: none; } }

.svc, .svc-body, .case, .cases > * { min-width: 0; }
@media (max-width: 360px) {
  .bar { padding: 12px; gap: 8px; }
  .wordmark { width: 92px; }
  .menu-btn { padding: 0 10px; font-size: 14px; }
  .nav .btn-sm { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 520px) {
  .foot-brand { gap: 14px; }
  .foot-brand .foot-logo { width: 38%; max-width: 118px; flex: none; }
  .foot-brand .foot-slogan-img { width: 56%; max-width: 170px; flex: none; }
}
@media (max-width: 860px) { .legal-body { grid-template-columns: minmax(0, 1fr); } .legal-toc, .legal-text { min-width: 0; overflow-wrap: anywhere; } }
