/* =========================================================
   Tapicería Javier · Landing
   Paleta: negro cálido + grises cálidos + blanco, acento dorado
   Tipos: Fraunces (titulares) + Hanken Grotesk (texto)
   ========================================================= */

/* Fuentes alojadas en la propia web (sin llamadas a Google: más rápido y sin ceder la IP del visitante). Licencia SIL OFL */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 650; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2"); }

:root {
  --ink: #161412;          /* negro cálido */
  --char: #221F1C;         /* carbón */
  --char-2: #2D2925;
  --stone-700: #5B554E;
  --stone-600: #6B645C;    /* texto secundario sobre blanco (AA) */
  --stone-500: #8C857C;
  --stone-300: #CFC9C0;
  --stone-200: #E4DFD8;
  --stone-100: #EDEAE5;
  --linen: #F6F4F0;
  --white: #FFFFFF;
  --gold: #C9A04B;         /* acento: botones y CTAs */
  --gold-2: #DDB867;
  --gold-ink: #7C5E26;     /* dorado legible sobre blanco */
  --wa: #25D366;
  --text: #26221F;

  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --r: 18px;
  --r-sm: 10px;
  --header-h: 72px;
  --gutter: 16px;
  --max: 1240px;
  --shadow: 0 1px 2px rgba(22,20,18,.06), 0 12px 32px -12px rgba(22,20,18,.18);
  --shadow-lg: 0 2px 4px rgba(22,20,18,.06), 0 30px 60px -20px rgba(22,20,18,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--f-sans); font-size: 1rem; line-height: 1.6; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--f-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--ink); padding: .6em 1em; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-lg { width: 30px; height: 30px; flex: none; color: var(--gold-ink); }

/* ---------- Botones (motion: relleno que "se desliza" + pespunte que avanza) ---------- */
.btn {
  --btn-fill: var(--gold-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.35em; border: 0; border-radius: var(--r-sm);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; line-height: 1.2; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), color .3s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill);
  transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: scale(.97); }
.btn .ico-arrow { transition: transform .35s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: .6em 1em; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: .95em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(201,160,75,.8); }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(201,160,75,.95); }

/* Botón "pespunte": borde de costura punteada que avanza al pasar el ratón */
.btn-stitch {
  --st: var(--gold);
  --btn-fill: rgba(201,160,75,.14);
  color: var(--white); background-color: transparent;
  background-image:
    linear-gradient(90deg, var(--st) 55%, transparent 0), linear-gradient(90deg, var(--st) 55%, transparent 0),
    linear-gradient(0deg, var(--st) 55%, transparent 0), linear-gradient(0deg, var(--st) 55%, transparent 0);
  background-size: 12px 1.5px, 12px 1.5px, 1.5px 12px, 1.5px 12px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}
.btn-stitch:hover { animation: stitch-march .7s linear infinite; }
.btn-dark { color: var(--ink); --st: var(--gold-ink); --btn-fill: rgba(201,160,75,.16); }
@keyframes stitch-march {
  to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; margin-top: 14px; font-weight: 600; color: var(--gold-ink);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Tipos de sección ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-white { background: var(--white); }
.section-linen { background: var(--linen); }
.section-stone { background: var(--stone-100); }
.section-dark { background: var(--char); color: var(--stone-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.sec-head h2 em, .hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-white .sec-head h2 em, .section-linen .sec-head h2 em { color: var(--gold-ink); }
.lead { margin-top: 18px; font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--stone-600); max-width: 62ch; }
.section-dark .lead { color: var(--stone-300); }
.sec-head-center .lead { margin-inline: auto; }

/* Nombre de la sección: grande para que se note el cambio de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 20px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); line-height: 1.2;
}
.eyebrow::before {
  content: ""; width: clamp(40px, 5vw, 64px); height: 2px; flex: none; background: currentColor;
  transform-origin: left; transition: transform 1s var(--ease) .1s;
}
.js .eyebrow:not(.is-in)::before { transform: scaleX(0); }
.eyebrow-light { color: var(--gold); }
.sec-head-center .eyebrow { justify-content: center; }

/* Línea lisa entre secciones: se dibuja de izquierda a derecha al entrar en pantalla */
.seam { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); pointer-events: none; transform-origin: left center; }
.js .seam { transform: scaleX(0); transition: transform 1.6s var(--ease-io); }
.js .seam.is-in { transform: scaleX(1); }

/* ---------- Animaciones de entrada (scroll) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Persiana sobre la foto: el recorte va en la foto (no en el contenedor) para que el detector de scroll lo vea siempre */
.js .reveal-img > img, .js .reveal-img > iframe { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io) var(--d, 0s), transform 1.6s var(--ease) var(--d, 0s); }
.js .reveal-img > img { transform: scale(1.14); }
.js .reveal-img.is-in > img, .js .reveal-img.is-in > iframe { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in > img { transform: scale(1); }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%); transition: transform 1s var(--ease) calc(var(--i, 0) * 45ms); }
.js .split.is-in .w > span { transform: none; }

/* ---------- Intro del logo ---------- */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--ink); animation: intro-out .8s var(--ease-io) 1.85s forwards;
}
.intro-seal { width: clamp(120px, 26vw, 168px); height: auto; overflow: visible; }
.i-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--ease-io) forwards; }
.i-ring-o { animation-delay: .1s; transform-origin: center; }
.i-ring-i { animation-delay: .3s; }
.i-chair { opacity: 0; transform-origin: 100px 100px; transform: scale(.55); animation: pop .7s var(--ease) .55s forwards; }
.i-text { opacity: 0; transform-origin: 100px 100px; transform: rotate(-25deg); animation: spin-in .9s var(--ease) .75s forwards; }
.intro-stitch { width: 150px; height: 6px; transform: scaleX(0); animation: grow .7s var(--ease-io) 1s forwards; }
.intro-tag { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-500); opacity: 0; animation: fade .6s ease 1.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes spin-in { to { opacity: 1; transform: rotate(0); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.has-intro .intro { clip-path: inset(0 0 0 0); }

/* Cortina de transición al navegar */
.wipe {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--ink);
  transform: translateY(100%); pointer-events: none; visibility: hidden;
}
.wipe svg { width: 64px; height: 64px; opacity: .9; }
.wipe::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--white);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-solid { background: rgba(22,20,18,.9); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.thread { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.thread span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--gold); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-seal { width: 52px; height: 52px; flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand-seal { transform: rotate(-12deg); }
.brand-word { display: flex; flex-direction: column; font-family: var(--f-serif); line-height: 1; text-transform: uppercase; letter-spacing: .12em; }
.brand-word b { font-weight: 500; font-size: 1.02rem; }
.brand-word b + b { font-size: .8rem; letter-spacing: .34em; color: var(--white); margin-top: 4px; }

.nav { display: none; }
.nav ul { display: flex; gap: 30px; }
.nav a {
  position: relative; display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--stone-200);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-wa .hide-sm { display: none; }

.burger { width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; border: 0; background: transparent; border-radius: 10px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.mmenu[hidden] { display: none; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a {
  font-family: var(--f-serif); font-size: clamp(2rem, 9vw, 2.6rem); color: var(--white); text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(18px); animation: menu-in .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.mmenu nav a:nth-child(1) { --i: 0; } .mmenu nav a:nth-child(2) { --i: 1; } .mmenu nav a:nth-child(3) { --i: 2; } .mmenu nav a:nth-child(4) { --i: 3; } .mmenu nav a:nth-child(5) { --i: 4; }
@keyframes menu-in { to { opacity: 1; transform: none; } }

@media (min-width: 420px) { .header-wa .hide-sm { display: inline; } }
@media (min-width: 1000px) {
  .nav { display: block; }
  .burger { display: none; }
  .brand { margin-right: 0; }
  .nav { margin-inline: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--stone-200);
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(201,160,75,.13), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(201,160,75,.07), transparent 70%),
    var(--ink);
  padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero::before { /* grano sutil tipo tejido */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-watermark { position: absolute; width: 620px; height: 620px; left: -220px; bottom: -260px; opacity: .05; filter: grayscale(1) brightness(3); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero-title { display: flex; flex-direction: column; gap: 18px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-sans); font-size: .8rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold); line-height: 1.3;
}
.stitch-dash { width: 34px; height: 2px; background: currentColor; }
.hero-line { font-size: clamp(2.6rem, 7.4vw, 5.2rem); line-height: 1.02; color: var(--white); font-weight: 450; letter-spacing: -.03em; }
.hero-sub { margin-top: 24px; max-width: 54ch; font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--stone-300); }
.hero-sub strong { color: var(--white); font-weight: 600; }
/* Direcciones de las dos tiendas */
.hero-stores { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.hero-stores li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--white); line-height: 1.35; }
.hero-stores .ico { color: var(--gold); margin-top: 2px; width: 20px; height: 20px; }
.hero-stores small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero-workshop { margin-top: 14px; font-size: .92rem; color: var(--stone-500); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }

/* Foto de la tienda: a todo color, sin capas encima */
.hero-visual { position: relative; padding: 0 0 22px; max-width: 640px; justify-self: center; width: 100%; }
.hero-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--char); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: -26px; left: -6px; width: 112px; height: 112px; display: grid; place-items: center; background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 1px rgba(201,160,75,.35); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: rotate 26s linear infinite; }
.badge-ring text { font-family: var(--f-sans); font-weight: 800; font-size: 9.6px; letter-spacing: 1.6px; fill: var(--gold); }
.badge-chair { width: 46px; height: 46px; }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (min-width: 960px) {
  .hero { min-height: min(100svh, 980px); display: flex; align-items: center; padding-bottom: 140px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero-visual { padding: 0 0 26px; }
  .hero-badge { left: -40px; }
}

/* ---------- Sellos de confianza ---------- */
.trust { position: relative; z-index: 2; margin-top: -64px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-lg);
  border: 1px solid var(--stone-200);
}
.trust-item { display: flex; flex-direction: column; gap: 12px; padding: 22px 18px; }
.trust-item:nth-child(odd) { border-right: 1px solid var(--stone-300); }
.trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--stone-300); }
.trust-item p { display: flex; flex-direction: column; line-height: 1.3; }
.trust-item strong { font-family: var(--f-serif); font-size: 1.22rem; font-weight: 500; color: var(--ink); }
.trust-item span { font-size: .9rem; color: var(--stone-600); }
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { flex-direction: row; align-items: center; gap: 16px; padding: 30px 26px; }
  .trust-item:nth-child(-n+2) { border-bottom: 0; }
  .trust-item:not(:last-child) { border-right: 1px solid var(--stone-300); }
  .trust-item strong { font-size: 1.35rem; }
}

/* ---------- Servicios ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.svc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--r); overflow: hidden; transition: box-shadow .5s var(--ease), border-color .5s; }
.svc:hover { box-shadow: var(--shadow); border-color: var(--stone-300); }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-100); cursor: zoom-in; }
.svc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.08); transition: opacity 1s ease, transform 7s linear;
}
.svc-media img.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.svc-media img.is-prev { opacity: 1; z-index: 0; }
.svc-media::after { /* degradado inferior para leer los puntos */
  content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(22,20,18,.45)); pointer-events: none;
}
.c-dots { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: flex; gap: 6px; }
.c-dots button { width: 16px; height: 16px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.c-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .4s var(--ease), background .4s; }
.c-dots button[aria-current="true"]::before { width: 20px; background: var(--gold); }
.c-dots button[aria-current="true"] { width: 26px; }
.c-zoom {
  position: absolute; z-index: 2; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(22,20,18,.55); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .3s;
}
.c-zoom svg { width: 18px; height: 18px; }
.svc-media:hover .c-zoom { transform: scale(1.08); background: var(--gold); color: var(--ink); }
.svc-body { position: relative; padding: 22px 22px 26px; }
.svc h3 { font-size: 1.45rem; }
.svc p { margin-top: 8px; color: var(--stone-600); font-size: .97rem; }
.svc--xl h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc--xl, .svc--wide { grid-column: span 2; }
  .svc--xl .svc-media, .svc--wide .svc-media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc--xl { grid-column: span 2; grid-row: span 2; }
  .svc--xl .svc-media { aspect-ratio: auto; flex: 1; min-height: 380px; }
  .svc--wide .svc-media { aspect-ratio: 16 / 8; }
}

/* ---------- Antes / Después ---------- */
.ba-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .ba-grid { grid-template-columns: repeat(3, 1fr); } }
.ba figcaption { margin-top: 12px; font-weight: 600; font-size: .95rem; color: var(--stone-700); }
.ba-frame { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--stone-200); box-shadow: var(--shadow); }
.ba-frame:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.ba-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px); pointer-events: none;
  background: var(--white); box-shadow: 0 0 8px rgba(0,0,0,.35);
}
.ba-handle .ico { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; padding: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba-tag-b { left: 12px; background: rgba(22,20,18,.75); color: var(--white); }
.ba-tag-a { right: 12px; background: var(--gold); color: var(--ink); }

/* ---------- Galería ---------- */
.gal-head { margin: clamp(56px, 8vw, 88px) 0 24px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.gal-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--stone-300); background: var(--white);
  font-size: .9rem; font-weight: 600; color: var(--stone-700); transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* Filas justificadas: cada foto crece en proporción a su formato, así cada fila llena todo el ancho sin huecos */
.gallery { --h: 118px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery li {
  flex: var(--r, 1.333) 1 calc(var(--r, 1.333) * var(--h));
  position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--stone-200);
}
.gallery li.is-hidden { display: none; }
.gallery li.is-entering { animation: gal-in .6s var(--ease) both; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: var(--r, 1.333); max-height: calc(var(--h) * 2); object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery li:hover img { transform: scale(1.05); }
@keyframes gal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (min-width: 760px) { .gallery { --h: 180px; gap: 12px; } .gallery li { border-radius: 12px; } }
@media (min-width: 1100px) { .gallery { --h: 220px; } }
.gal-more { margin-top: 28px; text-align: center; }
.gal-more[hidden] { display: none; }

/* ---------- Por qué elegirnos ---------- */
.why { overflow: hidden; }
.why-grid { display: grid; gap: 56px; align-items: center; }
/* Foto vertical completa de telas (sin recortes ni capas encima) */
.why-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.why-photo { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 99px; background: var(--gold); color: var(--ink);
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.why-copy h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.why-intro { margin-top: 18px; color: var(--stone-300); font-size: 1.08rem; max-width: 56ch; }
.reasons { margin-top: 34px; counter-reset: r; }
.reasons li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.reasons li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.r-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(201,160,75,.12); color: var(--gold); transition: background .4s, color .4s, transform .5s var(--ease); }
.r-ico svg { width: 24px; height: 24px; }
.reasons li:hover .r-ico { background: var(--gold); color: var(--ink); transform: rotate(-6deg); }
.reasons h3 { font-size: 1.25rem; }
.reasons p { margin-top: 4px; color: var(--stone-300); font-size: .97rem; }
@media (min-width: 960px) {
  .why-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
}

/* ---------- Opiniones (flotan suavemente) ---------- */
.reviews { overflow: hidden; padding-block: clamp(64px, 8vw, 104px); }
.reviews .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
/* Las tres reseñas con el mismo tamaño y separación */
.rev-stage { display: grid; gap: 20px; align-items: stretch; }
.review {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: var(--r); padding: 24px 24px 26px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  animation: float 6s ease-in-out var(--fd, 0s) infinite alternate;
}
.review::before { /* comillas decorativas */
  content: "\201C"; position: absolute; right: 18px; top: 0; font-family: var(--f-serif); font-size: 4.2rem; line-height: 1; color: var(--stone-200);
}
@keyframes float {
  0% { translate: 0 0; }
  100% { translate: 0 -6px; }
}
.rev-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c, #555); color: var(--white); font-weight: 600; font-size: 1.1rem; }
.rev-top h3 { font-family: var(--f-sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }
.rev-top p { font-size: .82rem; color: var(--stone-600); }
.review .stars { margin-top: 14px; }
.review blockquote { margin: 12px 0 0; font-size: .98rem; line-height: 1.6; color: var(--text); }
.rev-cta {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 22px;
  border-radius: var(--r); background: var(--ink); color: var(--white);
}
.rev-cta p { flex: 1 1 220px; font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.25; }
.cta-seal { width: 52px; height: 52px; flex: none; animation: rotate 30s linear infinite; }
@media (min-width: 900px) {
  .rev-stage { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Zona de servicio ---------- */
.zone-grid { display: grid; gap: 48px; align-items: center; }
.zone-copy h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.zone-lists { margin: 30px 0 32px; display: grid; gap: 20px; }
.zone-lists h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.zone-lists p { margin-top: 4px; color: var(--stone-600); font-size: .96rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,160,75,.22); }
.dot-ink { background: var(--ink); }
.dot-stone { background: var(--white); border: 2px solid var(--stone-500); }
.zone-map { position: relative; background: var(--linen); border-radius: var(--r); padding: 12px; border: 1px solid var(--stone-200); }
.zone-map svg { width: 100%; height: auto; display: block; }
.zone-map figcaption { padding: 6px 10px 4px; font-size: .85rem; color: var(--stone-600); }
/* Mapa real de Navarra y el País Vasco (contornos de provincia) */
#map .prov { stroke: var(--white); stroke-width: 1.6; stroke-linejoin: round; }
#map .prov.pv { fill: var(--stone-200); }
#map .prov-nav { fill: #EBDDBC; }
#map .halo { fill: rgba(201,160,75,.28); }
#map .sea { font-family: var(--f-serif); font-style: italic; font-size: 13px; fill: var(--stone-500); letter-spacing: .04em; }
#map .country { font-family: var(--f-sans); font-size: 12px; font-weight: 800; letter-spacing: .3em; fill: var(--stone-300); }
#map .region { font-family: var(--f-sans); font-size: 11.5px; font-weight: 800; letter-spacing: .22em; fill: var(--stone-600); }
#map .region-nav { font-size: 15px; fill: var(--gold-ink); }
#map .route { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .55; }
#map .town circle { fill: var(--white); stroke: var(--ink); stroke-width: 2.4; }
#map .town text { font-family: var(--f-sans); font-size: 13.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
#map .hq circle.core { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
#map .hq circle.pulse { fill: none; stroke: var(--gold-ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
#map .hq text { font-family: var(--f-serif); font-size: 20px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.js #map:not(.is-in) .route, .js #map:not(.is-in) .town { opacity: 0; }
.js #map .town { transition: opacity .6s var(--ease) var(--td, 0s); }
.js #map .route { transition: opacity .8s ease var(--td, 0s); }
.js #map.is-in .route { opacity: .55; }
@media (min-width: 960px) { .zone-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 24px; }
.faq .sec-head { margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--stone-200); border-radius: 14px; transition: box-shadow .4s, border-color .4s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--stone-300); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; min-height: 56px; font-family: var(--f-serif); font-size: 1.12rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold-ink);
  background: linear-gradient(var(--gold-ink), var(--gold-ink)) center / 11px 1.5px no-repeat, linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 11px no-repeat;
  transition: transform .45s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: rgba(201,160,75,.15); }
.faq details p { padding: 0 20px 20px; color: var(--stone-600); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .faq .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 32px; align-items: stretch; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.wa-big {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); text-decoration: none; color: var(--ink);
  background: var(--gold); position: relative; overflow: hidden; isolation: isolate; transition: transform .2s var(--ease);
}
.wa-big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.wa-big:hover::before { transform: scaleX(1); transform-origin: left; }
.wa-big:active { transform: scale(.98); }
.wa-big-ico { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: var(--white); }
.wa-big-ico svg { width: 30px; height: 30px; }
.wa-big small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wa-big b { display: block; font-family: var(--f-serif); font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 500; letter-spacing: -.01em; }
.wa-big .ico-arrow { margin-left: auto; width: 26px; height: 26px; transition: transform .35s var(--ease); }
.wa-big:hover .ico-arrow { transform: translateX(5px); }
.info-list { display: grid; gap: 2px; }
.info-list li { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.14); }
.info-list svg { width: 24px; height: 24px; flex: none; color: var(--gold); margin-top: 2px; }
.info-list small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-500); }
.info-list a, .info-list address, .info-list p { color: var(--white); font-size: 1.05rem; text-decoration: none; }
.info-list a:hover { color: var(--gold); }
.hours { margin: 2px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; color: var(--white); font-size: 1.05rem; }
.hours dt { color: var(--stone-300); }
.hours dd { margin: 0; }
@media (max-width: 479px) { .hours { grid-template-columns: 1fr; gap: 0; } .hours dd { margin-bottom: 6px; } }
.map-link { justify-self: start; }
.map-box { display: grid; gap: 14px; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.map-tab {
  min-height: 44px; padding: 8px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); background: transparent;
  color: var(--stone-200); font-size: .92rem; font-weight: 600; transition: background .3s, color .3s, border-color .3s;
}
.map-tab:hover { border-color: var(--gold); color: var(--white); }
.map-tab.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
/* Mapa de Google cuadrado, a la altura del bloque de contacto */
.map-embed { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--char-2); border: 1px solid rgba(255,255,255,.08); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .map-box { max-width: 540px; width: 100%; justify-self: end; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--stone-500); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; }
.f-seal { width: 84px; height: 84px; margin-bottom: 16px; }
.f-brand p { max-width: 38ch; }
.footer .f-title { font-family: var(--f-sans); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-300); margin-bottom: 14px; }
.footer li { padding: 4px 0; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--gold); }
.f-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; padding-right: 72px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
  position: fixed; z-index: 90; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.wa-fab-btn {
  position: relative; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 10px 28px -6px rgba(37,211,102,.55), 0 2px 6px rgba(0,0,0,.2);
  transition: transform .35s var(--ease);
}
.wa-fab-btn svg { width: 32px; height: 32px; }
.wa-fab-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: fab-ring 3.2s var(--ease) infinite; }
.wa-fab:hover .wa-fab-btn { transform: scale(1.08) rotate(-6deg); }
.wa-fab:active .wa-fab-btn { transform: scale(.95); }
.wa-fab-label {
  padding: 10px 14px; border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow); white-space: nowrap; opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wa-fab.show-label .wa-fab-label, .wa-fab:hover .wa-fab-label { opacity: 1; transform: none; }
@keyframes fab-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@media (min-width: 768px) { .wa-fab { right: 24px; bottom: 24px; } .wa-fab-btn { width: 64px; height: 64px; } }

/* ---------- Visor de fotos ---------- */
.lb { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; background: rgba(14,12,11,.94); }
.lb-stage { position: relative; margin: 0; max-width: min(92vw, 1400px); max-height: 84vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform-origin: 0 0; user-select: none; }
.lb-cap { margin-top: 14px; color: var(--stone-300); font-size: .92rem; text-align: center; max-width: 70ch; padding-inline: 16px; }
.lb-btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white); transition: background .3s, transform .3s var(--ease);
}
.lb-btn svg { width: 24px; height: 24px; }
.lb-btn:hover { background: var(--gold); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: var(--stone-300); font-size: .85rem; font-weight: 600; letter-spacing: .1em; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .lb-img { max-height: 70vh; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img, .js .split .w > span, .js .seam { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .reveal-img > img, .js .reveal-img > iframe { transform: none !important; clip-path: none !important; }
  .review { animation: none; }
}

/* ---------- Mapa: taller de Peralta y subtítulo de las tiendas ---------- */
#map .town.workshop rect { fill: var(--ink); stroke: var(--gold); stroke-width: 2; }
#map .town.workshop text { font-style: italic; }
#map .route-workshop { stroke: var(--gold-ink); opacity: .8; }
.js #map.is-in .route-workshop { opacity: .8; }
#map .hq text.hq-sub { font-family: var(--f-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; fill: var(--stone-700); stroke-width: 3px; }

/* ---------- Aviso de cookies (Aceptar y Rechazar con el mismo peso) ---------- */
.ck {
  position: fixed; z-index: 180; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 560px; max-height: calc(100vh - 24px); overflow: auto;
  background: var(--white); color: var(--text); border-radius: var(--r); box-shadow: 0 20px 60px -10px rgba(0,0,0,.45), 0 0 0 1px rgba(22,20,18,.08);
  animation: ck-in .5s var(--ease) both;
}
.ck[hidden] { display: none; }
@keyframes ck-in { from { opacity: 0; transform: translateY(16px); } }
.ck-inner { padding: 20px 20px 18px; }
.ck-title { font-size: 1.3rem; margin-bottom: 8px; }
.ck p { font-size: .93rem; color: var(--stone-700); }
.ck a { color: var(--gold-ink); font-weight: 600; }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ck-btn {
  flex: 1 1 120px; min-height: 46px; padding: 10px 16px; border-radius: var(--r-sm); border: 2px solid var(--ink);
  background: var(--ink); color: var(--white); font-weight: 600; font-size: .95rem; transition: background .25s, color .25s, transform .15s;
}
.ck-btn:hover { background: var(--char-2); }
.ck-btn:active { transform: scale(.98); }
.ck-btn-alt { background: var(--white); color: var(--ink); }
.ck-btn-alt:hover { background: var(--stone-100); }
.ck-link { min-height: 46px; padding: 10px 6px; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ck-config { margin-top: 16px; border-top: 1px solid var(--stone-200); padding-top: 14px; }
.ck-config fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.ck-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--linen); cursor: pointer; }
.ck-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.ck-opt b { display: block; font-size: .95rem; }
.ck-opt small { display: block; font-size: .84rem; color: var(--stone-600); line-height: 1.4; }
@media (min-width: 640px) { .ck { left: 24px; right: auto; bottom: 24px; } }
@media (max-width: 639px) { .ck-open .wa-fab { display: none; } }

/* ---------- Esqueletos de carga y fallos de imagen ---------- */
.skel { background-color: var(--stone-200); background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
.section-dark .skel, .hero .skel { background-color: var(--char-2); background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.07) 50%, transparent 80%); }
.skel.is-loaded { animation: none; background-image: none; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.img-fail { position: relative; }
.img-fail img { visibility: hidden; }
.img-fail::before {
  content: "Imagen no disponible"; position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 12px;
  font-size: .85rem; font-weight: 600; color: var(--stone-600); background: var(--stone-100);
}

/* ---------- Google Maps con consentimiento ---------- */
.map-gate {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center;
  background: linear-gradient(160deg, var(--char-2), var(--ink)); color: var(--stone-200);
}
.map-gate[hidden] { display: none; }
.map-gate svg.pin { width: 44px; height: 44px; color: var(--gold); }
.map-gate p { max-width: 34ch; font-size: .95rem; }
.map-gate small { color: var(--stone-500); font-size: .8rem; max-width: 36ch; }
.map-gate a { color: var(--gold); font-weight: 600; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(201,160,75,.25); border-top-color: var(--gold); animation: rotate .8s linear infinite; }
.lb-spin { position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px; z-index: 3; }
.lb-spin[hidden] { display: none; }
.lb-err { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; padding: 14px 18px; border-radius: 12px; background: var(--char-2); color: var(--white); font-weight: 600; }
.lb-err[hidden] { display: none; }

/* ---------- Páginas legales y 404 ---------- */
.page-head { position: relative; background: var(--ink); color: var(--stone-200); padding: calc(var(--header-h) + 48px) 0 56px; }
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head p { margin-top: 12px; color: var(--stone-300); max-width: 60ch; }
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--f-sans); font-size: 1.02rem; font-weight: 800; margin: 24px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: var(--stone-700); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: var(--gold-ink); font-weight: 600; }
.legal .fill { background: #FFF1C2; padding: 0 4px; border-radius: 4px; font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--stone-200); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stone-200); }
.legal th { background: var(--linen); font-weight: 800; color: var(--ink); }
.legal tr:last-child td { border-bottom: 0; }
.legal .updated { margin-top: 40px; font-size: .88rem; color: var(--stone-600); }
.simple-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.simple-nav a:not(.btn) { color: var(--stone-200); text-decoration: none; font-weight: 600; font-size: .95rem; }
.simple-nav a:not(.btn):hover { color: var(--gold); }
@media (max-width: 420px) { .hide-xs { display: none; } }
.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--stone-200); padding: calc(var(--header-h) + 32px) var(--gutter) 56px; }
.e404 .num { font-family: var(--f-serif); font-size: clamp(6rem, 24vw, 12rem); line-height: .9; color: var(--gold); letter-spacing: -.04em; }
.e404 h1 { color: var(--white); font-size: clamp(1.8rem, 5vw, 2.8rem); margin-top: 8px; }
.e404 p { margin: 14px auto 0; max-width: 46ch; color: var(--stone-300); }
.e404 .thread-line { width: 160px; height: 2px; background: var(--gold); margin: 26px auto; transform-origin: left; animation: grow 1s var(--ease) both; }
.e404 .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.e404 ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 28px; }
.e404 ul a { color: var(--stone-300); }
.e404 ul a:hover { color: var(--gold); }
