/* Estampa 3D · páginas de soporte y privacidad
   Dirección: taller claro, directo y cálido. Papel crema, tinta casi negra, azul del ícono y los tres colores del cubo. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fuentes/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --card: #ffffff;
  --ink: #14161c;
  --soft: #565b68;
  --line: #e2dfd5;
  --accent: #2f55d4;
  --accent-ink: #ffffff;
  --accent-soft: #e8edfd;
  --yellow: #ffc857;
  --orange: #ff7f3f;
  --pink: #f0436a;
  --tip: #fff1e6;
  --orange-ink: #a63e0a;
  --dots: rgba(47, 85, 212, .28);
  --display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d111c;
    --card: #151b2b;
    --ink: #eef0f6;
    --soft: #a6adc0;
    --line: #262e44;
    --accent: #8fa8ff;
    --accent-ink: #0b1020;
    --accent-soft: #1b2544;
    --tip: #2a1f1a;
    --orange-ink: #ff9a63;
    --dots: rgba(143, 168, 255, .22);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--text);
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Idioma ---------- */
html:not([data-lang]) [data-l="en"],
html[data-lang="es"] [data-l="en"],
html[data-lang="en"] [data-l="es"] { display: none; }

/* ---------- Estructura ---------- */
.inks { display: flex; height: 6px; }
.inks span { flex: 1; }
.inks span:nth-child(1) { background: var(--yellow); }
.inks span:nth-child(2) { background: var(--orange); }
.inks span:nth-child(3) { background: var(--pink); }
.inks span:nth-child(4) { background: #2f55d4; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 14px rgba(47, 85, 212, .3); }
.brand b { font: 700 19px/1 var(--display); letter-spacing: -.01em; display: block; }
.brand small { font-size: 13px; color: var(--soft); }

.lang { position: relative; display: inline-flex; align-items: center; }
.lang svg { position: absolute; left: 14px; pointer-events: none; color: var(--soft); }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: 600 16px/1 var(--text); color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--line); border-radius: 999px;
  min-height: 46px; padding: 0 40px 0 42px; cursor: pointer;
  transition: border-color .2s var(--ease);
}
.lang select:hover { border-color: var(--accent); }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 5vw, 64px); position: relative; overflow-x: clip; }
.hero-text { grid-column: 1 / span 7; position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 700 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink)); }
h1 { font: 800 clamp(40px, 7.6vw, 84px)/.97 var(--display); letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding: 0 .06em; }
@media (prefers-color-scheme: dark) { h1 em { background: linear-gradient(transparent 80%, var(--yellow) 80% 94%, transparent 94%); } }
.lead { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--soft); max-width: 31em; margin: 0 0 30px; }
.meta { font-size: 14px; color: var(--soft); margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font: 700 17px/1 var(--text); text-decoration: none; background: var(--accent); color: var(--accent-ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: 0 8px 22px -8px rgba(47, 85, 212, .6); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(47, 85, 212, .7); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn.sun { background: var(--yellow); color: #14161c; box-shadow: none; }

.hero-art { grid-column: 8 / span 5; position: relative; justify-self: end; width: min(100% - 28px, 380px); margin-right: 28px; aspect-ratio: 1; }
.hero-art::before { content: ""; position: absolute; inset: -14% -30% -14% -6%; background-image: radial-gradient(circle, var(--dots) 1.5px, transparent 1.8px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.hero-art img { position: relative; width: 100%; height: 100%; border-radius: 22%; transform: rotate(-7deg); box-shadow: 0 40px 70px -28px rgba(31, 49, 140, .6), 0 12px 24px -12px rgba(0, 0, 0, .3); }
.hero-art .chip-float { position: absolute; white-space: nowrap; font: 700 15px/1 var(--text); padding: 11px 16px; border-radius: 14px 14px 14px 3px; background: var(--card); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.chip-float.a { left: -14%; bottom: 14%; }
.chip-float.b { right: 0; top: 6%; border-radius: 14px 14px 3px 14px; }
.chip-float i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }

/* ---------- Índice ---------- */
.index { border-top: 1.5px solid var(--ink); margin-bottom: clamp(8px, 2vw, 24px); }
.index-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 8px; }
.index-head h2 { font: 800 clamp(26px, 4vw, 36px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.index-head span { color: var(--soft); font-size: 15px; }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .25s var(--ease), background .25s var(--ease); }
.index li:first-child a { border-top: 0; }
.index li a:hover { padding-left: 14px; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.index .n { font: 800 28px/1 var(--display); letter-spacing: -.02em; color: var(--accent); }
.index .t { font: 700 clamp(19px, 2.6vw, 24px)/1.25 var(--display); letter-spacing: -.01em; display: block; }
.index .h { color: var(--soft); font-size: 16px; display: block; margin-top: 2px; }
.index .go { font: 700 22px/1 var(--text); color: var(--soft); transition: transform .25s var(--ease), color .25s; }
.index li a:hover .go { transform: translateX(6px); color: var(--accent); }

/* ---------- Secciones con pasos ---------- */
.sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(24px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1.5px solid var(--ink); }
.sec-head { align-self: start; position: sticky; top: 24px; }
.sec-head .num { font: 800 clamp(64px, 9vw, 120px)/.85 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--accent); display: block; margin-bottom: 14px; }
.sec-head h2 { font: 800 clamp(28px, 3.6vw, 42px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 10px; text-wrap: balance; }
.sec-head p { color: var(--soft); font-size: 16px; margin: 0; }
.sec-body > *:first-child { margin-top: 0; }
.sec-body h3 { font: 700 20px/1.3 var(--display); letter-spacing: -.01em; margin: 34px 0 10px; }
.sec-body p { margin: 0 0 16px; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 22px 64px; margin: 0; min-height: 52px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; display: grid; place-items: center; font: 800 21px/1 var(--display); color: var(--cc, #14161c); background: var(--c, var(--yellow)); }
ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
ol.steps strong { font-weight: 700; }
.group { font: 700 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 26px 0 14px; }

.ui { display: inline; font: 700 .86em/1 var(--text); padding: .24em .6em .28em; border-radius: .55em; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.sums { list-style: none; padding: 0; margin: 0 0 20px; }
.sums li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.sums li:first-child { border-top: 0; }
.sums li::before { content: "+"; font: 800 22px/1.2 var(--display); color: var(--accent); }
.sums.ticks li::before { content: ""; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.tip { margin: 22px 0 0; padding: 18px 20px 18px 22px; background: var(--tip); border-left: 5px solid var(--orange); border-radius: 4px 20px 20px 4px; }
.tip b { display: block; font: 700 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 8px; }
.tip p { margin: 0; }

/* ---------- Preguntas rápidas ---------- */
.faq { border-top: 1.5px solid var(--ink); padding: clamp(36px, 5vw, 64px) 0 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(24px, 5vw, 72px); }
.faq h2 { font: 800 clamp(28px, 3.6vw, 42px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 20px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font: 700 clamp(18px, 2.2vw, 21px)/1.3 var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 22px/1 var(--text); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 4px 22px; color: var(--soft); max-width: 36em; }
details > div p { margin: 0 0 12px; }

/* ---------- Cierre ---------- */
.contact { margin: clamp(40px, 6vw, 80px) 0 0; background: #14161c; color: #f4f4f1; border-radius: 36px 36px 8px 36px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 40px; align-items: end; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 93 27 50 51 7 27z' fill='%23ffc857'/%3E%3Cpath d='M7 27 50 51v46L7 73z' fill='%23ff7f3f'/%3E%3Cpath d='M93 27 50 51v46l43-24z' fill='%23f0436a'/%3E%3C/svg%3E") center/contain no-repeat; transform: rotate(14deg); }
.contact h2 { font: 800 clamp(30px, 5vw, 56px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 14px; position: relative; z-index: 1; }
.contact p { margin: 0; color: #c9ccd6; position: relative; z-index: 1; max-width: 28em; }
.contact .actions { justify-content: flex-start; position: relative; z-index: 1; }
.contact .mail { display: block; margin-top: 14px; color: #f4f4f1; font-weight: 600; }

footer { padding: 36px 0 56px; color: var(--soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--soft); }

/* ---------- Privacidad ---------- */
.promises { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.promises li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); font: 700 clamp(21px, 3vw, 30px)/1.2 var(--display); letter-spacing: -.015em; margin: 0; }
.promises li::before { content: ""; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%2314161c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px no-repeat; }
.promises li:nth-child(2)::before { background-color: var(--orange); }
.promises li:nth-child(3)::before { background-color: var(--pink); }
.qa { margin-top: clamp(40px, 6vw, 88px); }
.qa-head { border-top: 1.5px solid var(--ink); padding: 18px 0 8px; }
.qa-head h2 { font: 800 clamp(26px, 4vw, 36px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.qa article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px clamp(24px, 5vw, 72px); padding: 28px 0; border-top: 1px solid var(--line); }
.qa article:first-of-type { border-top: 0; }
.qa h3 { font: 700 clamp(20px, 2.6vw, 25px)/1.2 var(--display); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.qa p { margin: 0 0 12px; max-width: 38em; }
.qa p:last-child { margin-bottom: 0; }

.note { margin: 22px 0 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--soft); max-width: 34em; }
@media (prefers-color-scheme: dark) { .contact { box-shadow: inset 0 0 0 1px var(--line); } }

/* ---------- Movimiento ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .index li a, .index .go, summary::after { transition: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .hero-text { grid-column: 1 / -1; }
  .hero-art { grid-column: 1 / -1; justify-self: start; width: 220px; margin: 32px 0 0 4px; }
  .chip-float.a { left: 58%; bottom: 4%; }
  .chip-float.b { right: auto; left: 50%; top: 2%; }
  .sec, .faq, .qa article, .contact { grid-template-columns: minmax(0, 1fr); }
  .sec-head { position: static; margin-bottom: 24px; }
  .sec-head .num { font-size: 72px; margin-bottom: 8px; }
  .faq h2 { margin-bottom: 8px; }
  .qa article { gap: 10px; }
  .contact::after { width: 92px; height: 92px; right: -20px; top: -20px; }
  .contact h2 { padding-right: 56px; }
  .index-head { flex-direction: column; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand small { display: none; }
  .index li a { grid-template-columns: 44px 1fr auto; gap: 10px; }
  ol.steps li { padding-left: 58px; }
  .btn { width: 100%; justify-content: center; }
  .actions { width: 100%; }
  .promises li { grid-template-columns: 44px 1fr; gap: 14px; }
}
@media print {
  .lang, .inks, .hero-art, .contact::after { display: none; }
  .js .rv { opacity: 1; transform: none; }
  .sec-head { position: static; }
}
