/* =====================================================================
   Luna Hair and Barbershop — estilos
   Los colores y medidas principales están en :root. Cambia un valor ahí
   y se actualiza en todo el sitio.
   ===================================================================== */

/* ---------- Fuentes (autohospedadas en assets/fonts) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #1B222B;
  --cream: #E9E5E1;
  --champagne: #E6C694;
  --champagne-hover: #F0D6AC;
  --gold: #C49A50;           /* estrellas de las reseñas (dorado más intenso para que se lea sobre crema) */
  --sand: #B59A7A;
  --hairline: rgba(181, 154, 122, .35);
  --hairline-row: rgba(181, 154, 122, .28);
  --hairline-strong: rgba(181, 154, 122, .6);

  --serif: "Lora", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 84px;
  --container: 1240px;
  --pad-x: clamp(20px, 5vw, 48px);
  --pad-y: clamp(32px, 4.5vw, 60px); /* padding vertical de las secciones (no aplica al hero) */
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } /* scroll suave al hacer clic en el menú */
body {
  background: var(--navy);
  color: var(--navy);
  font-family: var(--sans);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: .85; }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--navy);
}
::selection { background: var(--champagne); color: var(--navy); }
[hidden] { display: none !important; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--champagne); color: var(--navy);
  padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { opacity: 1; }
.btn--sm { min-height: 48px; padding: 0 20px; font-size: 15px; }

/* sobre navy */
.btn--gold { background: var(--champagne); color: var(--navy); }
.btn--gold:hover { background: var(--champagne-hover); color: var(--navy); }
.btn--ghost-light { border-color: var(--cream); color: var(--cream); background: rgba(27, 34, 43, .35); }
.btn--ghost-light:hover { background: rgba(233, 229, 225, .1); color: var(--cream); }
/* sobre cream */
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { opacity: .88; color: var(--cream); }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn--ghost-dark:hover { background: rgba(27, 34, 43, .06); color: var(--navy); }

/* ---------- Encabezados de sección ---------- */
.section {
  padding: var(--pad-y) var(--pad-x);
  scroll-margin-top: var(--header-h);
}
.section--cream { background: var(--cream); color: var(--navy); }
.section--navy { background: var(--navy); color: var(--cream); }
.section > .container { display: flex; flex-direction: column; gap: 24px; }

.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 20px;
}
.kicker {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--sand); }
.section--navy .kicker { color: var(--champagne); }
.h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: .02em;
}

/* =====================================================================
   1. HEADER
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--hairline);
}
.header-bar {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h); padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  color: var(--cream); text-decoration: none;
}
.brand:hover { opacity: 1; }
.brand img { width: clamp(50px, 5vw, 60px); height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .32em; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--champagne); }

.main-nav { margin-left: auto; display: flex; gap: 28px; }
.main-nav a {
  color: var(--cream); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 12px 0;
}
.main-nav a:hover { color: var(--champagne); opacity: 1; }

.lang-toggle {
  display: flex; align-items: center; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
}
.lang-toggle button {
  min-width: 46px; height: 44px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font: 600 14px var(--sans); letter-spacing: .08em;
  background: transparent; color: var(--cream);
}
.lang-toggle button:hover { background: rgba(233, 229, 225, .1); }
.lang-toggle button[aria-pressed="true"],
.lang-toggle button[aria-pressed="true"]:hover { background: var(--champagne); color: var(--navy); }

.menu-btn {
  width: 48px; height: 48px;
  display: none; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--cream); cursor: pointer;
}
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  background: var(--navy); border-top: 1px solid var(--hairline);
  padding: 8px clamp(16px, 4vw, 40px) 20px;
  flex-direction: column;
  display: none;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: var(--cream); text-decoration: none;
  font-family: var(--serif); font-size: 22px;
  padding: 14px 0; border-bottom: 1px solid rgba(181, 154, 122, .25);
}

/* =====================================================================
   2. HERO
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--cream);
  min-height: min(70vh, 640px);
  display: flex; align-items: center;
  padding: 128px var(--pad-x) 56px;
}
.hero-photo {
  position: absolute; top: 0; right: 0;
  width: 62%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: saturate(.9);
}
/* el video usa el mismo tratamiento que la foto; solo cambia el encuadre
   para que se vea la cabeza del barbero */
.hero-video { object-position: center 4%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #1B222B 0%, #1B222B 38%, rgba(27,34,43,.82) 50%, rgba(27,34,43,.25) 72%, rgba(27,34,43,.1) 100%),
    linear-gradient(0deg, rgba(27,34,43,.7) 0%, rgba(27,34,43,0) 30%);
}
.hero-inner {
  position: relative; width: 100%;
  max-width: var(--container); margin: 0 auto;
  animation: lunaIn .9s ease-out both;
}
.hero-content {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 26px; max-width: 600px;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.2vw, 80px); line-height: 1.02;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream); text-wrap: balance;
}
.hero h1 span { color: var(--champagne); }
.hero h1 .h1-lead { color: var(--cream); }
.hero-value {
  margin: 0; max-width: 30em;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn--ghost-light { padding: 0 24px; }

.status {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 600; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.status-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sand);
}
.status.is-open .status-dot {
  background: var(--champagne);
  animation: lunaPulse 2s ease-out infinite;
}

/* =====================================================================
   SELLO (logo con texto girando, entre hero y servicios)
   --seal-size cambia el tamaño; la duración de la animación, la velocidad.
   ===================================================================== */
.seal-wrap {
  --seal-size: clamp(132px, 13vw, 176px);
  position: relative; z-index: 2;
  height: 0;
  display: flex; justify-content: center;
}
.seal {
  position: relative; flex: none;
  width: var(--seal-size); height: var(--seal-size);
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 0 0 6px var(--cream);
}
.seal-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  animation: sealSpin 24s linear infinite;
}
.seal-ring text {
  fill: var(--champagne);
  font-family: var(--serif); font-weight: 500; font-size: 16px;
  text-transform: uppercase;
  /* El espacio entre letras hace que el texto dé la vuelta completa al círculo
     con los puntos a distancias iguales. Safari ignora textLength en textPath,
     por eso se usa letter-spacing. Si cambias el texto o el tamaño, ajusta este valor. */
  letter-spacing: 9.38px;
}
.seal-ring .seal-luna { fill: #FFFFFF; font-weight: 600; }
.seal-mark {
  position: absolute; left: 50%; top: 50%;
  width: 58%; height: auto; /* más de ~58% y el logo toca el texto */
  transform: translate(-50%, -50%);
}
@keyframes sealSpin { to { transform: rotate(-360deg); } } /* negativo = contrarreloj */

/* espacio extra para que el sello no tape el contenido */
.hero:has(+ .seal-wrap) { padding-bottom: calc(56px + var(--seal-pad, 40px)); }
.seal-wrap + .section { padding-top: calc(var(--pad-y) + 48px); }

/* =====================================================================
   3. SERVICIOS
   ===================================================================== */
.svc-tabs {
  display: none;
  grid-template-columns: 1fr 1fr; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
}
.svc-tabs button {
  min-height: 50px; border: 0; cursor: pointer;
  font: 600 16px var(--sans);
  background: transparent; color: var(--navy);
}
.svc-tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.svc-group { display: flex; flex-direction: column; }
.svc-group h3 {
  margin: 0 0 8px; padding-bottom: 16px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--sand);
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li {
  padding: 16px 0; border-bottom: 1px solid var(--hairline-row);
  display: flex; flex-direction: column; gap: 4px;
}
.svc-row { display: flex; align-items: baseline; gap: 12px; }
.svc-name { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.svc-row::after {
  /* línea punteada entre nombre y precio */
  content: ""; order: 1; flex: 1; min-width: 16px;
  border-bottom: 1px dotted rgba(181, 154, 122, .7);
  transform: translateY(-4px);
}
.svc-price {
  order: 2;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.svc-desc { margin: 0; font-size: 15px; line-height: 1.5; max-width: 36em; }
.svc-cta { align-self: flex-start; }

/* =====================================================================
   4. GALERÍA
   ===================================================================== */
.gallery-ig {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 600; font-size: 16px; color: var(--cream); text-decoration: underline;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 48px; padding: 0 20px; cursor: pointer;
  border: 1px solid rgba(233, 229, 225, .6); border-radius: var(--radius);
  font: 600 15px var(--sans);
  background: transparent; color: var(--cream);
}
.filters button[aria-pressed="true"] { background: var(--champagne); color: var(--navy); border-color: var(--champagne); }

.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  columns: 4; column-gap: 12px;
}
.tile { break-inside: avoid; margin: 0 0 12px; }
.tile-btn {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline); cursor: zoom-in;
  background: var(--navy); color: var(--cream);
}
.tile--wide .tile-btn { aspect-ratio: 3 / 2; }
.tile[data-cat="shop"] .tile-btn { background: var(--sand); color: var(--navy); }
.tile-btn img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* placeholder (lo genera main.js cuando no hay foto) */
.ph-mark {
  position: absolute; left: 50%; top: 50%;
  width: 38%; max-width: 140px; transform: translate(-50%, -50%);
  opacity: .16;
}
.ph-label {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(27, 34, 43, .96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 64px 16px 24px;
}
.lb-close {
  position: absolute; top: 12px; right: 12px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(233, 229, 225, .5); border-radius: var(--radius);
  color: var(--cream); cursor: pointer;
}
.lb-close .icon, .lb-nav .icon { width: 22px; height: 22px; }
.lb-figure { margin: 0; width: min(100%, 620px); display: flex; flex-direction: column; gap: 12px; }
.lb-figure.is-wide { width: min(100%, 1100px); }
.lb-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  max-height: calc(100vh - 200px); overflow: hidden;
  background: var(--navy);
}
.lb-figure.is-wide .lb-frame { aspect-ratio: 3 / 2; }
.lb-frame.is-shop { background: var(--sand); }
.lb-frame img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: var(--navy);
}
.lb-frame .ph-mark { width: 34%; max-width: none; }
.lb-caption {
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--cream); font-size: 15px;
}
.lb-counter { color: var(--sand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-controls { display: flex; gap: 12px; }
.lb-nav {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--champagne); border-radius: var(--radius);
  color: var(--champagne); cursor: pointer;
}
.lb-nav:hover { background: rgba(230, 198, 148, .1); }
body.no-scroll { overflow: hidden; }

/* =====================================================================
   5. RESEÑAS
   ===================================================================== */
.rating { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.rating-num { font-family: var(--serif); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-sub { font-size: 15px; line-height: 1.4; }

/* Marquee: las tarjetas se desplazan a la izquierda y se desvanecen en los bordes.
   --marquee-speed: segundos que tarda una vuelta (lo calcula main.js según el ancho). */
.review-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.review-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; width: max-content;
}
.review-list.is-running { animation: marquee var(--marquee-speed, 40s) linear infinite; }
.review-marquee:hover .review-list,
.review-marquee:focus-within .review-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.review {
  flex: none; width: min(420px, 86vw);
  margin-right: 16px; /* separación entre tarjetas (margen, no gap, para que la vuelta sea exacta) */
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: 18px 22px;
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 16px; row-gap: 8px;
}
.review-stars { margin: 0; letter-spacing: .14em; font-size: 15px; color: var(--gold); }
.review-author { margin: 0; justify-self: end; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.review blockquote {
  grid-column: 1 / -1; grid-row: 2;
  margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.5; font-style: italic;
}
@media (max-width: 519.98px) {
  .review { padding: 16px 18px; }
  .review blockquote { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .action-bar, .action-bar.is-hidden { transition: none; }
  /* sin animación: las tarjetas se ven en fila y se pueden deslizar con el dedo */
  .review-marquee { overflow-x: auto; }
}

.reviews-empty {
  border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong);
  padding: clamp(40px, 6vw, 64px) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.reviews-empty img { width: 64px; height: auto; opacity: .85; }
.reviews-empty-title { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); max-width: 22em; text-wrap: balance; }
.reviews-empty-text { margin: 0; font-size: 16px; line-height: 1.55; max-width: 32em; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   6. VISÍTANOS / PIE
   ===================================================================== */
.site-footer { padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: 20px; }
.visit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--sand); padding-top: clamp(28px, 4vw, 40px);
}
.visit-col { display: flex; flex-direction: column; gap: 14px; }
.visit-col h3 {
  margin: 0; font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--champagne);
}
.visit-col address { font-style: normal; font-size: 18px; line-height: 1.5; font-family: var(--serif); }
.visit-col .btn { align-self: flex-start; }
.visit-col .btn--ghost-light { background: transparent; }
.visit-col .btn--ghost-light:hover { background: rgba(233, 229, 225, .08); }

.hours {
  margin: 0; display: grid; grid-template-columns: auto 1fr;
  column-gap: 20px; row-gap: 6px; font-size: 16px;
}
.hours > div { display: contents; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today dt, .hours .is-today dd { font-weight: 600; color: var(--champagne); }
.hours-note { margin: 0; font-size: 14px; color: var(--sand); }

.contact-link {
  display: inline-flex; align-items: center; min-height: 48px; color: var(--cream);
}
.contact-link:hover { color: var(--champagne); opacity: 1; }
.contact-phone { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.contact-wa { font-size: 16px; font-weight: 600; }
.socials { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: 50%; color: var(--cream);
}
.socials a:hover { color: var(--champagne); border-color: var(--champagne); opacity: 1; }
.socials .icon { width: 20px; height: 20px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--hairline); padding-top: 24px;
  font-size: 14px; color: var(--sand);
}
.footer-bottom span:first-child { display: flex; align-items: center; gap: 12px; }
.footer-bottom img { width: 24px; height: auto; }

/* =====================================================================
   7. BARRA DE ACCIÓN MÓVIL
   ===================================================================== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--navy); border-top: 1px solid rgba(181, 154, 122, .45);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: none; grid-template-columns: 1fr 1fr; gap: 10px;
}
.action-bar .btn { gap: 8px; padding: 0 12px; }
/* JS la esconde mientras se ven los botones del hero, para no mostrar 4 botones a la vez */
.action-bar {
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0s;
}
.action-bar.is-hidden {
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
}

/* =====================================================================
   8. PÁGINAS LEGALES (privacidad.html, terminos.html)
   ===================================================================== */
.header-back {
  margin-left: auto; color: var(--cream); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 12px 0;
}
.header-back:hover { color: var(--champagne); opacity: 1; }
.legal-page .lang-toggle { margin-left: 0; }
.legal {
  padding-top: calc(var(--header-h) + var(--pad-y));
  padding-bottom: calc(var(--pad-y) * 1.5);
}
.legal > .container { max-width: 760px; }
.legal [data-lang-block] { display: flex; flex-direction: column; gap: 14px; }
.legal-body { margin-top: 18px; }
.legal-body > h2:first-of-type { margin-top: 32px; }
.legal-updated { margin: 0; font-size: 15px; color: #6b5d4c; }
.legal-body { font-size: 17px; line-height: 1.65; }
.legal-body h2 {
  margin: 40px 0 10px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 27px); line-height: 1.25;
}
.legal-body p, .legal-body ul { margin: 0 0 14px; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy); }
.legal-body address { font-style: normal; }
.legal-foot { padding-top: 0; padding-bottom: 20px; }
.footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; } /* 16px de separación cuando el crédito baja a otra línea */
.footer-legal { display: flex; gap: 20px; }
.footer-credit { color: var(--sand); text-decoration: none; }
.footer-credit:hover { color: var(--champagne); opacity: 1; }
.footer-legal a { color: var(--sand); }
.footer-legal a:hover { color: var(--champagne); opacity: 1; }

/* =====================================================================
   RESPONSIVE (breakpoint principal: 900px)
   ===================================================================== */
@media (max-width: 899.98px) {
  .main-nav, .header-book { display: none; }
  .header-back { font-size: 14px; }
  .lang-toggle { margin-left: auto; }
  .menu-btn { display: flex; }

  .hero {
    min-height: 78svh; align-items: flex-end;
    padding: 126px 20px 36px;
  }
  .hero-photo { width: 100%; height: 68%; object-position: center 30%; }
  .hero-video { object-position: center top; } /* el header tapa la parte de arriba */
  .hero-shade {
    background: linear-gradient(180deg, rgba(27,34,43,.55) 0%, rgba(27,34,43,.15) 18%, rgba(27,34,43,.35) 42%, #1B222B 66%);
  }

  .svc-tabs { display: grid; }
  .svc-group h3 { display: none; }
  .svc-group:not(.is-active) { display: none; }

  .gallery-grid { columns: 3; }

  /* botones del hero del mismo ancho, uno encima del otro */
  .hero-actions { display: grid; grid-template-columns: minmax(0, max-content); }

  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .action-bar { display: grid; }
}
@media (max-width: 519.98px) {
  .gallery-grid { columns: 2; }
}
/* celulares angostos (iPhone SE y similares) */
@media (max-width: 399.98px) {
  .header-bar { gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 44px; }
  .brand-name { font-size: 20px; letter-spacing: .26em; }
  .brand-sub { font-size: 10px; letter-spacing: .1em; }
  .lang-toggle { flex: none; }
  .lang-toggle button { min-width: 42px; }
  .menu-btn { flex: none; }
  .header-back { display: none; } /* el logo ya lleva al inicio */
  .hero h1 { font-size: clamp(34px, 11vw, 44px); }
}

/* ---------- Motion ---------- */
@keyframes lunaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 198, 148, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(230, 198, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 198, 148, 0); }
}
@keyframes lunaIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
