/* ===== Tokens (colores tomados del logotipo) ===== */
:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --muted-bg: #eff1ea;
  --ink: #262b27;
  --ink-soft: #5c635d;
  --line: #e1e4dc;
  --charcoal: #3f473f;      /* gris del logotipo */
  --green-900: #206038;     /* verde profundo */
  --green-700: #2b7a40;
  --green-500: #40a838;     /* verde del logotipo */
  --green-300: #a8d45a;     /* verde lima, sobre fondos oscuros */
  --green-50: #e8f3e3;
  --danger: #c0392b;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(38, 43, 39, .05), 0 10px 28px rgba(38, 43, 39, .08);
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ===== Botones y enlaces ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.text-link { font-weight: 600; color: var(--green-700); }
.text-link:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--green-300); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(247, 247, 243, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-v { width: auto; height: 40px; }
.brand-word { width: auto; height: 30px; }

.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.lead { font-size: 18px; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

.hero-visual { position: relative; max-width: 100%; }
.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--radius-lg);
  background: var(--muted-bg);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.float-card strong { display: block; font-size: 14px; font-weight: 700; }
.float-card small { display: block; font-size: 12.5px; color: var(--ink-soft); }
.float-a { left: -28px; bottom: 44px; }
.float-b { right: -20px; top: 36px; flex-direction: column; align-items: flex-start; gap: 0; }
.float-b .float-num { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--green-900); line-height: 1.1; }
.float-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 5px rgba(64, 168, 56, .18);
}

/* ===== Cifras ===== */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { display: flex; flex-direction: column; gap: 2px; padding: 28px 0 28px 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats strong { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--green-900); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--ink-soft); }

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section-muted { background: var(--muted-bg); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2,
.factory-copy h2,
.contact-info h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Catálogo ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip span { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-soft); }
.chip.is-active { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.chip.is-active span { color: var(--green-300); }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.model-head { display: flex; align-items: center; gap: 14px; }
.swatch { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--muted-bg); }
.model-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-500); }
.model h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.model-desc { font-size: 14.5px; color: var(--ink-soft); }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-900);
  font-size: 12.5px;
  font-weight: 600;
}
.model-actions { display: flex; gap: 8px; margin-top: auto; }
.model-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
.model-help {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}
.model-help > div { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.model-help .model-cat { color: var(--green-300); }
.model-help .model-desc { color: rgba(255, 255, 255, .75); }
.model-help .btn-primary { background: #fff; color: var(--green-900); flex: none; }
.model-help .btn-primary:hover { background: var(--green-50); }

/* ===== Fábrica ===== */
.factory { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.factory-copy h2 { margin-bottom: 18px; }
.factory-copy > p { color: var(--ink-soft); font-size: 17px; max-width: 480px; }
.cert { margin: 36px 0 0; max-width: 460px; }
.cert-paper {
  position: relative;
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  outline: 1px solid var(--line);
  outline-offset: -10px;
}
.cert-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cert-top img { width: auto; height: 34px; }
.cert-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cert-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--green-900); margin-bottom: 8px; }
.cert-body { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.cert-body strong { color: var(--ink); }
.cert-meta { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cert-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cert-meta dd { margin: 0; font-size: 14px; font-weight: 700; }
.cert-seal {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  opacity: .9;
}
.cert-seal svg { width: 26px; height: 26px; fill: none; stroke: var(--green-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cert figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

.factory-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.factory-list li {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.factory-list h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.factory-list p { font-size: 15px; color: var(--ink-soft); }
.factory-list .text-link { display: inline-block; margin-top: 8px; font-size: 14.5px; }

.icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-50);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green-900); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Beneficios ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .icon { margin-bottom: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-soft); }

/* ===== Proyectos ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot {
  padding: 0;
  border: 0;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 4.4;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.04); }

/* ===== Proceso ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 56px;
  right: -16px;
  height: 1px;
  background: var(--line);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--green-900);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 22px;
}
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-soft); }

/* ===== Agendar ===== */
.booking { background: var(--green-900); color: #fff; }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.booking-copy { position: sticky; top: 120px; }
.booking-copy h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.booking-copy > p { color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 440px; }
.booking-copy .booking-zones { margin-top: 24px; font-size: 14.5px; color: rgba(255, 255, 255, .6); }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(168, 212, 90, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' stroke='%23a8d45a' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

.booking-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 36px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full, .booking-form .btn-block, .form-note, .form-error { grid-column: 1 / -1; }
.field label, .field .label { font-size: 13.5px; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235c635d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.field input[type="date"] { min-height: 47px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #a3a89f; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(64, 168, 56, .14);
}
.field.invalid input,
.field.invalid select { border-color: var(--danger); background: #fdf6f5; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 8px 10px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.segmented input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.segmented input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 1px; }

.booking-form .btn-block { margin-top: 6px; padding: 16px; font-size: 16px; }
.form-note { margin-top: -6px; font-size: 13px; text-align: center; color: var(--ink-soft); }
.form-error { font-size: 14px; color: var(--danger); font-weight: 500; }

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.form-success h3 { font-size: 24px; font-weight: 800; }
.form-success p { color: var(--ink-soft); max-width: 320px; margin-bottom: 8px; }
.success-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-50);
  margin-bottom: 6px;
}
.success-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Preguntas ===== */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/14px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.6px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-soft); }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: stretch; }
.contact-info h2 { margin-bottom: 28px; }
.contact-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 14px; color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.contact-list dd a:not(.text-link):hover { color: var(--green-700); }
.contact-list .text-link { display: inline-block; margin-top: 4px; font-size: 14.5px; }

.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background .15s, border-color .15s;
}
.socials a:hover { background: var(--green-900); border-color: var(--green-900); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: var(--charcoal); stroke-width: 1.8; }
.socials svg .fill { fill: var(--charcoal); stroke: none; }
.socials a:hover svg { stroke: #fff; }
.socials a:hover svg .fill { fill: #fff; }

.map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .72); padding: 56px 0 40px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px 64px; align-items: start; }
.footer-logo { width: 190px; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.footer-cols h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer-cols a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ===== Visor ===== */
.viewer {
  width: min(92vw, 760px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(20, 24, 21, .72); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.viewer-bar p { font-weight: 700; }
.viewer-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--muted-bg); cursor: pointer; }
.viewer-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.viewer img { width: 100%; max-height: calc(92vh - 66px); object-fit: contain; background: var(--muted-bg); }

.mobile-cta { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
}

@media (max-width: 960px) {
  .hero-grid, .booking-grid, .faq-wrap, .factory, .contact { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-visual { margin: 0 20px; }
  .hero-photo { aspect-ratio: 16 / 12; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .steps li::after { display: none; }
  .booking-copy { position: static; }
  .booking-grid, .factory, .contact { gap: 44px; }
  .faq-wrap { gap: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
}

@media (max-width: 720px) {
  .header-inner { height: 64px; }
  .site-header .btn-sm { display: none; }
  .brand-v { height: 34px; }
  .brand-word { height: 26px; }
  .hero { padding: 36px 0 56px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { margin: 0; }
  .hero-photo { aspect-ratio: 4 / 4.2; }
  .float-a { left: 12px; bottom: 14px; }
  .float-b { right: 12px; top: 14px; }
  .stats > div { padding: 20px 0 20px 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .catalog, .grid-4, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .booking-form { grid-template-columns: 1fr; padding: 24px; }
  .model-help { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cert-paper { padding: 22px 20px 20px; }
  .cert-meta { grid-template-columns: repeat(2, auto); gap: 12px 24px; }
  .cert-seal { width: 44px; height: 44px; right: 16px; bottom: 16px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .map, .map iframe { min-height: 300px; }
  .footer-cols { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 110px; }

  .mobile-cta {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: block;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: var(--green-900);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: opacity .2s, transform .2s;
  }
  .mobile-cta.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Franja superior en teléfonos con muesca */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 51;
  background: var(--bg);
}
