@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Paleta de marca: tinta, crema, oliva (acento) y sakura (solo en el logo y matices). */
:root {
  --bg: #fbfaf7;
  --surface: #f1efe8;
  --text: #2e2a24;
  --muted: #5d574e;
  --line: #e2ded3;
  --accent: #55612b;
  --accent-ink: #fbfaf7;
  --accent-soft: #e6ead8;
  --tint: #f8e3e9;
  --code-bg: #2e2a24;
  --code-text: #f3ead8;
  --code-key: #c9d39f;
  --code-str: #f2b8c6;
  --code-num: #e6c88a;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1b18;
    --surface: #26231f;
    --text: #efe9dc;
    --muted: #b3ab9c;
    --line: #3a362f;
    --accent: #a9b873;
    --accent-ink: #1d1b18;
    --accent-soft: #2f3322;
    --tint: #3a2a2f;
    --code-bg: #141210;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Navegación */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 767px) { .nav-links a:not(.btn) { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* Hero */
.hero { padding: 56px 0 72px; }
@media (min-width: 1024px) { .hero { padding: 80px 0 96px; } }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 48px; } }
h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 20px; max-width: 18ch;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Muestra JSON real */
.sample { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(46, 42, 36, .55); }
.sample-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: .82rem; color: #c9c0ae; border-bottom: 1px solid #45403a; }
.sample pre { margin: 0; padding: 18px; overflow-x: auto; font-family: "Geist Mono", ui-monospace, monospace; font-size: .8rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.k { color: var(--code-key); } .s { color: var(--code-str); } .n { color: var(--code-num); } .c { color: #9a9182; }
@media (prefers-reduced-motion: no-preference) {
  .sample { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* Secciones */
section { padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 96px 0; } }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 16px; max-width: 22ch; }
.intro { color: var(--muted); max-width: 62ch; margin: 0 0 40px; }

/* Por qué: rejilla 2x2 con una celda destacada */
.why { background: var(--surface); }
.grid-why { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-why { grid-template-columns: 1.3fr 1fr; } }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); }
.tile-feature { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile-feature p { color: var(--accent-ink); opacity: .9; }
@media (min-width: 768px) { .tile-feature { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; } .tile-feature h3 { font-size: 1.5rem; } }
.tile-tint { background: var(--tint); border-color: var(--tint); }

/* Planes */
.plans { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.4fr 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan-main { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 1.25rem; }
.price { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.today { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--accent-soft); border-radius: var(--radius); padding: 18px 24px; }
.today p { margin: 0; max-width: 60ch; }

/* Reserva */
.reserve { background: var(--surface); }
.reserve .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .reserve .wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.reserve ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 10px; }
.reserve ol strong { color: var(--text); }

/* Preguntas */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "-"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 65ch; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer p { margin: 0; max-width: 60ch; }
footer nav { display: flex; gap: 20px; }

/* Página legal */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2rem; max-width: none; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; max-width: none; }
.legal p, .legal li { color: var(--muted); }
