/* ─── Design system — La Rabosa · Web pública ─── */
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border-radius: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea, select { font: inherit; }

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

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--petroleo);
}
.logo-img {
  display: block;
  height: 2.35rem;
  width: auto;
}
.logo-img--mark {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
}
.logo-img--horizontal {
  height: 2.5rem;
  width: auto;
  max-width: min(12.5rem, 46vw);
  object-fit: contain;
}
.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0.15rem;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--petroleo);
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pizarra);
}
.logo--footer .logo-img { height: 2.75rem; }
.logo--footer .logo-img--footer-mark {
  /* monocromo petróleo → claro sobre footer oscuro */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.logo--footer .logo-text { color: var(--mineral); }
.logo--footer .logo-sub { color: var(--acero); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--ink); background: var(--bg); }
.site-nav a.is-active { color: var(--petroleo); background: var(--menta-soft); }
.nav-cta {
  margin-left: 0.5rem;
  background: var(--petroleo) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--petroleo-hover) !important; color: #fff !important; }
.nav-cta.is-active { background: var(--petroleo) !important; box-shadow: inset 0 0 0 2px var(--menta); }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s;
}

/* ─── Typography ─── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pizarra);
  margin-bottom: 1rem;
}
.display {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--petroleo);
}
.display-sm {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--petroleo);
}
.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 38rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--petroleo);
}
.section-intro { margin-top: 0.75rem; color: var(--muted); max-width: 36rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 92, 84, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0;
}
.btn-ghost:hover { color: var(--accent); transform: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* ─── Hero ─── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(50vw, 32rem);
  height: min(50vw, 32rem);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-content .lead { margin-top: 1.25rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 0;
  background: var(--ink);
  overflow: hidden;
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,92,84,0.15) 0%, transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px);
}
.hero-visual-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.hero-visual-label strong { display: block; color: var(--ink); font-size: 0.9375rem; }
.hero-visual-label span { font-size: 0.8125rem; color: var(--muted); }

/* ─── Sections ─── */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
  list-style: none;
}
.unit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.unit-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.unit-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.unit-card-visual {
  height: 8rem;
  background: linear-gradient(145deg, var(--accent-soft), var(--warm-soft));
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
}
.unit-card-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petroleo);
  background: rgba(255,255,255,0.9);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--menta);
}
.unit-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.unit-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.unit-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.unit-card-price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.unit-card-price strong { font-size: 1.125rem; color: var(--ink); }
.unit-card-price span { font-size: 0.8125rem; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge--available { background: var(--menta-soft); color: var(--petroleo); }
.badge--future { background: var(--warning-bg); color: var(--warning-ink); }
.badge--unavailable { background: var(--mineral-deep); color: var(--pizarra); }

/* ─── Process steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  list-style: none;
}
.step-item { position: relative; }
.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-muted);
  margin-bottom: 1.25rem;
}
.step-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.step-item p { font-size: 0.9375rem; color: var(--muted); }

/* ─── Feature grid ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 0.625rem;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}
.feature h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.feature p { font-size: 0.9375rem; color: var(--muted); }

/* ─── Size guide ─── */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.size-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.size-card-visual {
  width: 100%;
  aspect-ratio: 1;
  max-width: 5rem;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent-muted);
  border-radius: 0.375rem;
  opacity: 0.6;
}
.size-card--sm .size-card-visual { max-width: 2.5rem; }
.size-card--md .size-card-visual { max-width: 3.5rem; }
.size-card--lg .size-card-visual { max-width: 4.5rem; }
.size-card--xl .size-card-visual { max-width: 5rem; }
.size-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.size-card p { font-size: 0.8125rem; color: var(--muted); margin-top: 0.375rem; }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pricing-grid--plans {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .pricing-grid--plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid--plans { grid-template-columns: 1fr; }
}
.pricing-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.pricing-card--featured::before {
  content: 'Popular';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.pricing-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 1rem 0;
}
.pricing-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-features { list-style: none; margin-top: 1.5rem; }
.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-left: 1.25rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
}

/* ─── FAQ ─── */
.faq-list { max-width: 42rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer { display: block; }

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: grid; gap: 1.5rem; }
.contact-block {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-block h3 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.contact-block p, .contact-block a { font-size: 1rem; color: var(--ink); font-weight: 500; }

.form-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-control { min-height: 8rem; resize: vertical; }

.form-alert {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: #fdecea;
  color: #8a1f11;
  font-size: 0.875rem;
  font-weight: 500;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.checkout-summary {
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.checkout-note {
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.plan-options { display: grid; gap: 0.75rem; }
.plan-option {
  display: block;
  cursor: pointer;
}
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option-body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-option-body strong { display: block; font-size: 0.9375rem; }
.plan-option-body span { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.plan-option input:checked + .plan-option-body {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.form-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-checks {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.legal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.legal-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.legal-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-page {
  max-width: 42rem;
}
.prose-page h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}
.prose-page p,
.prose-page li {
  color: var(--muted);
  line-height: 1.6;
}
.prose-page ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.4rem;
}
.legal-draft-note {
  margin-top: 2.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ─── Payment gateway ─── */
.pay-gateway {
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(ellipse at top, rgba(26, 92, 84, 0.12), transparent 55%),
    linear-gradient(180deg, #0f1c1a 0%, #1a2e2a 100%);
}
.pay-gateway-shell {
  max-width: 52rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pay-gateway-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  padding: 1.5rem 1.75rem;
  background: var(--petroleo);
  color: #fff;
}
.pay-gateway-brand {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}
.pay-gateway-header h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}
.pay-gateway-amount {
  text-align: right;
}
.pay-gateway-amount span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.pay-gateway-amount strong {
  font-size: 1.5rem;
  font-weight: 700;
}
.pay-gateway-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
}
.pay-gateway-order {
  padding: 1.75rem;
  background: #f6f4f0;
  border-right: 1px solid var(--line);
}
.pay-gateway-order h2,
.pay-gateway-card h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pay-gateway-order ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pay-gateway-order li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
}
.pay-gateway-customer {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.pay-gateway-card { padding: 1.75rem; }
.pay-gateway-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pay-gateway-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.location-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.location-facts {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}
.location-facts li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}
.location-facts strong {
  display: block;
  color: var(--petroleo);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.location-media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.size-guide {
  display: grid;
  gap: 1.75rem;
}
.size-guide-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.size-guide-list li {
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.size-guide-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--petroleo);
  margin-bottom: 0.35rem;
}
.size-guide-list span {
  font-size: 0.875rem;
  color: var(--muted);
}
.size-guide-link a {
  color: var(--petroleo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.size-guide-link a:hover { color: var(--menta-strong); }

.catalog-assist {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.catalog-assist-bands {
  grid-template-columns: 1fr;
}
.catalog-assist-bands li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

/* ─── Page header (inner pages) ─── */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-top: 1rem; }

/* ─── Detail page ─── */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.detail-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--accent-soft), var(--warm-soft));
  border-radius: 0;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-visual-code {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255,255,255,0.92);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  opacity: 1;
}
.detail-panel {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.detail-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.detail-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.detail-specs {
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}
.detail-spec { display: flex; justify-content: space-between; font-size: 0.9375rem; }
.detail-spec dt { color: var(--muted); }
.detail-spec dd { font-weight: 600; color: var(--ink); margin: 0; }

/* ─── CTA band ─── */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--petroleo);
  color: #fff;
  text-align: center;
}
.cta-band .display-sm { color: #fff; }
.cta-band .lead { color: rgba(244,243,239,0.7); margin: 1rem auto 0; }
.cta-band .btn-primary { background: var(--menta); color: var(--petroleo); box-shadow: none; }
.cta-band .btn-primary:hover { background: #fff; color: var(--petroleo); }

/* ─── Map placeholder ─── */
.map-placeholder {
  aspect-ratio: 21/9;
  background: var(--line);
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9375rem;
  border: 1px solid var(--line-strong);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--petroleo);
  border-top: none;
  padding-top: 4rem;
  color: var(--mineral);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-tagline { margin-top: 1rem; font-size: 0.9375rem; color: rgba(244, 243, 239, 0.72); max-width: 18rem; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--menta);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { font-size: 0.9375rem; color: rgba(244, 243, 239, 0.82); transition: color 0.15s; }
.footer-links a:hover { color: var(--menta); }
.footer-contact li { font-size: 0.9375rem; color: rgba(244, 243, 239, 0.82); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(166, 173, 176, 0.25);
  font-size: 0.8125rem;
  color: rgba(244, 243, 239, 0.55);
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: rgba(244, 243, 239, 0.55); }
.footer-legal a:hover { color: var(--menta); }
.footer-legal-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: rgba(244, 243, 239, 0.55);
  cursor: pointer;
  text-align: left;
}
.footer-legal-btn:hover { color: var(--menta); }
.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent-hover); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--petroleo, #0f2a2e);
  color: rgba(244, 243, 239, 0.92);
  box-shadow: 0 18px 40px rgba(8, 20, 22, 0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie-banner.is-hidden { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner-copy { flex: 1 1 14rem; }
.cookie-banner-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.cookie-banner-copy p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
.cookie-banner a { color: var(--menta, #7dceb8); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: #fff; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.cookie-banner .btn-ghost {
  color: rgba(244, 243, 239, 0.9);
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
}
.cookie-banner .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}
.cookie-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
}
.cookie-banner-prefs { width: 100%; flex-direction: column; align-items: stretch; }
.cookie-pref-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie-pref-item strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.cookie-pref-item span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(244, 243, 239, 0.7);
}
.cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}
.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cookie-switch-ui {
  width: 2.5rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  position: relative;
  transition: background 0.2s ease;
}
.cookie-switch-ui::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.cookie-switch input:checked + .cookie-switch-ui {
  background: var(--menta, #7dceb8);
}
.cookie-switch input:checked + .cookie-switch-ui::after {
  transform: translateX(1.1rem);
}
.cookie-switch input:disabled + .cookie-switch-ui {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-switch:has(input:disabled) { cursor: not-allowed; }
.cookie-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 79;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: var(--petroleo, #0f2a2e);
  color: rgba(244, 243, 239, 0.92);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 20, 22, 0.28);
}
.cookie-fab:hover { color: #fff; background: #16363b; }
.cookie-fab.is-hidden { display: none; }
@media (max-width: 560px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-btn { flex: 1 1 auto; justify-content: center; }
  .cookie-fab { left: 0.75rem; bottom: 0.75rem; }
}

/* Palette preview switcher */
.palette-switcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 81;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.palette-switcher-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: var(--petroleo);
  color: rgba(244, 243, 239, 0.95);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 20, 22, 0.28);
}
.palette-switcher-toggle:hover { filter: brightness(1.08); }
.palette-switcher-dots {
  display: inline-flex;
  gap: 0.2rem;
}
.palette-switcher-dots i,
.palette-option-swatches i {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.palette-switcher-panel {
  width: min(16.5rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.palette-switcher-label {
  margin: 0 0 0.5rem;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.palette-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.6rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.palette-option:hover { background: var(--bg); }
.palette-option.is-active {
  background: var(--menta-soft);
  border-color: color-mix(in srgb, var(--menta) 35%, transparent);
}
.palette-option-swatches {
  display: inline-flex;
  gap: 0.2rem;
  flex: 0 0 auto;
}
.palette-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.palette-option-text strong {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
}
.palette-option-text em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 560px) {
  .palette-switcher { right: 0.75rem; bottom: 0.75rem; }
}



/* ─── Filters bar ─── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-chip {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover, .filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.unit-card-wrap.is-hidden { display: none; }
.is-hidden { display: none !important; }

/* ─── Full-bleed hero & media ─── */
.hero-bleed,
.cta-bleed,
.page-hero--media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.hero-bleed { min-height: min(88vh, 44rem); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bleed-media,
.cta-bleed-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bleed-media img,
.cta-bleed-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-bleed-overlay,
.cta-bleed-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 59, 66, 0.35) 0%, rgba(18, 59, 66, 0.72) 55%, rgba(18, 59, 66, 0.9) 100%);
}
.hero-bleed-content {
  padding: clamp(4rem, 10vw, 7rem) 0 3rem;
  max-width: 42rem;
}
.brand-mark {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--menta);
  margin-bottom: 1.25rem;
}
.display--light, .lead--light { color: #fff; }
.lead--light { color: rgba(244, 243, 239, 0.82); }
.eyebrow--light { color: var(--menta); }
.btn-primary--light {
  background: var(--menta);
  color: var(--petroleo);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-primary--light:hover { background: #fff; color: var(--petroleo); }
.btn-ghost-light {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.hero-bleed-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 18, 16, 0.45);
  backdrop-filter: blur(10px);
}
.hero-bleed-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
}
.hero-bleed-stats strong {
  display: block;
  font-size: 1.125rem;
  color: #fff;
}
.hero-bleed-stats span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
}
.pillars-strip {
  list-style: none;
  margin: 0;
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillars-strip li {
  min-width: 0;
}
.pillars-strip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.pillars-strip span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.72);
}
.pillars-grid .feature h3 {
  font-family: var(--font-heading);
}
@media (max-width: 768px) {
  .pillars-strip {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
.page-hero--media {
  padding: clamp(5rem, 12vw, 8rem) 0 3.5rem;
}
.page-hero-content { position: relative; max-width: 40rem; }
.cta-bleed {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
}
.cta-bleed-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-bleed .lead { margin-top: 1rem; }
.cta-bleed .btn-group { justify-content: center; }

.section--warm { background: #fff; }
.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 28rem;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.split-media { min-height: 22rem; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.steps--stacked { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.photo-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.photo-mosaic-main { grid-row: 1 / span 2; }
.photo-mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--line);
  min-height: 12rem;
}
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.photo-mosaic figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
}
.features--elevated .feature {
  background: var(--surface);
  overflow: hidden;
  padding: 0;
}
.feature-media { height: 10rem; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.feature:hover .feature-media img { transform: scale(1.04); }
.features--elevated .feature h3,
.features--elevated .feature p { padding: 0 1.5rem; }
.features--elevated .feature h3 { margin-top: 1.25rem; }
.features--elevated .feature p { padding-bottom: 1.5rem; }
.unit-card-visual {
  position: relative;
  height: 11rem;
  padding: 0;
  overflow: hidden;
}
.unit-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.unit-card:hover .unit-card-visual img { transform: scale(1.05); }
.unit-card-code {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
}
.unit-card-arrow { color: var(--accent); font-weight: 600; }
.map-placeholder--photo {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}
.map-placeholder--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  opacity: 0.85;
}
.map-placeholder--photo span {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  background: rgba(255,255,255,0.92);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
}
[data-reveal] {
  opacity: 1;
  transform: none;
}
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Floor plan ─── */
.floorplan-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.floorplan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}
.floorplan-legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  margin-right: 0.4rem;
  vertical-align: -0.1rem;
  border: 1px solid rgba(0,0,0,0.08);
}
.swatch--available { background: var(--menta); }
.swatch--future { background: #f0d9a8; }
.swatch--occupied { background: var(--acero); }
.swatch--selected { background: var(--petroleo); }
.floorplan-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.floorplan-canvas-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: auto;
}
.floorplan-svg {
  width: 100%;
  min-width: 520px;
  height: auto;
  display: block;
}
.floorplan-label-muted {
  fill: #8a8680;
  font-size: 12px;
  font-family: var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.floorplan-unit rect {
  stroke: #b9b4ab;
  stroke-width: 1.5;
  transition: fill 0.15s, stroke 0.15s, filter 0.15s;
}
.floorplan-unit.is-available rect { fill: #d7f6ec; stroke: var(--menta); }
.floorplan-unit.is-future rect { fill: #f7e8c8; stroke: #c4a05a; }
.floorplan-unit.is-unavailable rect { fill: #e8e9e8; stroke: var(--acero); }
.floorplan-unit.is-selectable { cursor: pointer; }
.floorplan-unit.is-selectable:hover rect,
.floorplan-unit.is-selectable:focus-visible rect {
  filter: brightness(0.97);
  stroke-width: 2.5;
}
.floorplan-unit.is-selected rect {
  fill: var(--petroleo);
  stroke: #0f3d38;
  stroke-width: 2.5;
}
.floorplan-unit-code {
  fill: #1f2a27;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  pointer-events: none;
}
.floorplan-unit.is-selected .floorplan-unit-code,
.floorplan-unit.is-selected .floorplan-unit-meta { fill: #fff; }
.floorplan-unit-meta {
  fill: #5f6a66;
  font-size: 11px;
  font-family: var(--font);
  pointer-events: none;
}
.floorplan-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  box-shadow: var(--shadow-md);
  min-height: 18rem;
}
.floorplan-panel-empty p:last-child { margin-top: 0.75rem; color: var(--muted); }
.floorplan-panel-status { margin: 1rem 0 0; }
.floorplan-panel-hint { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); }
.btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid, .detail-grid, .contact-grid, .pricing-grid, .checkout-grid, .pay-gateway-body, .location-block, .catalog-assist { grid-template-columns: 1fr; }
  .size-guide-list { grid-template-columns: repeat(2, 1fr); }
  .steps, .features { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; max-height: 16rem; aspect-ratio: auto; }
  .detail-panel { position: static; }
  .pay-gateway-order { border-right: none; border-bottom: 1px solid var(--line); }
  .split-section, .floorplan-layout, .photo-mosaic { grid-template-columns: 1fr; }
  .photo-mosaic-main { grid-row: auto; }
  .photo-mosaic { grid-template-rows: auto; }
  .hero-bleed-stats,
  .pillars-strip { grid-template-columns: 1fr; }
  .floorplan-panel { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { border-radius: var(--radius); }
  .nav-cta { margin-left: 0; text-align: center; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: 1fr; }
}

/* ─── Size recommendation wizard ─── */
.wizard-dialog {
  border: none;
  padding: 0;
  max-width: min(32rem, calc(100vw - 1.5rem));
  width: 100%;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
}
.wizard-dialog::backdrop {
  background: rgba(18, 59, 66, 0.62);
  backdrop-filter: blur(4px);
}
.wizard-shell {
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 59, 66, 0.28);
  max-height: min(92vh, 40rem);
  display: flex;
  flex-direction: column;
}
.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  background: var(--petroleo);
  color: #fff;
}
.wizard-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.wizard-brand img {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.wizard-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--menta);
  margin-bottom: 0.15rem;
}
.wizard-header h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.wizard-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  opacity: 0.8;
}
.wizard-close:hover { opacity: 1; }
.wizard-progress {
  height: 0.25rem;
  background: var(--mineral-deep);
}
.wizard-progress-bar {
  height: 100%;
  width: 25%;
  background: var(--menta);
  transition: width 0.25s ease;
}
.wizard-step-label {
  padding: 0.75rem 1.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pizarra);
}
.wizard-body {
  padding: 0.5rem 1.25rem 1.25rem;
  overflow-y: auto;
}
.wizard-step h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--petroleo);
  margin-bottom: 0.35rem;
}
.wizard-help {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.wizard-options {
  display: grid;
  gap: 0.65rem;
}
.wizard-option {
  text-align: left;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.wizard-option strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--grafito);
  margin-bottom: 0.2rem;
}
.wizard-option span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.wizard-option:hover,
.wizard-option:focus-visible {
  border-color: var(--menta);
  outline: none;
}
.wizard-option.is-selected {
  border-color: var(--menta);
  background: var(--menta-soft);
  box-shadow: 0 0 0 3px var(--menta-soft);
}
.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid var(--line);
}
.wizard-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: var(--warning-ink);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.wizard-unit {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  background: var(--bg);
  margin-top: 0.75rem;
}
.wizard-unit.is-primary {
  border-color: var(--menta);
  box-shadow: 0 0 0 3px var(--menta-soft);
  background: #fff;
}
.wizard-unit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.wizard-unit-code {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--petroleo);
  letter-spacing: 0.04em;
}
.wizard-unit h4 {
  font-size: 1rem;
  color: var(--grafito);
  margin: 0;
}
.wizard-unit-meta {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.wizard-unit-reason {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--pizarra);
  line-height: 1.4;
}
.wizard-unit-actions { margin-top: 0.9rem; }
.wizard-alts-title {
  margin-top: 1.35rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pizarra);
}
.wizard-alts {
  display: grid;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .wizard-dialog {
    max-width: 100vw;
    width: 100vw;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .wizard-shell {
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}
