/* ==========================================================================
   Áreas & Arias — homepage design system (redesign 2026)
   Tokens per CLAUDE-CODE-HANDOFF.md §1. Greyscale only; the WhatsApp green
   is the single saturated color on the page (deliberate — do not add accents).
   Contrast deviations from the mock (DoD requires ≥4.5:1): eyebrows/meta on
   light use --muted-strong instead of --muted-2; marquee text uses
   --muted-deep; footer meta uses #7d7d7d. All stay inside the gray family.
   ========================================================================== */

/* Self-hosted fonts (latin subset) — no third-party render-blocking CSS */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/karla.woff2') format('woff2');
}

:root {
  --bg: #f7f7f5;
  --bg-alt: #eeeeec;
  --ink: #111111;
  --ink-hover: #3d3d3d;
  --ink-deep: #0a0a0a;
  --ink-line: #262626;
  --field: #161616;
  --field-border: #2b2b2b;
  --field-focus: #6e6e6e;
  --body-c: #3d3d3d;
  --muted: #4a4a4a;
  --muted-2: #8a8a8a;      /* dark surfaces only (5.4:1 on --ink) */
  --muted-strong: #6e6e6e; /* light-surface eyebrows/meta (4.8:1) */
  --muted-deep: #666666;   /* marquee on --bg-alt (4.9:1) */
  --line: #e2e2df;
  --line-strong: #c7c7c3;
  --step-line: #d4d4d0;
  --on-dark: #f2f2f0;
  --on-dark-muted: #b4b4b0;
  --on-dark-faint: #d9d9d5;
  --footer-line: #1e1e1e;
  --footer-meta: #7d7d7d;  /* 4.8:1 on --ink-deep (mock's #757575 = 4.3) */
  --whatsapp: #25d366;
  --whatsapp-ink: #0b2b16;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Karla, Helvetica, Arial, sans-serif;
  --radius: 2px;
  --container: 1240px;
  --pad-x: 32px;
  --section-y: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted-strong); }
.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted-strong); }
.text-link:hover { text-decoration-color: currentColor; }
img { max-width: 100%; }
input, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.utility :focus-visible,
.on-dark :focus-visible,
.site-footer :focus-visible,
.cookie-banner :focus-visible,
.whatsapp-fab:focus-visible { outline-color: var(--on-dark); }
/* overflow-x:hidden alone would make .page a scroll container (overflow-y
   computes to auto) and the reveal translateY offset then spawns a second
   scrollbar on first load; clip clips without creating a scroll container. */
.page { width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { .page { overflow: clip; } }
main { display: block; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

section { scroll-margin-top: 96px; }

/* ---- Type roles ---- */
.eyebrow {
  margin: 0 0 22px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 400;
}
.on-dark .eyebrow { color: var(--muted-2); }
.hero .eyebrow { margin-bottom: 26px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 0.98; letter-spacing: -0.015em; }
h1 em { font-style: italic; color: #5a5a5a; }
.h2-lg { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; }
.h2-md { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.01em; }
.lead { margin: 30px 0 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--body-c); max-width: 44ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-dark { background: var(--ink); color: var(--bg); font-weight: 500; }
.btn-dark:hover { background: var(--ink-hover); color: var(--bg); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #ffffff; color: var(--ink); font-weight: 600; font-size: 16px; padding: 18px 34px; white-space: nowrap; }
.btn-light:hover { background: var(--ink-hover); color: #ffffff; }

/* ---- Utility bar ---- */
.utility {
  background: var(--ink);
  color: #a8a8a8;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.utility .container {
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.utility-links { display: flex; gap: 24px; align-items: center; }
.utility a { color: #a8a8a8; }
.utility a.utility-phone { color: #ffffff; }
.utility a:hover { color: #ffffff; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.wordmark { font-family: var(--serif); font-size: 23px; letter-spacing: 0.01em; }
.wordmark .amp { color: var(--muted-strong); }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14.5px; letter-spacing: 0.02em; }
.site-nav .btn { padding: 11px 20px; font-size: 14.5px; }
.header-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ---- Drawer (mobile nav) ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px 32px;
  transform: translateX(100%);
  transition: transform 300ms ease, visibility 0s linear 300ms;
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; transition: transform 300ms ease, visibility 0s; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { background: none; border: 0; font-size: 28px; line-height: 1; padding: 8px 12px; cursor: pointer; color: var(--ink); }
.drawer-nav { display: flex; flex-direction: column; gap: 8px; }
.drawer-nav a { font-family: var(--serif); font-size: 30px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: auto; text-align: center; }
body.drawer-locked { overflow: hidden; }

/* ---- Hero ---- */
.hero .container {
  padding-top: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
  background: var(--line);
  display: block;
}
.hero-card {
  position: absolute;
  left: -40px;
  bottom: 40px;
  background: var(--bg);
  padding: 26px 30px;
  max-width: 230px;
  border-left: 2px solid var(--ink);
}
.hero-card-num { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1; }
.hero-card p:last-child { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---- Marquee ---- */
.marquee {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: aa-marquee 38s linear infinite;
  padding-block: 16px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted-deep);
  white-space: nowrap;
}
.marquee-track span { padding-right: 40px; }
@keyframes aa-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Taller ---- */
.taller .container {
  padding-block: var(--section-y);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.taller img { width: 100%; height: 540px; object-fit: cover; background: var(--line); display: block; }
.taller h2 ~ p { margin: 26px 0 0; font-size: 17px; color: var(--body-c); }
.taller h2 ~ p + p { margin-top: 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stats p { margin: 0; font-family: var(--serif); font-size: 30px; color: var(--ink); }
.stats small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted-strong); letter-spacing: 0.03em; }

/* ---- Servicios (dark band) ---- */
.servicios { background: var(--ink); color: var(--on-dark); }
.servicios .container { padding-block: var(--section-y); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}
.section-head .h2-lg { max-width: 22ch; }
.link-underline {
  color: var(--on-dark);
  border-bottom: 1px solid var(--muted-strong);
  padding-bottom: 6px;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.link-underline:hover { color: #ffffff; border-color: #ffffff; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
}
.card { background: var(--ink); padding: 44px 38px 48px; color: var(--on-dark); }
.card-num { margin: 0 0 30px; font-family: var(--serif); font-size: 20px; color: var(--on-dark-faint); }
.card h3 { font-size: clamp(24px, 2.6vw, 29px); line-height: 1.15; }
.card h3 + p { margin: 18px 0 0; font-size: 16px; color: var(--on-dark-muted); }

/* ---- Galería ---- */
.galeria .container { padding-block: var(--section-y); }
.galeria .section-head { margin-bottom: 52px; }
.section-note { margin: 0; max-width: 38ch; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 14px;
}
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; background: var(--line); }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.tile-main { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.gallery-grid figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #ffffff;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

/* ---- Proceso ---- */
.proceso { border-top: 1px solid var(--line); }
.proceso .container { padding-block: 104px; }
.proceso .h2-lg { margin-bottom: 60px; max-width: 20ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step { border-top: 1px solid var(--step-line); padding-top: 22px; }
.step:first-child { border-top-color: var(--ink); }
.step-label { margin: 0 0 12px; font-size: 12.5px; letter-spacing: 0.14em; color: var(--muted-strong); }
.step h3 { font-size: clamp(22px, 2.2vw, 25px); }
.step p:last-child { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: var(--on-dark); }
.cta-band .container {
  padding-block: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.cta-band .h2-md { max-width: 24ch; }

/* ---- Footer ---- */
.site-footer { background: var(--ink-deep); border-top: 1px solid var(--ink-line); color: var(--line-strong); }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 0.9fr 1.25fr;
  gap: 48px;
}
.footer-grid--noform { grid-template-columns: 1.1fr 0.9fr 1fr; gap: 64px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; line-height: 1.5; }
.footer-links a { color: var(--line-strong); }
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom a { color: var(--footer-meta); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--on-dark-muted); }
.cookie-banner a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand-row img { width: 46px; height: 46px; object-fit: contain; }
.footer-brand-row .wordmark { font-size: 24px; color: var(--on-dark); }
.footer-blurb { margin: 0; font-size: 16px; max-width: 30ch; }
.footer-h { margin: 0 0 20px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.6; }
.footer-contact a { color: var(--line-strong); }
.footer-contact a.footer-wa { color: var(--on-dark); }
.footer-contact a:hover { color: var(--on-dark-faint); }
.footer-contact address { font-style: normal; }
.footer-hours { color: var(--muted-2); }

.footer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.footer-form input,
.footer-form textarea {
  background: var(--field);
  border: 1px solid var(--field-border);
  color: var(--on-dark);
  padding: 13px 14px;
  font-size: 15px;
  border-radius: var(--radius);
  width: 100%;
}
.footer-form input:focus,
.footer-form textarea:focus { border-color: var(--field-focus); outline: none; }
.footer-form input:focus-visible,
.footer-form textarea:focus-visible { outline: 1px solid var(--field-focus); outline-offset: 1px; }
.footer-form ::placeholder { color: var(--muted-2); opacity: 1; }
.footer-form textarea { resize: vertical; }
.span-2 { grid-column: span 2; }
.footer-form button {
  grid-column: span 2;
  background: var(--on-dark);
  color: var(--ink-deep);
  border: 0;
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  cursor: pointer;
}
.footer-form button:hover { background: #ffffff; }
.footer-form button:disabled { opacity: 0.6; cursor: wait; }
.field-error { margin: -6px 0 0; font-size: 13px; color: var(--on-dark-faint); display: none; }
.field-error.visible { display: block; }
.field-error[data-for="nombre"] { grid-column: 1; }
.field-error[data-for="telefono"] { grid-column: 2; }
.form-message { margin: 12px 0 0; font-size: 13.5px; color: var(--muted-2); min-height: 20px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.footer-bottom { border-top: 1px solid var(--footer-line); }
.footer-bottom .container {
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--footer-meta);
}

/* ---- Inner-page hero (dark band with breadcrumbs) ---- */
.hero-inner { background: var(--ink); color: var(--on-dark); }
.hero-inner .container { display: block; padding-block: 72px 80px; }
.breadcrumbs { margin: 0 0 26px; font-size: 13.5px; letter-spacing: 0.03em; color: var(--muted-2); }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--on-dark); }
.breadcrumbs span[aria-current] { color: var(--on-dark); }
.hero-inner h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.01em; max-width: 22ch; }
.hero-inner .lead { color: var(--on-dark-muted); }
.hero-inner .hero-ctas { margin-top: 32px; }
.btn-ghost-dark { border: 1px solid var(--muted-strong); color: var(--on-dark); }
.btn-ghost-dark:hover { border-color: var(--on-dark); color: var(--on-dark); }

/* ---- Generic sections for inner pages ---- */
.page-section .container { padding-block: var(--section-y); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.split img { width: 100%; height: 460px; object-fit: cover; background: var(--line); display: block; }
.split h2 ~ p { margin: 24px 0 0; font-size: 17px; color: var(--body-c); }
.split h2 ~ p + p { margin-top: 18px; }
.split .btn { margin-top: 30px; }
.split--flip img { order: 2; }
.section-line { border-top: 1px solid var(--line); }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 0; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 18px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--body-c); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.faq-item { border-top: 1px solid var(--line); padding: 28px 0; max-width: 76ch; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: clamp(22px, 2.4vw, 27px); }
.faq-item p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--body-c); }

/* Dark cards as links (Otros servicios) */
a.card { display: block; }
a.card:hover { background: #161616; color: var(--on-dark); }
a.card:hover h3 { color: #ffffff; }
.card-cta { display: inline-block; margin-top: 18px; font-size: 14.5px; letter-spacing: 0.03em; color: var(--on-dark-faint); border-bottom: 1px solid var(--muted-strong); padding-bottom: 4px; }

/* Contacto */
.panel-dark { background: var(--ink); color: var(--on-dark); padding: 34px 30px; border-radius: var(--radius); }
.panel-dark .footer-h { margin-top: 0; }
.map-frame { width: 100%; height: 380px; border: 0; display: block; background: var(--line); }
.contact-list { display: flex; flex-direction: column; gap: 14px; font-size: 17px; margin-top: 26px; }
.map-heading { margin-bottom: 32px; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Floating WhatsApp ---- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
}
.whatsapp-fab svg {
  width: 58px;
  height: 58px;
  padding: 14px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: var(--whatsapp);
  border-radius: 50%;
  fill: var(--whatsapp-ink);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
  transition: background 200ms ease;
}
.whatsapp-fab:hover svg { background: #1ebe5a; }
.fab-label {
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* ---- Cookie banner ---- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 20px;
  bottom: 20px;
  right: 100px;
  max-width: 640px;
  z-index: 65;
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
}
.cookie-banner.visible { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; max-width: 52ch; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }
.cookie-banner button { border-radius: var(--radius); font-size: 13.5px; padding: 9px 16px; cursor: pointer; }
.btn-accept { background: var(--on-dark); color: var(--ink); border: 0; font-weight: 600; }
.btn-accept:hover { background: #ffffff; }
.btn-decline { background: none; color: var(--on-dark-muted); border: 1px solid var(--ink-line); }
.btn-decline:hover { color: var(--on-dark); border-color: var(--muted-strong); }

/* ---- Reveal on scroll (added by JS; no-JS users see everything) ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .gallery-grid img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .drawer { transition: none; }
}

/* ---- Tablet (640–1023) ---- */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: inline-block; margin-left: auto; padding: 11px 20px; font-size: 14.5px; }
  .site-header .container { gap: 12px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-media img { height: 380px; }
  .hero-card { position: static; max-width: none; margin-top: 0; }
  .taller .container { grid-template-columns: 1fr; gap: 40px; }
  .taller img { height: 420px; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .footer-grid--noform { grid-template-columns: 1fr; gap: 48px; }
  .split, .split--flip { grid-template-columns: 1fr; gap: 36px; }
  .split--flip img { order: 0; }
  .split img { height: 340px; }
  .hero-inner .container { padding-block: 52px 60px; }
}

/* ---- Mobile (<640) ---- */
@media (max-width: 639px) {
  :root { --pad-x: 20px; --section-y: 64px; }
  h1 { line-height: 1.05; }
  .h2-lg { line-height: 1.1; }
  .site-header .wordmark { display: none; }
  .header-cta { padding: 11px 14px; font-size: 13.5px; }
  .utility-links a:not(.utility-phone) { display: none; }
  .utility-address { display: none; }
  .proceso .container { padding-block: 64px; }
  .marquee { margin-top: 64px; }
  .gallery-grid { grid-auto-rows: 180px; }
  .cta-band .btn-light { width: 100%; text-align: center; }
  .cookie-banner { right: 16px; left: 16px; bottom: 92px; }
}


/* ---- Drawer service links (mobile menu only; the drawer never shows on desktop) ---- */
.drawer { overflow-y: auto; }
.drawer-sub { display: flex; flex-direction: column; border-left: 1px solid var(--line); margin: 4px 0 8px; }
.drawer-nav .drawer-sub a { font-family: 'Karla', system-ui, sans-serif; font-size: 17px; padding: 9px 0 9px 16px; border-bottom: 0; }
