@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pen';
  src: url('/fonts/pen.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #14213d;
  --ink-soft: #2e3a55;
  --muted: #5b6474;
  --faint: #8a93a3;
  --line: #e6e8ec;
  --canvas: #f6f7f9;
  --free: #1e8e5a;
  --free-tint: #e7f4ed;
  --paper: #fff1a8;
  --paper-line: #e8d77a;
  --pen: #2b3a8f;
  --red-pen: #c0392b;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #0b1428; }
.btn-secondary { border-color: #cfd4db; color: var(--ink); background: #fff; }
.btn-secondary:hover { border-color: var(--ink-soft); background: var(--canvas); }
.top .btn { height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* ---------- Portada ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); margin: 22px 0 0; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* La hoja del portal y el móvil */
.scene { position: relative; min-height: 600px; }
.sheet {
  position: absolute; left: 0; top: 40px; width: 300px; padding: 34px 26px 30px;
  background: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--paper-line) 33px 34px);
  background-position: 0 66px;
  transform: rotate(-5deg);
  box-shadow: 0 1px 1px rgba(20,33,61,.08), 0 18px 30px -18px rgba(20,33,61,.35);
  font-family: 'Pen', 'Bradley Hand', cursive; color: var(--pen); font-size: 27px; line-height: 34px;
}
.sheet::before, .sheet::after {
  content: ''; position: absolute; top: -12px; width: 86px; height: 26px; background: rgba(255,255,255,.55);
  border: 1px solid rgba(20,33,61,.06); box-shadow: 0 1px 2px rgba(20,33,61,.08);
}
.sheet::before { left: 18px; transform: rotate(-8deg); }
.sheet::after { right: 18px; transform: rotate(7deg); }
.sheet h3 { font: inherit; font-size: 32px; margin: 0 0 6px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sheet p { margin: 0; white-space: nowrap; }
.sheet s { text-decoration-color: var(--red-pen); text-decoration-thickness: 2px; }
.sheet .red { color: var(--red-pen); }
.sheet .note { margin-top: 10px; transform: rotate(-2deg); }

.phone {
  position: absolute; right: 0; top: 0; width: 300px;
  border-radius: 44px; padding: 10px; background: #0b1428;
  box-shadow: 0 30px 60px -30px rgba(20,33,61,.55), 0 0 0 1px rgba(20,33,61,.1);
}
.phone img { border-radius: 35px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; }

@media (max-width: 960px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .scene { min-height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .scene { min-height: 520px; }
  .sheet { width: 238px; font-size: 22px; line-height: 30px; padding: 28px 18px 24px; top: 70px; background-image: repeating-linear-gradient(to bottom, transparent 0 29px, var(--paper-line) 29px 30px); }
  .sheet h3 { font-size: 26px; }
  .phone { width: 230px; border-radius: 36px; padding: 8px; }
  .sheet { z-index: 2; top: auto; bottom: 0; width: 210px; font-size: 20px; line-height: 27px; padding: 24px 16px 20px; background-image: repeating-linear-gradient(to bottom, transparent 0 26px, var(--paper-line) 26px 27px); background-position: 0 56px; }
  .sheet h3 { font-size: 24px; }
  .phone img { border-radius: 29px; }
}

/* ---------- Secciones ---------- */
section { padding: 88px 0; }
.alt { background: var(--canvas); }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; margin: 0; max-width: 20ch; }
.intro { color: var(--ink-soft); font-size: 19px; margin: 16px 0 0; max-width: 56ch; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: 300px minmax(0, 1fr); }
.feature.flip .shot { order: -1; }
.shot { border-radius: 36px; padding: 8px; background: #0b1428; box-shadow: 0 24px 50px -30px rgba(20,33,61,.5); }
.shot img { border-radius: 29px; width: 100%; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; max-width: 52ch; }
.points li { padding-left: 26px; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--free); }
.points strong { font-weight: 650; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .shot { order: 0; }
  .shot { width: 260px; justify-self: center; }
}

/* Lo que no tiene */
.without { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 40px; border-top: 1px solid var(--line); }
.without div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.without dt { font-weight: 650; font-size: 19px; }
.without dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 760px) { .without { grid-template-columns: 1fr; } }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; max-width: 880px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan h3 { margin: 0; font-size: 20px; font-weight: 650; }
.price { margin: 14px 0 4px; font-size: 48px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .who { color: var(--muted); margin: 6px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--free); border-bottom: 2px solid var(--free); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.tax { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Preguntas */
.faq { margin-top: 36px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 64ch; }

/* Llamada final y pie */
.closing { text-align: left; }
.closing .actions { margin-top: 28px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--ink-soft); }

/* ---------- Espacios (portada) ---------- */
.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 44px; }
.spaces a { display: flex; flex-direction: column; padding: 22px 0 8px; border-top: 2px solid var(--ink); text-decoration: none; }
.spaces h3 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.spaces p { margin: 8px 0 16px; color: var(--muted); }
.spaces .more { margin-top: auto; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.spaces a:hover .more { text-decoration-thickness: 2px; }
.spaces-note { margin-top: 28px; color: var(--muted); }
@media (max-width: 860px) { .spaces { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Precio resumido (páginas de espacio) ---------- */
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; margin-top: 28px; font-size: 19px; }
.price-line strong { font-weight: 650; }

/* ---------- Pie ---------- */
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .links a { text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
