/* ==========================================================================
   Base — reset, tokens, layout y componentes compartidos por las 4 variantes
   ========================================================================== */

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

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f2ef;
  --text: #171614;
  --muted: #5d5a54;
  --primary: #1c1b18;
  --primary-ink: #fffaf3;
  --accent: #b45309;
  --border: rgba(23, 22, 20, 0.14);
  --font-display: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 30px -16px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.06), 0 30px 60px -28px rgba(0, 0, 0, 0.35);
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

button { font: inherit; color: inherit; }

::selection { background: var(--primary); color: var(--primary-ink); }

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

[hidden] { display: none !important; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}
.skip-link:focus { top: 12px; }

/* --- Botones ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover { box-shadow: var(--shadow-2); }

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--invert {
  background: var(--primary-ink);
  color: var(--primary);
}
.btn--invert:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow:hover { text-decoration: underline; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.link-button:hover { color: var(--primary); }

/* --- Header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  padding-block: 0.35rem;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header__cta {
  padding: 0.62rem 0.95rem;
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

/* --- Hero --------------------------------------------------------------- */

.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(48px, 7vw, 96px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.55rem, 5.3vw, 4.5rem);
  max-width: 15ch;
}

.hero__sub {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero__proof svg { color: var(--accent); }
.hero__proof strong { color: var(--text); font-weight: 700; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero__points li { display: flex; align-items: center; gap: 0.5rem; }
.hero__points li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Facts -------------------------------------------------------------- */

.facts {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: 0.95rem;
}

.facts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 2rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.facts__list li { display: flex; align-items: center; gap: 0.6rem; }
.facts__list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- Encabezados de sección --------------------------------------------- */

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
.section-head p {
  margin-top: 0.8rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1rem;
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

/* --- Servicios ---------------------------------------------------------- */

.services { border-top: 1px solid var(--border); }

.service {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: start;
  padding-block: clamp(1.15rem, 2.2vw, 1.65rem);
  border-bottom: 1px solid var(--border);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--primary);
  background: var(--surface);
}

.service h3 {
  font-size: clamp(1.06rem, 1.5vw, 1.18rem);
  letter-spacing: -0.015em;
}
.service p {
  margin-top: 0.3rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.94rem;
}

.service__meta {
  padding-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.services__note {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --- Sobre nosotros ----------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

.about__body h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); max-width: 18ch; }

.about__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}
.about__body > p:not(.about__lead):not(.about__sign) {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 56ch;
}

.checks {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}
.checks li { display: flex; align-items: flex-start; gap: 0.6rem; }
.checks svg { flex: none; margin-top: 0.22rem; color: var(--primary); }

.about__sign {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
}

/* --- Galería ------------------------------------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.025); }

.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: span 6; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-167 { aspect-ratio: 16 / 7; }

/* --- Reseñas ------------------------------------------------------------ */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote {
  padding: 0.4rem clamp(1rem, 2.4vw, 2rem) 0.4rem 0;
}
.quote + .quote {
  border-left: 1px solid var(--border);
  padding-left: clamp(1rem, 2.4vw, 2rem);
}

.quote__stars { display: flex; gap: 2px; color: var(--accent); }

.quote blockquote {
  margin: 0.9rem 0 1.1rem;
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.quote__author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.quote__author strong { color: var(--text); font-weight: 600; }

/* --- Ubicación ---------------------------------------------------------- */

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.location__info h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
.location__text {
  margin-top: 0.9rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.96rem;
}

.hours {
  width: 100%;
  margin-top: 1.75rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.hours caption {
  text-align: left;
  padding-bottom: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.hours th,
.hours td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }

.address {
  margin: 1.5rem 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.75;
}
.address a { text-decoration: underline; text-decoration-color: var(--border); }

.map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 20%, transparent 72%);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}
.map__placeholder > svg { color: var(--primary); }
.map__address { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.map__note { font-size: 0.74rem; }

/* --- FAQ ---------------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.faq__grid > h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); max-width: 14ch; }

.faq__list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 0.35s var(--ease); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 1.15rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.94rem;
}

/* --- Contacto ----------------------------------------------------------- */

.contact {
  background: var(--primary);
  color: var(--primary-ink);
  padding-block: clamp(56px, 9vw, 104px);
}

.contact__inner {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__inner h2 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  max-width: 20ch;
  color: var(--primary-ink);
}
.contact__inner > p:not(.contact__alt) {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: 1.02rem;
  opacity: 0.86;
}
.contact .btn--invert { margin-top: 2rem; }

.contact__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  opacity: 0.86;
}
.contact__alt span { display: inline-flex; align-items: center; gap: 0.4rem; }
.contact__alt a { text-decoration: underline; text-underline-offset: 0.2em; }

/* --- Footer ------------------------------------------------------------- */

.footer {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 1.75rem;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 2.5rem;
}

.footer__name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.footer__name .brand__mark { width: 30px; height: 30px; font-size: 0.72rem; }

.footer__tagline { margin-top: 0.8rem; color: var(--muted); max-width: 34ch; }
.footer__addr { margin-top: 0.4rem; color: var(--muted); font-size: 0.84rem; }

.footer__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer__nav ul { display: grid; gap: 0.45rem; }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: var(--text); text-decoration: underline; }

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.footer__contact a { color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer__contact a:hover { color: var(--text); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.footer__legal a:hover, .footer__credit a:hover { color: var(--text); text-decoration: underline; }
.footer__credit a { text-decoration: underline; text-underline-offset: 0.18em; }

/* --- WhatsApp flotante y barra móvil ------------------------------------ */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.05rem;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { flex: none; }

.wa-bar { display: none; }

/* --- Selector de demo --------------------------------------------------- */

.demo-switch {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 85;
  font-size: 0.8rem;
}
.demo-switch > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-1);
}
.demo-switch > summary::-webkit-details-marker { display: none; }
.demo-switch > summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.demo-switch[open] > summary { color: var(--text); }

.demo-switch__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 264px;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.demo-switch__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.45rem 0.5rem;
}
.demo-switch__panel ul { display: grid; gap: 2px; }
.demo-switch__panel a {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--r-sm);
}
.demo-switch__panel a:hover { background: var(--surface-2); }
.demo-switch__panel a[aria-current='page'] { background: var(--surface-2); }
.demo-switch__panel a span { font-weight: 600; color: var(--text); font-size: 0.84rem; }
.demo-switch__panel a small { color: var(--muted); font-size: 0.72rem; }
.demo-switch__note {
  margin-top: 0.5rem;
  padding: 0.5rem 0.45rem 0.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --- Cookies ------------------------------------------------------------ */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 95;
  width: min(660px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: 0.84rem;
  color: var(--muted);
}
.cookie p { max-width: 46ch; }
.cookie a { color: var(--text); text-decoration: underline; }
.cookie__actions { display: flex; gap: 0.5rem; }
.cookie .btn { padding: 0.55rem 0.85rem; font-size: 0.82rem; }

/* --- Páginas legales y 404 ---------------------------------------------- */

.legal-page { background: var(--bg); }

.legal-header { border-bottom: 1px solid var(--border); }
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.legal {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 72px);
}
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
.legal h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  letter-spacing: -0.015em;
}
.legal p, .legal li { color: var(--muted); font-size: 0.96rem; }
.legal p + p { margin-top: 0.85rem; }
.legal ul { margin-top: 0.85rem; display: grid; gap: 0.4rem; padding-left: 1.1rem; list-style: disc; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.18em; }
.legal__updated {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal > p:first-of-type { margin-top: 1.6rem; font-size: 1rem; }

.legal-footer { border-top: 1px solid var(--border); padding-block: 1.25rem; }
.legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.legal-footer a { text-decoration: underline; }

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.error-page__inner { text-align: center; max-width: 460px; }
.error-page__code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.error-page h1 { margin-top: 0.6rem; font-size: clamp(2rem, 5vw, 3rem); }
.error-page p:not(.error-page__code):not(.error-page__brand) { margin-top: 0.9rem; color: var(--muted); }
.error-page .btn { margin-top: 1.8rem; }
.error-page__brand { margin-top: 2.5rem; font-size: 0.8rem; color: var(--muted); }

/* --- Movimiento --------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * {
    animation: rise 0.9s var(--ease) both;
  }
  .js .hero__copy > *:nth-child(2) { animation-delay: 0.07s; }
  .js .hero__copy > *:nth-child(3) { animation-delay: 0.14s; }
  .js .hero__copy > *:nth-child(4) { animation-delay: 0.2s; }
  .js .hero__copy > *:nth-child(5) { animation-delay: 0.26s; }
  .js .hero__media { animation: media-in 1.1s var(--ease) both 0.08s; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes media-in {
  from { opacity: 0; transform: translateY(22px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 960px) {
  .header__inner { gap: 1rem; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-1);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--border); }
  .nav a { display: block; padding-block: 0.95rem; font-size: 1rem; color: var(--text); }
  .nav a::after { display: none; }
  .nav-toggle { display: grid; }
  .header__cta span { display: none; }
  .header__cta { padding: 0.6rem; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__title { max-width: 18ch; }
  .hero__media { aspect-ratio: 4 / 3; max-height: 460px; }
  .about__grid, .location__grid, .faq__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 10; }
  .faq__grid > h2 { max-width: none; }
  .quotes { grid-template-columns: 1fr; }
  .quote { padding: 1.4rem 0; }
  .quote + .quote {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .demo-switch { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; --gutter: 20px; }

  body { padding-bottom: 58px; }

  .facts__list { gap: 0.45rem 1.25rem; font-size: 0.8rem; }

  .service {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.5rem 0.9rem;
  }
  .service__icon { width: 38px; height: 38px; border-radius: var(--r-sm); }
  .service__meta {
    grid-column: 2;
    padding-top: 0.15rem;
    font-size: 0.72rem;
  }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery__item, .span-3, .span-2, .span-6 {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }
  .gallery__item.span-6 { grid-column: span 2; aspect-ratio: 3 / 2; }

  .map { min-height: 300px; }

  .wa-float { display: none; }
  .wa-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
    background: var(--primary);
    color: var(--primary-ink);
    font-size: 0.95rem;
    font-weight: 700;
  }

  .cookie { bottom: 70px; }
  .cookie { flex-direction: column; align-items: flex-start; }

  .contact__alt { flex-direction: column; align-items: center; gap: 0.5rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(2.15rem, 10.5vw, 2.8rem); }
  .header__cta { display: none; }
  .brand__name { font-size: 0.98rem; }
}
