/* Studio — landing + checkout. Paleta y tipo pensados para cambiar de marca
   sin reescribir layout: el nombre vive en js/config.js. */
:root {
  --bg: #f4efe8;
  --bg-elev: #fffdf9;
  --ink: #1c1916;
  --ink-soft: #5c564e;
  --line: #d9d0c4;
  --line-strong: #c8bdae;
  --accent: #c45c26;
  --accent-ink: #9a4318;
  --accent-soft: #f3d9c8;
  --demo: #c45c26;
  --ok: #2a6b45;
  --ok-soft: #dceee3;
  --warn: #8a5a12;
  --warn-soft: #f6e6c8;
  --err: #9b2c2c;
  --err-soft: #f8dede;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.05), 0 12px 32px rgba(28, 25, 22, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: 12px; top: -40px;
  background: var(--ink); color: var(--bg-elev); padding: 8px 12px; z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--bg-elev) !important;
  padding: 8px 14px; border-radius: 999px; font-weight: 500;
}
.nav-cta:hover { background: var(--accent-ink); color: #fff !important; }

.hero { padding: 72px 0 48px; }
.hero-lead { max-width: 38rem; }
.kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px;
}
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg-elev);
  padding: 12px 18px; border-radius: 999px;
  font: 550 0.95rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--line-strong); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

section { padding: 64px 0; }
section.alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 36rem; }
.section-head p { color: var(--ink-soft); }

.pricing { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--ink); }
.price-card h3 { margin: 0; }
.price {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price small { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); letter-spacing: 0; }
.price-card ul { margin: 8px 0 16px; padding: 0; list-style: none; flex: 1; }
.price-card li {
  position: relative; padding: 6px 0 6px 18px;
  color: var(--ink-soft); font-size: 0.98rem;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 8px; height: 1px; background: var(--accent);
}

.muestras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .muestras-grid { grid-template-columns: repeat(12, 1fr); }
  .muestra.span-7 { grid-column: span 7; }
  .muestra.span-5 { grid-column: span 5; }
  .muestra.span-6 { grid-column: span 6; }
  .muestra.span-4 { grid-column: span 4; }
}
.muestra {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.muestra .frame {
  position: relative;
  background: #e8dfd4;
  overflow: hidden;
}
.muestra img, .muestra .frame svg { width: 100%; height: auto; }
.muestra .frame.ratio-43 { aspect-ratio: 4 / 3; }
.muestra .frame.ratio-916 { aspect-ratio: 9 / 16; }
.muestra .frame img, .muestra .frame object, .muestra .frame svg {
  width: 100%; height: 100%; object-fit: cover;
}
.badge-demo {
  position: absolute; top: 12px; left: 12px;
  background: var(--demo); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 2px;
  z-index: 1;
}
.muestra figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.muestra figcaption strong { color: var(--ink); font-weight: 550; }

.steps { display: grid; gap: 18px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 8px 0; }
.step .num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent-ink);
  display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 550; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-weight: 400; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin-top: 10px; color: var(--ink-soft); }
.faq details ul { padding-left: 1.15rem; }

.legal-block { margin-bottom: 36px; }
.legal-block h2 { margin-top: 8px; }
.legal-block p, .legal-block li { color: var(--ink-soft); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* Checkout */
.checkout { padding: 36px 0 72px; }
.steps-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 28px; padding: 0; list-style: none;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
}
.steps-bar li { display: flex; align-items: center; gap: 8px; }
.steps-bar li:not(:last-child)::after {
  content: ""; width: 24px; height: 1px; background: var(--line-strong); display: inline-block;
}
.steps-bar .is-active { color: var(--ink); }
.steps-bar .is-done { color: var(--ok); }

.pack-picks { display: grid; gap: 12px; }
@media (min-width: 800px) { .pack-picks { grid-template-columns: repeat(3, 1fr); } }
.pack-pick {
  text-align: left; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; font: inherit; color: inherit;
}
.pack-pick:hover, .pack-pick:focus { border-color: var(--ink); outline: none; }
.pack-pick.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pack-pick .price { font-size: 1.8rem; margin: 6px 0; }

label { display: block; font-weight: 550; font-size: 0.92rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input[type="email"], input[type="url"], input[type="text"], textarea, select {
  width: 100%; padding: 12px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: 1rem;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent-soft); border-color: var(--accent-ink);
}
.hint { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.pay-panel {
  display: grid; gap: 24px;
}
@media (min-width: 860px) {
  .pay-panel { grid-template-columns: 1fr 280px; align-items: start; }
}
.pay-card, .qr-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.qr-card { text-align: center; }
#qrcode { display: inline-block; margin: 8px auto; }
#qrcode img, #qrcode canvas { display: inline-block; }
.amount-xl {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 4px 0 8px;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86rem; word-break: break-all; }
.row-copy {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0;
}
.row-copy .mono { flex: 1; }
.btn-tiny {
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); border-radius: 999px; padding: 4px 10px;
  font: 550 0.78rem/1.2 var(--sans); cursor: pointer; white-space: nowrap;
}
.btn-tiny:hover { background: var(--accent-soft); }
.kv { display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 10px; font-size: 0.95rem; margin: 12px 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }

.status {
  padding: 12px 14px; border-radius: 10px; margin: 14px 0;
  background: var(--warn-soft); color: var(--warn);
  font-size: 0.95rem;
}
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.err { background: var(--err-soft); color: var(--err); }
.status.info { background: #ece7df; color: var(--ink); }

.confirm-box { text-align: center; padding: 24px 0; }
.confirm-box h2 { margin-bottom: 8px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .kv { grid-template-columns: 1fr; }
}

/* Article / interior pages */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { margin: 0 0 1em; padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin: 0.35em 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.cta-note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px; }
.mono-block {
  display: inline-block; background: #ece7df; padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86em;
  word-break: break-all;
}

/* Before/after and crop kit */
.compare {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .compare.pair { grid-template-columns: 1fr 1fr; }
  .compare.crops { grid-template-columns: 1.1fr 1fr 0.85fr; align-items: end; }
}
.compare-caption {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 800px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding: 10px 0; }
  .nav { flex-wrap: wrap; gap: 10px 14px; }
  .nav a:not(.nav-cta) { display: inline; }
}

/* Honeypot: hidden from people, present in the DOM for basic bot filtering. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
