/* Layout: editorial single column, 1120px max, generous bands; forest-green ink on stone paper, ochre used once per section. */
:root {
  --bg: #f6f5ef;
  --surface: #fffefa;
  --surface-2: #eeeee7;
  --ink: #1d2924;
  --ink-strong: #1e3127;
  --muted: #647069;
  --line: #dcded5;
  --brand: #224b3b;
  --brand-ink: #fffefa;
  --brand-soft: #e1ebe2;
  --ochre: #b38635;
  --ochre-soft: #f3e6c8;
  --shadow: 0 1px 2px #1c2b220f, 0 12px 32px #1c2b221a;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 8px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16; --surface: #18221d; --surface-2: #1f2b25; --ink: #e6ebe4; --ink-strong: #f1f4ee;
    --muted: #9aa79f; --line: #2d3a33; --brand: #8fc0a3; --brand-ink: #102019; --brand-soft: #22352b;
    --ochre: #d9a648; --ochre-soft: #3a2f18; --shadow: 0 1px 2px #0006, 0 12px 32px #0008; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a16; --surface: #18221d; --surface-2: #1f2b25; --ink: #e6ebe4; --ink-strong: #f1f4ee;
  --muted: #9aa79f; --line: #2d3a33; --brand: #8fc0a3; --brand-ink: #102019; --brand-soft: #22352b;
  --ochre: #d9a648; --ochre-soft: #3a2f18; --shadow: 0 1px 2px #0006, 0 12px 32px #0008; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--tint { background: var(--surface-2); }
.band--brand { background: var(--brand); color: var(--brand-ink); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink-strong); font-weight: 500; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0; }
.lead { font-size: 1.14rem; line-height: 1.7; color: var(--muted); max-width: 38rem; }
.eyebrow { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.band--brand .eyebrow { color: var(--ochre-soft); }
.band--brand h2, .band--brand h3 { color: var(--brand-ink); }
.band--brand .lead { color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.stack { display: grid; gap: 20px; }
.stack--lg { gap: 32px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--ghost { background: var(--surface); color: var(--ink-strong); border-color: var(--line); }
.band--brand .btn--primary { background: var(--brand-ink); color: var(--brand); }
.arrow::after { content: "\2197"; font-size: 0.9em; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-strong); font-weight: 700; letter-spacing: -0.01em; }
.logo svg { width: 22px; height: 22px; }
.logo span em { font-style: normal; font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 0.93rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand); }
.nav details { position: relative; }
.nav summary { cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " \25BE"; font-size: 0.75em; color: var(--muted); }
.menu { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu a { padding: 9px 12px; border-radius: 5px; }
.menu a:hover { background: var(--brand-soft); }
.langs { display: flex; gap: 8px; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); }
.langs a { color: var(--muted); }
.langs a[aria-current] { color: var(--ink-strong); font-weight: 700; }
.nav .btn { padding: 9px 16px; color: var(--brand-ink); }
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.9rem; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle .mobile-menu { position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 4px; }
  .mobile-menu a { padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; justify-content: center; color: var(--brand-ink); border: 0; }
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; color: var(--muted); }
.meta-row span::before { content: "\25CF"; color: var(--brand); font-size: 0.6em; margin-right: 8px; vertical-align: middle; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.snapshot { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 18px; min-width: 0; }
.snapshot-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.snapshot h3 { font-size: 1.5rem; }
.snapshot-sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--brand-soft); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--ink-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 0.8rem; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.78rem; }
.flow span { border: 1px dashed var(--line); border-radius: 6px; padding: 6px 10px; color: var(--muted); }
.flow i { color: var(--ochre); font-style: normal; }
.flow-head { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.snapshot-foot { font-size: 0.85rem; color: var(--brand); font-weight: 600; }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 20px; padding-block: 22px; align-items: center; font-size: 0.9rem; }
.strip p { color: var(--muted); font-size: 0.85rem; }
.strip b { font-weight: 600; color: var(--ink-strong); display: flex; gap: 8px; align-items: center; }
.strip b::before { content: "\2713"; color: var(--brand); }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip p { grid-column: 1 / -1; } }

/* Generic grids */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.svc-list { display: grid; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.svc h3 { transition: color .15s ease; }
.svc:hover h3 { color: var(--brand); }
.svc p { color: var(--muted); grid-column: 1; }
.svc .dur { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.82rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* Scan feature */
.scan { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.scan > * { min-width: 0; }
@media (max-width: 860px) { .scan { grid-template-columns: 1fr; } }
.steps3 { display: grid; gap: 14px; }
.steps3 div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--brand-ink) 22%, transparent); }
.steps3 b { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ochre-soft); }
.price-card { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.price-card h3 { color: var(--ink-strong); font-size: 1.3rem; }
.prices { display: grid; }
.prices div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prices div:last-child { border-bottom: 0; }
.prices span { color: var(--muted); }
.prices b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fine { font-size: 0.85rem; color: var(--muted); }
.price-card .btn { justify-content: center; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li { list-style: none; border-top: 2px solid var(--brand); padding-top: 18px; display: grid; gap: 8px; counter-increment: step; }
.process li::before { content: "Step " counter(step); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }
.process p { color: var(--muted); font-size: 0.95rem; }
.process { padding: 0; margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Automations */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.92rem; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.auto-grid article { background: var(--surface); padding: 26px; display: grid; gap: 10px; align-content: start; }
.auto-grid h3 { font-size: 1.2rem; }
.auto-grid p { color: var(--muted); font-size: 0.95rem; }

/* Proof */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.proof small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }
.proof h3 { font-size: 1.2rem; }
.proof p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; } }

/* Lead magnet */
.magnet { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px, 4vw, 44px); }
.magnet > * { min-width: 0; }
@media (max-width: 760px) { .magnet { grid-template-columns: 1fr; } }
.magnet form { display: flex; gap: 10px; flex-wrap: wrap; }
.magnet input { flex: 1 1 220px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; }
.magnet button { border: 0; cursor: pointer; font: inherit; }

/* About */
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.monogram { width: clamp(96px, 14vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-style: italic; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } }
.about p { max-width: 40rem; color: var(--muted); }

/* CTA band */
.cta { display: grid; gap: 22px; max-width: 46rem; }

/* Service pages */
.svc-hero { padding-block: clamp(48px, 7vw, 88px) 32px; }
.svc-hero .wrap { display: grid; gap: 24px; }
.svc-body { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.svc-body > * { min-width: 0; }
@media (max-width: 860px) { .svc-body { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: "\2713"; color: var(--brand); font-weight: 700; }
.panel { display: grid; gap: 16px; padding-bottom: 32px; }
.panel + .panel { border-top: 1px solid var(--line); padding-top: 32px; }
.panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: grid; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-strong); font-weight: 600; }
.related a span { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.related a:hover { border-color: var(--brand); }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

/* Contact / booking */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; min-width: 0; }
.contact-grid small { color: var(--muted); }
.contact-grid a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--brand); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* Regional price table (ES / PT) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table td:first-child { white-space: normal; font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table a { color: var(--ink-strong); text-decoration: none; }
.price-table a:hover { color: var(--brand); }
