/* Layout: plano de obra. Papel crudo con cuadrícula fina, anotaciones a mano, una sola línea de madera como acento. */
:root {
  --paper: #F3EEE6;
  --surface: #FBF8F3;
  --ink: #2E2823;
  --muted: #6B6157;
  --line: #DDD3C6;
  --grid: rgba(46, 40, 35, .055);
  --wood: #A9825A;
  --wood-ink: #85623F;
  --on-wood: #FBF8F3;
  --pending: #EFE3D2;
  --display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.75rem; --step-3: clamp(2.1rem, 5vw, 3.4rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #211D1A; --surface: #2A2521; --ink: #F1EBE2; --muted: #B3A797; --line: #3D3630;
  --grid: rgba(241, 235, 226, .045); --wood: #C9A77C; --wood-ink: #D4B48B; --on-wood: #211D1A; --pending: #3A3029;
  color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #211D1A; --surface: #2A2521; --ink: #F1EBE2; --muted: #B3A797; --line: #3D3630;
  --grid: rgba(241, 235, 226, .045); --wood: #C9A77C; --wood-ink: #D4B48B; --on-wood: #211D1A; --pending: #3A3029;
  color-scheme: dark }

* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em }
p { margin: 0 }
a { color: inherit }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 4px }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r) }
.band { padding-block: clamp(56px, 9vw, 104px) }
.band + .band { border-top: 1px solid var(--line) }
.eyebrow { font-family: var(--display); font-size: var(--step--1); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-ink) }
.lede { color: var(--muted); max-width: 58ch }
.hand { font-family: var(--hand); font-weight: 600; color: var(--wood-ink) }
.pending { background: var(--pending); border-radius: 3px; padding: 0 .3em; font-style: normal }

/* cabecera */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px }
.brand { display: block; color: var(--ink); line-height: 0 }
.logo-svg { height: 44px; width: auto; display: block }
nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-size: var(--step--1); font-weight: 500 }
nav a { text-decoration: none; color: var(--muted) }
nav a:hover { color: var(--ink) }
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--display); font-weight: 500; font-size: .95rem; text-decoration: none; padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease }
.btn-primary { background: var(--ink); color: var(--paper) }
.btn-primary:hover { transform: translateY(-1px) }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent }
.btn-ghost:hover { border-color: var(--ink) }
.top .btn { padding: .6em 1.1em; font-size: .875rem }
@media (max-width: 860px) { nav { display: none } .logo-svg { height: 36px } }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px) }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center }
.hero-copy { display: grid; gap: 22px; min-width: 0 }
.hero h1 { font-size: var(--step-3) }
.hero h1 em { font-style: normal; color: var(--wood-ink) }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--step--1); color: var(--muted); margin: 6px 0 0; padding: 0; list-style: none }
.facts li::before { content: "—"; color: var(--wood); margin-right: .5em }
.plan { position: relative; border: 1px solid var(--line); border-radius: 6px; background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px; padding: clamp(12px, 2vw, 22px); min-width: 0 }
.plan svg { width: 100%; height: auto; display: block }
.plan figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; letter-spacing: .04em; font-variant-numeric: tabular-nums }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr } }
.draw { stroke-dasharray: 1400; stroke-dashoffset: 0; animation: draw 2.4s ease-out both }
@keyframes draw { from { stroke-dashoffset: 1400 } to { stroke-dashoffset: 0 } }
@media (prefers-reduced-motion: reduce) { .draw { animation: none } }

/* propuesta */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px) }
.split > * { min-width: 0 }
.section-head { display: grid; gap: 14px; align-content: start }
.section-head h2 { font-size: var(--step-2) }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface) }
.compare > div { padding: 26px 24px; display: grid; gap: 14px; align-content: start }
.compare > div + div { border-left: 1px solid var(--line) }
.compare h3 { font-size: 1rem; font-weight: 500 }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .95rem }
.compare .without li { color: var(--muted) }
.compare .without li::before { content: "×"; margin-right: .6em; color: var(--muted) }
.compare .with li::before { content: "✓"; margin-right: .6em; color: var(--wood-ink); font-weight: 600 }
.compare .with { background: color-mix(in srgb, var(--wood) 7%, var(--surface)) }
@media (max-width: 860px) { .split { grid-template-columns: 1fr } }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr } .compare > div + div { border-left: 0; border-top: 1px solid var(--line) } }

/* qué incluye */
.trades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 40px }
.trade { background: var(--surface); padding: 24px 22px 26px; display: grid; gap: 8px; align-content: start }
.trade .who { font-family: var(--hand); font-size: 1.35rem; color: var(--wood-ink); line-height: 1 }
.trade h3 { font-size: 1.05rem }
.trade p { color: var(--muted); font-size: .95rem }
.note { margin-top: 22px; display: flex; gap: 14px; align-items: baseline; color: var(--muted); font-size: .95rem; max-width: 70ch }
.note strong { color: var(--ink); font-weight: 600 }
@media (max-width: 860px) { .trades { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .trades { grid-template-columns: 1fr } }

/* proceso */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; counter-reset: s }
.steps li { position: relative; padding: 26px 18px 0 0; border-top: 2px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0 }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 2px solid var(--wood); color: var(--wood-ink); font-family: var(--display); font-size: .8rem; font-weight: 600; display: grid; place-items: center }
.steps li.span { border-top-color: var(--wood) }
.steps .when { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums }
.steps h3 { font-size: 1.02rem }
.steps p { color: var(--muted); font-size: .93rem }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 0 } .steps li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 28px 30px } .steps li.span { border-left-color: var(--wood) } .steps li::before { top: -2px; left: -15px } }

/* proyectos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px }
.project { display: grid; gap: 12px; align-content: start; min-width: 0 }
.photo { aspect-ratio: 4 / 3; max-width: 100%; border: 1px dashed color-mix(in srgb, var(--wood) 55%, var(--line)); border-radius: 6px; display: grid; place-items: center; text-align: center; padding: 16px;
  background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 18px 18px }
.photo span { font-family: var(--hand); font-size: 1.4rem; color: var(--wood-ink); line-height: 1.15 }
.project h3 { font-size: 1rem }
.project p { color: var(--muted); font-size: .92rem }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr } }

/* contacto */
.contact { background: var(--surface) }
.contact .split { grid-template-columns: 1fr 1.25fr }
.channels { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 18px }
.channels li { display: grid; gap: 2px }
.channels .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.channels .v { font-family: var(--display); font-size: 1.15rem; font-weight: 500 }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 32px) }
.field { display: grid; gap: 6px; min-width: 0 }
.field.full { grid-column: 1 / -1 }
label { font-size: .85rem; font-weight: 500 }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: .7em .8em; width: 100% }
textarea { min-height: 120px; resize: vertical }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--wood); outline-offset: 0; border-color: transparent }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; justify-content: space-between }
.form-foot small { color: var(--muted); font-size: .82rem; max-width: 40ch }
.sent { grid-column: 1 / -1; border-left: 3px solid var(--wood); padding: 10px 14px; background: var(--surface); font-size: .95rem }
@media (max-width: 860px) { .contact .split { grid-template-columns: 1fr } }
@media (max-width: 560px) { form { grid-template-columns: 1fr } }

footer { padding-block: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px }
footer .logo-svg { height: 30px }

/* web publicada */
body { margin: 0 }
.shots { display: grid; gap: 6px }
.shots-2 { grid-template-columns: 1fr 1fr }
.shot { margin: 0; position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: 6px; background: var(--surface); border: 1px solid var(--line) }
.shots-2 .shot { aspect-ratio: 1 / 1 }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block }
.shot figcaption { position: absolute; left: 8px; bottom: 8px; font-family: var(--hand); font-size: 1.15rem; line-height: 1; color: var(--ink); background: var(--paper); padding: 3px 8px 4px; border-radius: 3px }
.where { color: var(--muted); font-weight: 400 }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted) }
.check input { width: auto; margin-top: .25em; accent-color: var(--wood) }
.channels a { text-decoration: none; border-bottom: 1px solid var(--line) }
.channels a:hover { border-color: var(--wood) }
footer a { color: var(--muted) }
.prose { max-width: 72ch; display: grid; gap: 16px }
.prose h1 { font-size: var(--step-2) }
.prose h2 { font-size: var(--step-1); margin-top: 18px }
.prose p { color: var(--muted) }
.prose strong { color: var(--ink) }

.trade .n { font-family: var(--display); font-size: .78rem; font-weight: 600; color: var(--wood-ink); border: 1.5px solid var(--wood); border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; margin-right: 4px; vertical-align: 3px }
.trade .opt { font-family: var(--body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 4px }
.trade.optional { background: color-mix(in srgb, var(--surface) 70%, var(--paper)) }
@media (max-width: 1000px) and (min-width: 861px) { .trades { grid-template-columns: repeat(3, 1fr) } }

/* tarjeta de llamada: solo rellena el hueco cuando la cuadrícula tiene 3 columnas */
.trade-cta { display: none; text-decoration: none; color: inherit; background: color-mix(in srgb, var(--wood) 14%, var(--surface)) !important }
.trade-cta:hover { background: color-mix(in srgb, var(--wood) 22%, var(--surface)) !important }
.trade-cta .cta-arrow { font-family: var(--display); font-weight: 500; font-size: .92rem; color: var(--ink); margin-top: 6px }
@media (max-width: 1000px) and (min-width: 861px) { .trade-cta { display: grid } }
