/* =============================================================
   Webs por lotes — base editorial (crema)
   A partir de arrecife-crear-web/styles.css.

   Colores y fuentes SOLO desde las variables del tema, que pagina.html
   define en un <style> antes de este archivo:
     --bg --bg-2 --paper --ink --ink-mute --accent --accent-ink
     --accent-btn --accent-2 --serif --sans
   Reglas de contraste de los nichos: ink/bg ≥ 7 · ink-mute/bg y bg-2 ≥ 4.5 ·
   blanco/accent-btn ≥ 4.5 · accent-ink/bg ≥ 4.5.
   --accent y --accent-2 NO garantizan contraste: solo decoran (puntos,
   líneas, halos) o se usan mezclados (ver --deep, --on-dark-accent).
   ============================================================= */

/* =============================================================
   1. Tokens derivados (todo sale de las variables del tema)
   ============================================================= */
:root {
  --line:        color-mix(in srgb, var(--ink) 12%, transparent);
  --line-2:      color-mix(in srgb, var(--ink) 22%, transparent);
  --ink-soft:    color-mix(in srgb, var(--ink) 88%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 32%, transparent);
  --accent-2-glow: color-mix(in srgb, var(--accent-2) 24%, transparent);
  --on-dark-accent: color-mix(in srgb, var(--accent) 40%, white);    /* sobre foto oscura */
  --on-ink-accent:  color-mix(in srgb, var(--accent) 45%, var(--bg)); /* sobre --ink o --deep (≥ 7:1) */
  --on-ink:      color-mix(in srgb, var(--bg) 84%, transparent);
  --on-ink-mute: color-mix(in srgb, var(--bg) 68%, transparent);
  --deep:        color-mix(in srgb, var(--accent-2) 50%, var(--ink)); /* fondo oscuro con --bg encima (≥ 6:1) */
  --photo-bg:    color-mix(in srgb, var(--ink) 90%, var(--accent));

  --gutter: clamp(1rem, 4vw, 2.75rem);
  --maxw: 78rem;
  --radius: 18px;
  --radius-lg: 32px;
  --nav-h: 64px;
  --header-h: calc(var(--nav-h) + 1.75rem); /* main.js lo ajusta a la altura real */

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; } /* también en .btn y demás con display propio */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
picture { display: contents; } /* la portada de móvil no cambia el maquetado */
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
::selection { background: var(--accent-btn); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.lc { text-transform: lowercase; }
main { counter-reset: sec; }
[data-sec] { counter-increment: sec; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.kicker--light { color: rgba(255,255,255,.88); }
.h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  max-width: 16ch;
}
h1 em, h2 em, .h2 em {
  font-style: italic;
  color: var(--accent-ink);
}
.num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-ink);
}
.num::before { content: counter(sec, decimal-leading-zero); }
.kicker .num { font-size: 1.35em; letter-spacing: 0; text-transform: none; }
.kicker .num::after { content: "·"; margin: 0 .55em 0 .45em; font-family: var(--sans); font-style: normal; font-size: .74em; color: var(--ink-mute); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head--flush { margin-bottom: 0; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .h2 { margin-inline: auto; }
.lede { color: var(--ink-mute); font-size: 1.0625rem; max-width: 52ch; }
.nota { font-size: .875rem; color: var(--ink-mute); }

/* =============================================================
   5. Componentes
   ============================================================= */
/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.16), 0 10px 22px var(--accent-glow); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
/* En pantallas estrechas un texto largo («Me interesa: escribir por WhatsApp») parte en dos líneas
   en vez de salirse de su caja. */
@media (max-width: 539px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
}
.btn--primary { background: var(--accent-btn); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--wa { background: var(--ink); color: var(--bg); }
.btn--wa:hover { background: var(--accent-btn); color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--bg); }
.btn--ghost-light {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.55); box-shadow: none;
}
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--accent-ink);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* Hueco pendiente (nota para el dueño) */
.pending {
  border: 1.5px dashed var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.pending-tag {
  display: inline-block;
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--accent-btn);
  padding: .3rem .55rem; border-radius: 6px; margin-bottom: .6rem;
}
.pending p { color: var(--ink-soft); }

/* Sello «Demostración» */
.stamp {
  position: absolute; top: -.8rem; right: 1.1rem; z-index: 2;
  background: var(--accent-btn); color: #fff;
  font-family: var(--sans); font-size: .625rem; font-weight: 700; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .55rem; border-radius: 5px;
  transform: rotate(3deg);
}

/* Etiqueta «Foto de referencia» */
.ref-tag {
  position: absolute; z-index: 3;
  font-family: var(--sans); font-size: .6875rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.58);
  padding: .32rem .6rem; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
}

/* =============================================================
   6. Cabecera fija: aviso de muestra + menú
   ============================================================= */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  color: #fff;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.sample-bar {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  background: var(--ink); color: var(--on-ink);
  font-size: .75rem; line-height: 1.35;
  padding: .42rem var(--gutter);
}
.sample-bar__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-bar strong { font-weight: 600; color: var(--on-ink-accent); }
.sample-bar__link {
  flex: none; color: var(--bg); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.sample-bar__link:hover { color: var(--on-ink-accent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); }
.brand {
  font-family: var(--serif);
  font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.nav-links { display: none; gap: 2rem; font-size: .9375rem; }
.nav-link { position: relative; padding: .25rem 0; white-space: nowrap; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-call {
  flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 1.05rem; border-radius: 999px;
  background: var(--accent-btn); color: #fff;
  font-weight: 600; font-size: .9375rem; white-space: nowrap;
  transition: background-color .3s var(--ease-out);
}
.nav-call:hover { background: var(--accent-ink); }
.nav-call svg { width: 16px; height: 16px; }
/* Portadas sobre el fondo claro: menú con tinta desde el principio */
.nav-claro .site-header,
body:has(.portada--b) .site-header,
body:has(.portada--c) .site-header { color: var(--ink); }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

/* =============================================================
   7. Portadas (a · b · c)
   ============================================================= */
.portada { position: relative; }
.portada-title {
  font-family: var(--serif);
  font-weight: 330;
  line-height: .94;
  letter-spacing: -0.03em;
  font-style: italic;              /* segunda línea en adelante: cursiva de acento */
  color: var(--accent-ink);
  overflow-wrap: break-word;
}
.portada-title::first-line { font-style: normal; color: var(--ink); }
.portada-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  max-width: 34ch;
}
.portada-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }

/* Aparición de la portada (CSS puro: nunca se queda oculta) */
@keyframes intro-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes intro-fade { from { opacity: 0; } }
@keyframes intro-sube { from { transform: translateY(18px); } }
@keyframes portada-zoom { from { transform: scale(1.08); } }
@keyframes girar { to { transform: rotate(360deg); } }
.js .intro { animation: intro-up .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * .09s + .08s); }
/* Título, frase y foto de portada: sin fundido (es lo primero que cuenta el móvil como «ya se ve»; con
   fundido, la carga en 4G lenta pasa de ~2 s a más de 3 s). Solo suben un poco. */
.js .intro--lcp { animation-name: intro-sube; }

/* ---------- A · foto a sangre, texto abajo a la izquierda ---------- */
.portada--a {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: clip;
}
.portada--a .portada-bg { position: absolute; inset: 0; z-index: -2; background: var(--photo-bg); }
.portada--a .portada-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: portada-zoom 2.4s var(--ease-out) both; }
.portada--a .portada-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.82) 100%);
}
.portada--a .portada-content {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: clamp(3.75rem, 8vh, 5rem);
  display: grid; gap: 1.25rem;
}
.portada--a .portada-title { font-size: clamp(3rem, 9.6vw, 8rem); max-width: 13ch; color: var(--on-dark-accent); }
.portada--a .portada-title::first-line { color: #fff; }
.portada--a .portada-sub { color: rgba(255,255,255,.92); }
.portada-hours {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem;
  padding-top: 1.1rem; margin-top: .6rem;
  border-top: 1px solid rgba(255,255,255,.28);
  font-size: .9375rem; color: rgba(255,255,255,.92);
  max-width: 40rem;
}
.portada-hours strong { font-weight: 600; color: #fff; }
.portada-hours small { font-size: .8125rem; color: rgba(255,255,255,.8); }
.portada--a > .ref-tag { right: var(--gutter); top: calc(var(--header-h) + 1rem); }

/* ---------- B · dividida: texto sobre el fondo + foto con radio grande ---------- */
.portada--b {
  padding-top: calc(var(--header-h) + clamp(1.25rem, 4vw, 3.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(50% 60% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.portada-grid { display: grid; gap: clamp(2.25rem, 4vw, 4.5rem); align-items: center; }
.portada--b .portada-text { display: grid; gap: 1.25rem; justify-items: start; }
.portada--b .portada-title { font-size: clamp(2.9rem, 7vw, 6.4rem); max-width: 12ch; }
.portada--b .portada-sub { color: var(--ink-soft); }
.kicker-line { display: inline-block; width: 2.5rem; height: 1px; background: var(--accent); vertical-align: middle; margin-right: .8rem; }
.portada-facts {
  display: grid; gap: 1rem;
  width: 100%; margin-top: .75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line-2);
}
.portada-fact dt { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .2rem; }
.portada-fact dd { margin: 0; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.portada-fact dd a { border-bottom: 1px solid var(--line-2); }
.portada-fact dd a:hover { border-color: currentColor; }
.portada-fact small { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-mute); }
.portada-photo { position: relative; margin: 0; order: -1; }
.portada-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--photo-bg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.4);
}
.portada-photo .ref-tag { left: 1rem; top: 1rem; }
.portada-stamp {
  position: absolute; z-index: 3; right: 1rem; bottom: -2.25rem;
  width: clamp(98px, 10vw, 128px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper); color: var(--accent-ink);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.3);
}
.portada-stamp svg:first-child { position: absolute; inset: 4%; width: 92%; height: 92%; overflow: visible; animation: girar 30s linear infinite; }
.portada-stamp text { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.portada-stamp__star { width: 30%; height: 30%; }

/* ---------- C · titular enorme centrado + foto apaisada enmarcada ---------- */
.portada--c {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--bg) 0, var(--bg) 70%, var(--bg-2) 70%, var(--bg-2) 100%);
}
.portada-head { display: grid; justify-items: center; text-align: center; gap: 1.25rem; }
.portada--c .portada-title { font-size: clamp(3.1rem, 11.5vw, 10.5rem); line-height: .9; max-width: 12ch; }
.portada--c .portada-sub { color: var(--ink-soft); max-width: 40ch; }
.portada--c .portada-actions { justify-content: center; }
.portada-frame {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  background: var(--paper);
  padding: clamp(.5rem, 1.2vw, 1rem) clamp(.5rem, 1.2vw, 1rem) 0;
  border-radius: 10px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.38), 0 1px 3px rgba(0,0,0,.06);
}
.portada-frame__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--photo-bg); }
.portada-frame__img img { width: 100%; height: 100%; object-fit: cover; animation: portada-zoom 2.4s var(--ease-out) both; }
.portada-frame__img .ref-tag { right: .8rem; bottom: .8rem; }
.portada-frame__cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.25rem;
  padding: .85rem .25rem .9rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}
.portada-frame__cap strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   8. Presentación
   ============================================================= */
.presentacion-grid { display: grid; gap: 1.5rem; }
.presentacion-side { display: flex; align-items: baseline; gap: .9rem; }
.num--big { font-size: 2.4rem; line-height: 1; }
.presentacion-text {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.presentacion-text::first-letter { font-style: italic; color: var(--accent-ink); }
.presentacion-note { margin-top: 1.6rem; max-width: 50ch; color: var(--ink-mute); }
.presentacion-note a { color: var(--accent-ink); font-weight: 600; border-bottom: 1px solid currentColor; white-space: nowrap; }

/* =============================================================
   9. Esenciales
   ============================================================= */
/* Tarjetas comunes */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  min-height: 260px;
  margin: 0;
  transition: box-shadow .55s var(--ease-soft);
}
.card--photo { background: var(--photo-bg); }
.card--photo .card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.12);
  transition: transform .8s var(--ease-soft), filter .55s var(--ease-soft);
}
.card--photo::after {             /* grano SVG */
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.card--photo .card-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.5rem 1.2rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  color: #fff;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.card-cap .card-ref { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.9); white-space: nowrap; }
.card--info {
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem;
  border: 1px solid var(--line);
}
.card-big {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.card-big--sm { font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.15; text-wrap: balance; }
.card-big em, .dato-valor em { font-style: italic; color: var(--accent-ink); }
.card-phone { white-space: nowrap; }
.card-small { color: var(--ink-mute); font-size: .9375rem; margin-top: .35rem; }
.card--info .link-arrow { align-self: flex-start; }
.card--accent { background: var(--accent-btn); color: #fff; border-color: transparent; }
.card--accent .kicker, .card--accent .card-small { color: rgba(255,255,255,.9); }
.card--accent .link-arrow { color: #fff; }
.card--deep { background: var(--deep); color: var(--bg); border-color: transparent; }
.card--deep .kicker, .card--deep .card-small { color: var(--on-ink); }
.card--deep .link-arrow { color: var(--bg); }
.card--deep .card-big em { color: var(--on-ink-accent); }
.card-link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.card-link:focus-visible { outline-offset: -4px; }
.card-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: .45rem;
  max-height: 7.2rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.card-tags--abiertas { max-height: none; -webkit-mask-image: none; mask-image: none; }
.especialidades { display: grid; gap: .8rem; margin-top: 1.6rem; }
.presentacion-datos { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.presentacion-datos li { font-size: .875rem; font-weight: 500; padding: .4rem .75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.presentacion-formacion { margin-top: 1.6rem; display: grid; gap: .6rem; max-width: 56ch; }
.presentacion-formacion ul { list-style: none; display: grid; gap: .35rem; color: var(--ink-soft); }
.presentacion-formacion li { padding-left: 1.1rem; position: relative; }
.presentacion-formacion li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: 1px; background: var(--accent); }
.resenas-dato { font-weight: 600; }
.resenas-dato span { color: var(--accent); }
.resenas-dato a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.card-tags li {
  font-size: .875rem; font-weight: 500; line-height: 1.2;
  padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid currentColor;
}

/* Firma: giro 3D + halo de acento + aberración (solo puntero fino) */
.has-tilt {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.has-tilt:hover { --lift: -6px; transition-duration: .15s, .55s; }
.has-tilt:hover {
  box-shadow:
    0 50px 100px -20px var(--accent-glow),
    0 30px 60px -15px rgba(0,0,0,.25),
    0 0 0 1px var(--accent-glow);
}
.card--photo.has-tilt:hover .card-img {
  transform: scale(1.12);
  filter: saturate(1.18) brightness(1.08) contrast(1.05)
          drop-shadow(4px 0 0 var(--accent-glow))
          drop-shadow(-4px 0 0 var(--accent-2-glow));
}

/* ---------- A · bento ---------- */
.esenciales--a { background: var(--bg-2); }
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bento > figure:nth-of-type(1) { order: 1; }
.bento > .c-b { order: 2; }
.bento > figure:nth-of-type(2) { order: 3; }
.bento > .c-d { order: 4; }
.bento > figure:nth-of-type(3) { order: 5; }
.bento > .c-f { order: 6; }
.bento > figure:nth-of-type(4) { order: 7; }
.bento > .c-h { order: 8; }

/* ---------- B · columnas: foto alta + tarjetas de dato apiladas ---------- */
.esenciales--b { background: var(--bg); border-top: 1px solid var(--line); }
.section-head--split { align-items: end; }
.columnas { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.columnas > figure:nth-of-type(1) { order: 1; }
.columnas > figure:nth-of-type(2) { order: 2; }
.columnas > .dato--h { order: 3; }
.columnas > .dato--t { order: 4; }
.columnas > figure:nth-of-type(3) { order: 5; }
.columnas > figure:nth-of-type(4) { order: 6; }
.columnas > .dato--d { order: 7; }
.columnas > .dato--s { order: 8; }
.columnas > .dato--w { order: 9; }
.columnas > .dato { grid-column: span 2; }
.col-foto {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius) var(--radius);   /* arco */
  background: var(--photo-bg);
}
.col-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.col-foto:hover img { transform: scale(1.06); }
.col-foto .ref-tag { left: 50%; bottom: .8rem; transform: translateX(-50%); }
.dato {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
}
.dato .kicker { display: block; }
.dato-icono {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: .25rem;
}
.dato-icono svg { width: 20px; height: 20px; }
.dato-valor {
  display: block;
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.12; letter-spacing: -0.015em;
  text-wrap: balance;
}
.dato-valor--tel { white-space: nowrap; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.dato-nota { color: var(--ink-mute); font-size: .9rem; }
.dato .link-arrow { margin-top: auto; padding-top: .35rem; }
.dato--accent { background: var(--accent-btn); color: #fff; border-color: transparent; }
.dato--accent .kicker, .dato--accent .dato-nota, .dato--accent .link-arrow { color: #fff; }
.dato--accent .dato-icono { background: rgba(255,255,255,.16); color: #fff; }
.dato--deep { background: var(--deep); color: var(--bg); border-color: transparent; }
.dato--deep .kicker, .dato--deep .dato-nota { color: var(--on-ink); }
.dato--deep .link-arrow { color: var(--bg); }
.dato--deep .dato-icono { background: rgba(255,255,255,.12); color: var(--bg); }
.dato--deep .dato-valor em { color: var(--on-ink-accent); }
.dato--boton { background: var(--bg-2); border: 1px dashed var(--line-2); cursor: pointer; }
.dato--boton:hover { border-color: var(--accent-ink); }

/* =============================================================
   10. Marquesina (CSS; main.js clona pistas si hace falta)
   ============================================================= */
.marquee {
  overflow: hidden; position: relative;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-inner { display: flex; width: max-content; }
.marquee-track {
  flex: none;
  display: inline-flex; align-items: center; gap: 3rem; padding-right: 3rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
  animation: marquesina var(--marquee-dur, 40s) linear infinite;
}
.marquee-track .dot { color: var(--accent); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquesina { to { transform: translateX(-100%); } }

/* =============================================================
   11. Servicios
   ============================================================= */
.servicios { background: var(--bg-2); }

/* ---------- A · partido 50/50 ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.split-photos { position: relative; padding: 0 12% 14% 0; }
.split-photo { display: none; position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--photo-bg); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08); }
.split-photo:last-child { display: block; aspect-ratio: 4 / 5; }
.split-photo:last-child .ref-tag { left: .9rem; top: .9rem; }
.split-photo:nth-last-child(2) {
  display: block; position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 46%; aspect-ratio: 1;
  border: clamp(5px, .8vw, 9px) solid var(--paper);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.4);
}
.split-photo:nth-last-child(2) .ref-tag { left: .5rem; bottom: .5rem; font-size: .5625rem; }
.split-text { display: grid; gap: 1.3rem; align-content: start; }
.split-text .pending { max-width: 34rem; }
.split-text .pending p {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; line-height: 1.35;
}
.split-actions, .servicios-cta, .citas-actions, .resenas-actions, .visit-actions, .dueno-acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.service-list { list-style: none; display: grid; border-top: 1px solid var(--line-2); counter-reset: srv; }
.service-item {
  counter-increment: srv;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .15rem .9rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line-2);
}
.service-item::before {
  content: counter(srv, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.5;
  color: var(--accent-ink);
}
.service-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.service-detail { grid-column: 2; color: var(--ink-mute); font-size: .95rem; }

/* ---------- B · tarjetas numeradas a ancho completo ---------- */
.service-cards {
  list-style: none;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  counter-reset: srvb;
}
.service-card {
  counter-increment: srvb;
  position: relative;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 230px; padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.service-card__num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1;
  color: var(--accent-ink);
  margin-bottom: auto;
}
.service-card__num::before { content: counter(srvb, decimal-leading-zero); }
.service-card__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.01em; }
.service-card__detail { color: var(--ink-mute); font-size: .95rem; }
.service-card--ghost { background: transparent; border: 1.5px dashed var(--line-2); }
.service-card--ghost .service-card__num { opacity: .55; }
.ghost-line { display: block; height: .7rem; width: 78%; border-radius: 99px; background: var(--line); }
.ghost-line--short { width: 48%; }
.pending--card { display: flex; flex-direction: column; justify-content: center; min-height: 230px; padding: 1.6rem 1.5rem; border-radius: var(--radius); }
.pending--card p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.35; }
.servicios-cta { margin-top: 2.25rem; }

/* =============================================================
   12. Galerías
   ============================================================= */
.galeria { background: var(--bg); }

/* ---------- A · carrusel ---------- */
.gallery-head { display: grid; gap: 1.4rem; }
.pending--side { max-width: 26rem; }
.carousel-track {
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-block: 1.75rem 1.5rem;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track.is-dragging .slide { pointer-events: none; }
.slide {
  position: relative; flex: 0 0 auto;
  width: min(78vw, 360px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--photo-bg);
  margin: 0;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.12);
  -webkit-user-drag: none; user-select: none;
  transition: transform .8s var(--ease-soft), filter .55s var(--ease-soft);
}
.slide:hover img { transform: scale(1.06); filter: saturate(1.18) brightness(1.05); }
.slide .ref-tag { left: .8rem; bottom: .8rem; }
.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.carousel-hint { color: var(--ink-mute); font-size: .875rem; }
.carousel-nav { display: none; gap: .6rem; }
.carousel-btn {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 1.15rem;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), opacity .3s;
}
.carousel-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }

/* ---------- B · mosaico de columnas ---------- */
.mosaic { columns: 2; column-gap: .75rem; }   /* 4 columnas en escritorio (ver responsive) */
.mosaic-item {
  position: relative; display: block;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 .75rem;
  border-radius: var(--radius); overflow: hidden;
  background: var(--photo-bg);
  aspect-ratio: 3 / 4;
}
.mosaic-item:nth-child(4n+2), .mosaic-item:nth-child(4n+3) { aspect-ratio: 1 / 1; }   /* alta · baja · baja · alta */
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transition: transform .9s var(--ease-soft); }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item .ref-tag { left: .7rem; bottom: .7rem; }
.pending--inline { max-width: 42rem; margin: 2rem auto 0; text-align: center; }

/* =============================================================
   13. Citas (días y horas: de ejemplo en la muestra, reales en la final)
   ============================================================= */
.citas { background: var(--bg); }
.citas-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.citas-text { display: grid; gap: 1.3rem; justify-items: start; }
.citas-nota { font-size: .875rem; color: var(--ink-mute); padding-left: .9rem; border-left: 2px solid var(--accent); max-width: 46ch; }
.citas-card {
  position: relative;
  display: grid; gap: 1.3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.3);
}
.citas-card__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.015em; }
.citas-card__title em { font-style: italic; color: var(--accent-ink); }
.citas-card:focus { outline: none; }
.citas-pasos { list-style: none; display: grid; gap: .6rem; }
.citas-pasos li { display: flex; align-items: center; gap: .85rem; font-weight: 500; color: var(--ink-mute); transition: color .3s var(--ease-out); }
.citas-pasos__n {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink-mute);
  font-size: .85rem; font-weight: 600;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.citas-pasos li.is-actual, .citas-pasos li.is-hecho { color: var(--ink); }
.citas-pasos li.is-actual .citas-pasos__n { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.citas-pasos li.is-hecho .citas-pasos__n { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.citas-bloque { display: grid; gap: .8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.citas-bloque[hidden] { display: none; }
.citas-etiqueta { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.citas-etiqueta:focus { outline: none; }
.citas-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.citas-nav { display: flex; gap: .35rem; }
.citas-flecha {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 1.25rem; line-height: 1; color: var(--ink);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.citas-flecha:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.citas-flecha:disabled { opacity: .35; cursor: default; }

.citas-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.citas-dia {
  display: grid; justify-items: center; gap: .1rem;
  padding: .55rem 0 .5rem; border-radius: 12px;
  background: var(--bg); border: 1px solid transparent;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.citas-dia__sem { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.citas-dia__num { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; }
.citas-dia:hover:not(:disabled) { border-color: var(--accent); }
.citas-dia[aria-pressed="true"] { background: var(--accent-btn); color: #fff; }
.citas-dia[aria-pressed="true"] .citas-dia__sem { color: #fff; }
.citas-dia:disabled { background: transparent; cursor: default; opacity: .45; }
.citas-dia:disabled .citas-dia__num { text-decoration: line-through; text-decoration-thickness: 1px; }

.citas-huecos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.citas-hora {
  min-height: 44px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.citas-hora:hover { background: var(--accent-soft); border-color: var(--accent); }
.citas-hora[aria-pressed="true"] { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.citas-huecos.is-cargando { opacity: .5; }
.citas-vacio { font-size: .9375rem; color: var(--ink-mute); }

.citas-servicios { display: grid; gap: .5rem; }
.citas-servicio {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; padding: .6rem 1rem; border-radius: 14px; text-align: left;
  border: 1px solid var(--line-2); background: var(--paper);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.citas-servicio:hover { border-color: var(--accent); background: var(--accent-soft); }
.citas-servicio small { color: var(--ink-mute); font-size: .8125rem; white-space: nowrap; }

.citas-resumen { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.citas-campo { display: grid; gap: .35rem; font-size: .875rem; font-weight: 600; }
.citas-campo input {
  min-height: 48px; padding: 0 1rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg);
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
}
.citas-campo input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.citas-legal { font-size: .8125rem; color: var(--ink-mute); }
.citas-legal a { text-decoration: underline; }
.citas-error { font-size: .875rem; font-weight: 600; color: var(--accent-ink); }
.citas-datos__acciones, .citas-ok__acciones { display: flex; flex-wrap: wrap; gap: .6rem; }

.citas-ok { justify-items: start; }
.citas-ok:focus { outline: none; }
.citas-ok__sello {
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent-btn); padding: .35rem .6rem; border-radius: 6px;
}
.citas-ok__titulo { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; }
.citas-ok__titulo em { font-style: italic; color: var(--accent-ink); }
.citas-ok__cuando { font-size: 1.0625rem; font-weight: 600; }
.citas-ok__cuando::first-letter { text-transform: uppercase; }
.citas-ok__donde, .citas-ok__nota { font-size: .9375rem; color: var(--ink-mute); }
.citas-ok__nota { padding-left: .9rem; border-left: 2px solid var(--accent); }
.citas-otro { justify-self: start; font-size: .875rem; }

/* =============================================================
   14. Reseñas con QR
   ============================================================= */
.resenas { background: var(--bg-2); }
.resenas-grid { display: grid; gap: 3.5rem; align-items: center; }
.resenas-text { display: grid; gap: 1.3rem; justify-items: start; }
.qr-wrap { display: grid; place-items: center; padding-block: 1rem; }
.qr-card {
  position: relative; margin: 0;
  width: min(100%, 320px);
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: 16px;
  background: var(--paper); color: var(--ink);
  border-top: 8px solid var(--accent-btn);
  text-align: center;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.06);
  transform: rotate(-2.5deg);
  transition: transform .5s var(--ease-soft);
}
.qr-card:hover { transform: rotate(0deg) translateY(-4px); }
.qr-card__brand { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .7rem; }
.qr-card__title { font-family: var(--serif); font-size: 1.85rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.qr-card__title em { font-style: italic; color: var(--accent-ink); }
.qr-card__code { width: 176px; margin: 0 auto 1rem; padding: 8px; background: #fff; border-radius: 8px; }
.qr-card__code svg { width: 100%; height: auto; }
.qr-card figcaption { color: var(--ink-mute); font-size: .9375rem; line-height: 1.4; }
.qr-card__link { margin-top: 1rem; font-size: .875rem; }

/* =============================================================
   15. Visítanos (cierre)
   ============================================================= */
.visit {
  background:
    radial-gradient(60% 55% at 12% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(55% 60% at 88% 80%, var(--accent-2-glow), transparent 70%),
    var(--bg);
}
.visit-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.visit-info { display: grid; gap: 1.8rem; align-content: start; justify-items: start; }
.visit-phone {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--accent-ink);
  border-bottom: 2px solid var(--accent-glow);
  padding-bottom: .2rem;
  transition: border-color .3s var(--ease-out);
}
.visit-phone:hover { border-color: var(--accent-ink); }
.facts { display: grid; gap: 1.1rem; width: 100%; }
.fact { display: grid; gap: .25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fact dt { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.fact dd { margin: 0; font-size: 1.0625rem; }
.fact dd small { display: block; color: var(--ink-mute); font-size: .875rem; margin-top: .2rem; }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 360px; background: var(--bg-2);
  border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =============================================================
   16. Para el dueño
   ============================================================= */
.dueno { background: var(--bg); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.dueno-box {
  position: relative;
  padding: clamp(1.5rem, 4.5vw, 3.4rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1.5px dashed var(--accent);
}
.dueno-head { display: grid; gap: 1.1rem; justify-items: start; max-width: 48rem; }
.dueno-tag {
  display: inline-flex; align-items: center;
  padding: .45rem .8rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.dueno-lista { list-style: none; display: grid; gap: 1.6rem; margin: 2.5rem 0 2.25rem; }
.dueno-lista li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.dueno-icono {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.dueno-icono svg { width: 22px; height: 22px; }
.dueno-lista h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; margin-bottom: .3rem; }
.dueno-lista p { color: var(--ink-mute); font-size: .95rem; }
.dueno-lista a, .enlace {
  color: var(--accent-ink); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.dueno-box > .nota { margin-top: 1.2rem; }

/* =============================================================
   17. Pie (oscuro: --ink de fondo, --bg de texto)
   ============================================================= */
.footer {
  background: var(--ink); color: var(--on-ink);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer .brand { color: var(--bg); }
.footer-brand { font-size: clamp(1.8rem, 4vw, 2.6rem); white-space: normal; overflow: visible; }
.footer a { color: var(--bg); }
.footer a:hover { color: var(--on-ink-accent); }
.footer-col { display: grid; gap: .35rem; align-content: start; }
.footer-col .kicker { color: var(--on-ink-mute); margin-bottom: .35rem; }
.footer-credits { margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
.footer-credits .kicker { color: var(--on-ink-mute); margin-bottom: .8rem; }
.credits-list { list-style: none; display: grid; gap: .4rem 2rem; font-size: .78rem; line-height: 1.45; }
.footer .credits-list a {
  color: var(--on-ink-mute);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--bg) 28%, transparent);
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
.footer .credits-list a:hover { color: var(--bg); }
.footer-bottom {
  margin-top: 2.25rem; padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .8125rem; color: var(--on-ink-mute);
}

/* =============================================================
   18. Barra fija (móvil), asistente, aviso y caducidad
   ============================================================= */
.barra-fija {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem;
  padding: .55rem max(.75rem, env(safe-area-inset-left)) calc(.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.barra-fija:has([data-wa-negocio][hidden]) { grid-template-columns: 1fr auto; } /* final sin WhatsApp */
.barra-fija .btn { min-height: 50px; padding: 0 .8rem; box-shadow: none; }
.barra-fija .btn:hover { transform: none; }
.barra-fija__chat { width: 54px; padding: 0 !important; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.barra-fija__chat svg { width: 24px; height: 24px; }
body.chat-abierto .barra-fija { visibility: hidden; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

.chat-burbuja {
  position: fixed; z-index: 95; right: 1.5rem; bottom: 1.5rem;
  display: none; align-items: center; gap: .55rem;
  min-height: 56px; padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: .9375rem;
  box-shadow: 0 16px 36px -10px rgba(0,0,0,.45);
  transition: transform .45s var(--ease-soft), background-color .3s var(--ease-out);
}
.chat-burbuja svg { width: 22px; height: 22px; flex: none; }
.chat-burbuja:hover { transform: translateY(-3px); background: var(--accent-btn); color: #fff; }
.chat-burbuja[aria-expanded="true"] { display: none !important; }

.chat-panel {
  position: fixed; z-index: 110;
  left: .5rem; right: .5rem; bottom: calc(.5rem + env(safe-area-inset-bottom));
  height: min(80svh, 620px);
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.chat-panel[hidden] { display: none; }
.chat-cabecera { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.chat-avatar {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-btn); color: #fff;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-cabecera__txt { flex: 1; min-width: 0; }
.chat-titulo { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.chat-sub { font-size: .8125rem; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-cerrar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-mute); }
.chat-cerrar svg { width: 22px; height: 22px; }
.chat-cerrar:hover { background: var(--bg-2); color: var(--ink); }
.chat-mensajes { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: .65rem .85rem; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
.msg--bot { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 4px; }
.msg--yo { align-self: flex-end; background: var(--accent-btn); color: #fff; border-bottom-right-radius: 4px; }
.msg--ejemplo { border: 1.5px dashed var(--accent); background: transparent; }
.msg--espera { color: var(--ink-mute); font-style: italic; }
.msg__etiqueta {
  display: inline-block; margin-bottom: .4rem;
  font-size: .625rem; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--accent-btn); padding: .28rem .45rem; border-radius: 4px;
}
.msg__quien { display: block; font-size: .75rem; font-weight: 700; color: var(--ink-mute); margin-bottom: .15rem; }
.chat-opciones { display: flex; flex-wrap: wrap; gap: .45rem; align-self: stretch; }
.chat-opcion {
  min-height: 40px; padding: .45rem .9rem; border-radius: 999px;
  color: var(--accent-ink); border: 1px solid var(--accent-ink);
  font-size: .875rem; font-weight: 600; line-height: 1.2; text-align: left;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.chat-opcion:hover { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.chat-acciones { display: flex; flex-wrap: wrap; gap: .45rem; }
.chat-acciones .btn { min-height: 40px; font-size: .875rem; padding: 0 .9rem; box-shadow: none; }
.chat-acciones .btn svg { width: 17px; height: 17px; fill: currentColor; }
.chat-form { display: flex; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--bg); }
.chat-form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 .95rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-2);
  font: 400 1rem/1 var(--sans);
}
.chat-form input::placeholder { color: var(--ink-mute); }
.chat-form input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.chat-form button {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-btn); color: #fff;
}
.chat-form button svg { width: 20px; height: 20px; }
.chat-aviso { padding: .45rem .9rem .65rem; font-size: .6875rem; line-height: 1.35; color: var(--ink-mute); background: var(--bg); }

.aviso {
  width: min(92vw, 27rem); margin: auto; padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
}
.aviso::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.aviso__titulo { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: .65rem; }
.aviso__texto { color: var(--ink-mute); font-size: .98rem; }
.aviso__acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.aviso [hidden] { display: none; }

.caducada {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(60% 50% at 50% 35%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.caducada[hidden] { display: none; }
.caducada__caja { max-width: 30rem; text-align: center; display: grid; gap: 1.1rem; justify-items: center; }
.caducada__caja .h2 { font-size: clamp(2rem, 6vw, 3rem); }
.caducada__caja p { color: var(--ink-mute); }

/* =============================================================
   19. Efectos
   ============================================================= */
/* Cursor propio: dos círculos (solo puntero fino y sin «reducir movimiento») */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .has-cursor .cursor { display: block; }
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: #fff; border-radius: 50%; }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px; border: 1px solid #fff; border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 48px; height: 48px; margin: -24px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor iframe, .has-cursor input { cursor: auto; }

/* Aparición al hacer scroll — solo con JS activo (sin JS todo se ve) */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js .bento [data-reveal]:nth-child(2), .js .columnas [data-reveal]:nth-child(2) { transition-delay: .06s; }
.js .bento [data-reveal]:nth-child(3), .js .columnas [data-reveal]:nth-child(3) { transition-delay: .12s; }
.js .bento [data-reveal]:nth-child(4), .js .columnas [data-reveal]:nth-child(4) { transition-delay: .18s; }
.js .bento [data-reveal]:nth-child(6), .js .columnas [data-reveal]:nth-child(6) { transition-delay: .06s; }
.js .bento [data-reveal]:nth-child(7), .js .columnas [data-reveal]:nth-child(7) { transition-delay: .12s; }
.js .bento [data-reveal]:nth-child(8), .js .columnas [data-reveal]:nth-child(8) { transition-delay: .18s; }
/* main.js quita data-reveal de las tarjetas con giro al terminar la aparición */

/* =============================================================
   20. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 899px) {
  /* La barra fija tapa los últimos 68 px: la portada A deja ese hueco abajo */
  .portada--a .portada-content { padding-bottom: calc(clamp(3.75rem, 8vh, 5rem) + 56px); }
}
@media (max-width: 719px) {
  .portada--c .portada-title { font-size: clamp(3.1rem, 14.5vw, 5.5rem); }
}
@media (min-width: 540px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > figure:nth-of-type(1), .bento > .c-h { grid-column: span 2; }
}
@media (min-width: 600px) {
  .portada-facts { grid-template-columns: fit-content(17rem) fit-content(11rem) minmax(0, 1fr); gap: 1.25rem 2rem; }
  .columnas { gap: 1rem; }
  .columnas > .dato { grid-column: auto; }
  .columnas > .dato--w { grid-column: span 2; }
}
@media (min-width: 720px) {
  .presentacion-grid { grid-template-columns: 9rem 1fr; gap: 2rem; }
  .presentacion-side { flex-direction: column; gap: .6rem; }
  .num--big { font-size: 3.4rem; }
  .gallery-head { grid-template-columns: 1fr auto; align-items: end; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mosaic { column-gap: 1rem; }
  .mosaic-item { margin-bottom: 1rem; }
  .portada-frame__img { aspect-ratio: 16 / 8; }
  .credits-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .resenas-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr minmax(0, 26rem); gap: 2rem; }
  .barra-fija { display: none; }
  body { padding-bottom: 0; }
  .chat-burbuja { display: inline-flex; }
  .dueno-lista { grid-template-columns: 1fr 1fr; gap: 1.9rem 2.75rem; }
}
@media (min-width: 560px) {
  .chat-panel { left: auto; right: 1.5rem; bottom: 1.5rem; width: 392px; }
}
@media (hover: hover) and (pointer: fine) {
  .carousel-nav { display: flex; }
  .carousel-track { cursor: grab; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 250px 250px 260px 230px;
    grid-template-areas:
      "a a a a a b b b b c c c"
      "a a a a a d d d d c c c"
      "e e e f f f f f g g g g"
      "e e e h h h h h h h h h";
  }
  .bento .card { min-height: 0; }
  .bento > figure:nth-of-type(1), .bento > .c-h { grid-column: auto; }
  .bento > figure:nth-of-type(1) { grid-area: a; }
  .bento > .c-b { grid-area: b; }
  .bento > figure:nth-of-type(2) { grid-area: c; }
  .bento > .c-d { grid-area: d; }
  .bento > figure:nth-of-type(3) { grid-area: e; }
  .bento > .c-f { grid-area: f; }
  .bento > figure:nth-of-type(4) { grid-area: g; }
  .bento > .c-h { grid-area: h; }

  .columnas {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, minmax(215px, auto));
    grid-template-areas:
      "p1 h  p2"
      "p1 t  p2"
      "d  p3 w"
      "s  p3 p4";
    gap: 1.1rem;
  }
  .columnas > .dato, .columnas > .dato--w { grid-column: auto; }
  .columnas > figure { aspect-ratio: auto; }
  .columnas > figure:nth-of-type(1) { grid-area: p1; }
  .columnas > figure:nth-of-type(2) { grid-area: p2; margin-top: 3rem; }
  .columnas > figure:nth-of-type(3) { grid-area: p3; }
  .columnas > figure:nth-of-type(4) { grid-area: p4; border-radius: var(--radius); }
  .columnas > .dato--h { grid-area: h; }
  .columnas > .dato--t { grid-area: t; }
  .columnas > .dato--d { grid-area: d; }
  .columnas > .dato--s { grid-area: s; }
  .columnas > .dato--w { grid-area: w; }

  .portada-grid { grid-template-columns: 55fr 45fr; }
  .portada-photo { order: 0; }
  .portada-photo img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 5rem); min-height: 420px; }
  .portada-stamp { right: auto; left: -3rem; bottom: 3rem; }

  .split { grid-template-columns: 1fr 1fr; }
  .citas-grid { grid-template-columns: 1.05fr .95fr; }
  .visit-grid { grid-template-columns: 1fr 1.1fr; }
  .map { min-height: 100%; }
  .carousel-track {
    padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  }
  .slide { width: 340px; }
  .service-cards--hueco { grid-template-columns: repeat(4, 1fr); }
  .mosaic { columns: 4; }
}
@media (min-width: 1100px) {
  .dueno-lista { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .portada--a .portada-content { padding-bottom: 5.5rem; }
  .slide { width: 380px; }
}

/* =============================================================
   21. Reducir movimiento: se apaga lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .intro { animation-name: intro-fade; }
  .js .intro--lcp { animation: none; }
  .portada--a .portada-bg img, .portada-frame__img img, .portada-stamp svg:first-child, .marquee-track { animation: none; }
  .js [data-reveal] { transform: none; }
}

/* =============================================================
   22. Impresión
   ============================================================= */
@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
  .site-header, .barra-fija, .chat-burbuja, .chat-panel, .cursor { display: none !important; }
  body { padding-bottom: 0; }
}
