/* =========================================================
   Dehesa Carbón — styles
   ========================================================= */
:root {
  --bg: #0f0c0a;
  --bg-2: #16110e;
  --bg-3: #1e1713;
  --line: rgba(243, 236, 226, 0.1);
  --text: #f3ece2;
  --muted: #b5a998;
  --ember: #e8692c;
  --ember-2: #ff8a3d;
  --gold: #d9a35b;
  --cream: #f6efe4;
  --error: #ff6b5b;
  --success: #7bc47f;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 76px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ember); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
  font-family: inherit;
}
.btn-sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .85rem; }
.btn-lg { --pad-y: 1.05rem; --pad-x: 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: #1a0d05;
  box-shadow: 0 10px 30px -10px rgba(232, 105, 44, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(232, 105, 44, .9); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { border-color: rgba(243, 236, 226, .35); color: var(--text); background: rgba(15, 12, 10, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); background: rgba(243, 236, 226, .08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: rgba(15, 12, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--ember); filter: drop-shadow(0 0 10px rgba(232, 105, 44, .5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: .62rem; text-transform: uppercase; letter-spacing: .28em; color: var(--muted); margin-top: .3rem; }

.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .2s; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(0,0,0,.25); }
.lang-switch button {
  background: none; border: 0; color: var(--muted); font: 600 .74rem/1 var(--font-body);
  letter-spacing: .06em; padding: .45rem .6rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; z-index: -3; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(15,12,10,.95) 0%, rgba(15,12,10,.75) 38%, rgba(15,12,10,.15) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { max-width: var(--container); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); max-width: 13ch; margin-bottom: 1.5rem; }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #d4c9b9; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0 2.6rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 2rem; }
.hero-badges li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #d9cfc1; }
.hero-badges svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ember-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-content > * { animation: fadeUp 1s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
.hero-content > *:nth-child(5) { animation-delay: .48s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Floating embers */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers span {
  position: absolute; bottom: -10px; left: var(--x);
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle, #ffd29a 0%, var(--ember-2) 45%, transparent 70%);
  box-shadow: 0 0 8px 2px rgba(255, 138, 61, .55);
  opacity: 0;
  animation: ember var(--d) linear var(--delay) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: .7; }
  100% { transform: translate(var(--drift), -85vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-content > *, .scroll-cue::after { animation: none; }
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.4rem 1.5rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 500; color: var(--cream); line-height: 1; margin-bottom: .55rem; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }

/* Why */
.why-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: stretch; }
.why-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 163, 91, .35); }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,138,61,.25), rgba(232,105,44,.06));
  border: 1px solid rgba(232, 105, 44, .3);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ember-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Origin */
.origin { background: radial-gradient(ellipse at 80% 20%, rgba(217,163,91,.08), transparent 55%), var(--bg-2); }
.origin-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.origin-media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.origin-media img { width: 100%; height: 100%; object-fit: cover; }
.origin-media figcaption {
  position: absolute; left: 1rem; bottom: 1rem; font-size: .78rem; letter-spacing: .08em;
  background: rgba(15,12,10,.65); backdrop-filter: blur(8px); padding: .45rem .8rem; border-radius: 999px; color: #e5dccf;
}
.origin-text p { color: var(--muted); }
.origin-inset { margin: 2rem 0 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 7; border: 1px solid var(--line); }
.origin-inset img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: rgba(232,105,44,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list.small { font-size: .93rem; gap: .5rem; margin-top: 1rem; }
.check-list.small li { color: #d6ccbe; }

/* Specs */
.specs-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.specs-media { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.specs-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 2rem 1.5rem; }
.spec-table dl { margin: 0; }
.spec-table dl > div { display: grid; grid-template-columns: 38% 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; padding-top: .15rem; }
.spec-table dd { margin: 0; color: var(--cream); }
.note { color: var(--muted); font-size: .82rem; margin: 1.2rem 0 0; }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.client-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s; }
.client-card:hover { transform: translateY(-5px); border-color: rgba(217,163,91,.35); }
.client-card img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.client-card:hover img { transform: scale(1.04); }
.client-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.client-body h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: .6rem; }
.client-body > p { color: var(--muted); font-size: .92rem; margin-bottom: auto; }

/* Offer */
.offer { background: linear-gradient(180deg, var(--bg) 0%, #1b120c 50%, var(--bg) 100%); position: relative; }
.offer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 50%, rgba(232,105,44,.18), transparent 55%); pointer-events: none; }
.offer-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.offer-media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: 0 40px 80px -30px rgba(232,105,44,.35), var(--shadow); }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-tag {
  position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--font-display); font-size: 1.1rem;
  background: var(--cream); color: var(--bg); padding: .5rem 1rem; border-radius: 999px; font-weight: 600;
}
.offer-text h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.guarantee {
  display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0;
  padding: 1.3rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(217,163,91,.35); background: rgba(217,163,91,.07);
}
.guarantee svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guarantee strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-bottom: .2rem; }
.guarantee p { margin: 0; color: var(--muted); font-size: .95rem; }
.small-print { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1px var(--gold); line-height: 1; display: block; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.1rem; right: -1.25rem; width: 1.25rem; height: 1px; background: var(--gold); opacity: .5;
}

/* Markets */
.markets { padding-top: 0; }
.markets-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
}
.markets-inner .lead { margin: 0; }
.market-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.market-list li { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; border-radius: var(--radius-sm); background: rgba(0,0,0,.25); border: 1px solid var(--line); font-weight: 500; }
.market-list li:last-child { grid-column: 1 / -1; }
.market-list small { color: var(--muted); font-weight: 400; }
.flag { font-size: 1.4rem; line-height: 1; }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.5rem 3rem 1.5rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.25rem; transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold); }
.faq-list summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 3rem 1.6rem 0; margin: 0; }

/* Contact */
.contact { background: radial-gradient(ellipse at 10% 0%, rgba(232,105,44,.1), transparent 50%), var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-text { position: sticky; top: calc(var(--header-h) + 2rem); }
.direct { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; justify-items: start; }
.direct p { color: var(--muted); margin: 0 0 .3rem; font-size: .9rem; }
.direct-link { font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.direct-link:hover { color: var(--gold); border-color: var(--gold); }

.lead-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
.form-hint { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field label { font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: #e6ddd0; }
.hint { font-size: .76rem; color: var(--muted); margin: -.15rem 0 .35rem; }

.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--text);
  background: var(--bg-2); border: 1px solid rgba(243,236,226,.16); border-radius: var(--radius-sm);
  padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a35b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,163,91,.18); }
.field ::placeholder { color: #7d7266; }

/* Validation — only after interaction (:user-invalid) */
.error-msg { display: none; color: var(--error); font-size: .8rem; margin: .4rem 0 0; }
.error-msg::before { content: "⚠ "; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: var(--error); background-color: rgba(255,107,91,.07);
}
.field input:user-valid:not([type="checkbox"]), .field select:user-valid { border-color: rgba(123,196,127,.55); }
.field:has(:user-invalid) .error-msg { display: block; }
/* Fallback for browsers without :user-invalid */
.lead-form.was-submitted .field:has(:invalid) .error-msg { display: block; }

.checkbox { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .88rem; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--ember); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status { margin: 1rem 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-tagline { color: var(--muted); max-width: 40ch; margin-top: 1.2rem; font-size: .95rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; color: var(--muted); }
.site-footer ul a { text-decoration: none; transition: color .2s; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.8rem; font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards-2 .reveal:nth-child(2), .client-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .stats-grid .reveal:nth-child(2) { transition-delay: .1s; }
.cards-2 .reveal:nth-child(3), .client-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .stats-grid .reveal:nth-child(3) { transition-delay: .2s; }
.cards-2 .reveal:nth-child(4), .steps .reveal:nth-child(4), .stats-grid .reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 1.3rem; }
  .header-cta { display: none; }
  .why-layout { grid-template-columns: 1fr; }
  .why-media { aspect-ratio: 16 / 8; min-height: 0; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; background: rgba(15,12,10,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  body.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 1rem 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }

  .origin-grid, .specs-grid, .offer-grid, .contact-grid, .markets-inner { grid-template-columns: 1fr; }
  .origin-media { aspect-ratio: 16 / 11; }
  .client-grid { grid-template-columns: 1fr; max-width: 560px; }
  .contact-text { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-actions .lang-switch button { padding: .4rem .45rem; font-size: .7rem; }
  .brand-sub { display: none; }
  .hero { align-items: flex-end; }
  .hero-overlay { background: linear-gradient(0deg, rgba(15,12,10,1) 10%, rgba(15,12,10,.75) 55%, rgba(15,12,10,.35) 100%); }
  .hero-badges { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .cards-2, .field-row, .steps, .market-list { grid-template-columns: 1fr; }
  .spec-table { padding: .5rem 1.2rem 1.2rem; }
  .spec-table dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .scroll-cue { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
