/* Estilos comunes de las páginas de la landing (guías). Copiados de index.html, que mantiene los suyos en línea. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --brand-50: #f5f3ff; --brand-100: #ede9fe; --brand-200: #ddd6fe; --brand-300: #c4b5fd;
  --brand-400: #a78bfa; --brand-500: #7c3aed; --brand-600: #5b21b6; --brand-700: #4c1d95;
  --brand-900: #2e1065; --brand-950: #1e0a45;
  --ink-100: #e7e3ef; --ink-200: #cdc6dc; --ink-300: #b0a7c4; --ink-400: #8d82a5; --ink-500: #6d6285;
  --ink-600: #4d4266; --ink-700: #372e4d; --ink-800: #261f38; --ink-900: #1a1428; --ink-950: #110d1b;
  --canvas: #faf9fc;
  --emerald: #059669; --amber: #d97706; --amber-bg: #fef3c7; --sky: #0284c7; --sky-bg: #e0f2fe;
  --font-sans: 'Segoe UI Variable Text', 'Segoe UI', Roboto, ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink-900); background: var(--canvas);
  -webkit-font-smoothing: antialiased; line-height: 1.55;
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }

/* Logo */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .trays { width: 30px; height: 30px; color: var(--brand-400); }
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 24px; display: inline-flex; align-items: baseline; color: #fff; }
.wordmark svg { width: .56em; height: .56em; margin-left: .03em; }

/* Encabezado */
header.top { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-200); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 16px; } }

/* Títulos de sección */
.kicker { color: var(--brand-600); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 10px 0 14px; }
.sub { font-size: 18px; color: var(--ink-600); max-width: 40em; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 22px; }
.card .ico { color: var(--brand-600); width: 24px; height: 24px; }
.card h3 { font-size: 17px; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--ink-600); font-size: 15px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* Pie */
footer { background: var(--ink-950); color: var(--ink-400); padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer .wordmark { font-size: 20px; }
footer a { color: var(--ink-300); text-decoration: none; }
footer a:hover { color: #fff; }

/* Páginas de guías */
header.top.solid { position: static; background: var(--ink-950); }
.guide-head { background: var(--ink-950); color: #fff; padding: 48px 0 56px; }
.guide-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 10px 0 14px; max-width: 22em; }
.guide-head .sub { color: var(--ink-300); }
.guide-head .kicker { color: var(--brand-300); }
.guide-head .kicker a { text-decoration: none; }
.guide { max-width: 70ch; margin: 0 auto; padding: 56px 20px 80px; font-size: 17px; }
.guide-head:has(+ .guide) .wrap { max-width: 70ch; font-size: 17px; } /* en las guías, el encabezado va en la misma columna que el texto */
.guide h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 12px; }
.guide h3 { font-size: 19px; margin: 28px 0 8px; }
.guide p, .guide li { color: var(--ink-700); }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li { margin: 6px 0; }
.guide img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--ink-100); margin: 24px 0 8px; }
.guide figure { margin: 0; }
.guide figcaption { font-size: 14px; color: var(--ink-500); text-align: center; }
.guide .note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.guide .cta { background: var(--ink-950); color: #fff; border-radius: var(--radius); padding: 28px; margin-top: 48px; text-align: center; }
.guide .cta p { color: var(--ink-300); margin: 0 0 18px; }
.guide .cta h2 { color: #fff; margin-top: 0; }
.guide-list .card { text-decoration: none; display: block; transition: border-color .15s; }
.guide-list .card:hover { border-color: var(--brand-300); }
.guide-list .card h2 { font-size: 20px; margin: 0 0 8px; }
.guide-list { padding: 56px 20px 80px; }
.guide-list .grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
@media (max-width: 700px) { .guide-list .grid { grid-template-columns: 1fr; } }

/* Herramientas */
.tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding-top: 40px; align-items: start; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }
.tool-form, .tool-result { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--ink-700); flex: 1; min-width: 0; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink-900); padding: 11px 12px; border: 1px solid var(--ink-200); border-radius: 10px; background: #fff; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-500); outline-offset: 0; border-color: transparent; }
.field-row { display: flex; gap: 12px; }
.field-row .country { flex: 0 0 42%; }
@media (max-width: 520px) { .field-row { flex-direction: column; gap: 0; } .field-row .country { flex: 1; } }
.hint { font-size: 13px; color: var(--ink-500); margin: -8px 0 16px; }
.hint.warn { color: var(--amber); margin: -8px 0 12px; }
.result-empty { color: var(--ink-500); margin: 0 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn, .qr .btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-outline { background: #fff; color: var(--brand-700); border: 1px solid var(--brand-200) !important; }
.btn-outline:hover { border-color: var(--brand-400) !important; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ink-100); }
.qr canvas { width: 220px; height: 220px; image-rendering: pixelated; }
.privacy { font-size: 13px; color: var(--ink-500); margin: 16px 0 0; }
.guide code { background: var(--brand-50); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
@media (max-width: 420px) { .lockup .trays { width: 26px; height: 26px; } .lockup .wordmark { font-size: 21px; } .nav-links { gap: 14px; } .nav-links a { font-size: 14px; } .nav-links .btn { white-space: nowrap; padding: 8px 14px; } }

/* Calculadora */
.calc-field small { font-weight: 400; color: var(--ink-500); font-size: 13px; }
.input-unit { display: flex; align-items: center; border: 1px solid var(--ink-200); border-radius: 10px; background: #fff; }
.input-unit:focus-within { outline: 2px solid var(--brand-500); border-color: transparent; }
.input-unit input { border: 0 !important; outline: none !important; min-width: 0; }
.input-unit .unit { padding: 0 12px 0 0; color: var(--ink-500); font-weight: 400; white-space: nowrap; }
.input-unit .unit.pre { padding: 0 0 0 12px; }
.example-note { margin: 0 0 18px; background: var(--brand-50); border-radius: 8px; padding: 8px 12px; color: var(--ink-600); }
.calc-result { text-align: center; position: sticky; top: 20px; }
.result-label { color: var(--ink-600); margin: 0; }
.result-big { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; color: var(--brand-700); margin: 6px 0 0; line-height: 1.1; overflow-wrap: anywhere; }
.result-per { margin: 2px 0 18px; color: var(--ink-500); }
.result-list { margin: 0 0 18px; text-align: left; border-top: 1px solid var(--ink-100); }
.result-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: 15px; }
.result-list dt { color: var(--ink-600); }
.result-list dd { margin: 0; font-weight: 600; text-align: right; }
.payback { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 10px; padding: 12px 14px; color: var(--ink-700); font-size: 15px; margin: 0 0 18px; }
.payback:empty { display: none; }
@media (max-width: 860px) { .calc-result { position: static; } }
