/* ==========================================================================
   Clínica Veterinaria Oleza · sistema de diseño
   --------------------------------------------------------------------------
   1. Fuentes (servidas en local)      6. Cabecera y menú
   2. Tokens                           7. Pie y cierre
   3. Base y tipografía                8. Secciones y componentes
   4. Rejilla y utilidades             9. Formulario
   5. Botones y enlaces               10. Movimiento · impresión
   ========================================================================== */

/* 1. Fuentes ---------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  /* Color: lino y azul puerto */
  --bg: #f3f1ec;
  --paper: #fbfaf7;
  --surface: #e6e2d9;
  --ink: #1d2530;
  --muted: #56606d;
  --accent: #2c5877;
  --accent-strong: #214560;
  --accent-ink: #ffffff;
  --line: rgba(29, 37, 48, 0.14);
  --line-strong: rgba(29, 37, 48, 0.28);
  --inv-bg: #1d2530;
  --inv-surface: #29313b;
  --inv-ink: #f3f1ec;
  --inv-muted: #b3b7ba;
  --inv-line: rgba(243, 241, 236, 0.18);
  --error: #a3312a;

  /* Tipografía */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-h1: clamp(2.5rem, 1.42rem + 4.6vw, 4.5rem);
  --t-h1-page: clamp(2.375rem, 1.6rem + 3.3vw, 4rem);
  --t-h2: clamp(1.875rem, 1.42rem + 1.9vw, 3rem);
  --t-h3: clamp(1.375rem, 1.24rem + 0.56vw, 1.75rem);
  --t-statement: clamp(1.75rem, 1.1rem + 2.75vw, 3.25rem);
  --t-lead: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.8125rem;

  /* Espaciado (base 4) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 120px;
  --section: clamp(72px, 4.2rem + 5vw, 128px);
  --gut: 24px;
  --gap: 24px;

  /* Forma */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --nav: 68px;
  --bar: 0px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 160ms;
  --mid: 320ms;
}
@media (min-width: 640px)  { :root { --gut: 48px; } }
@media (min-width: 1024px) { :root { --gut: 56px; --nav: 76px; } }
@media (min-width: 1280px) { :root { --gut: 80px; } }
@media (max-width: 767px)  { :root { --bar: 72px; } }

/* 3. Base y tipografía ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav) + 16px);
}
body {
  margin: 0;
  padding-bottom: var(--bar);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.625;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: var(--t-h2); letter-spacing: -0.022em; }
h3 { font-size: var(--t-h3); line-height: 1.18; }
p { text-wrap: pretty; }
strong, b { font-weight: 500; }
em { font-family: var(--font-display); font-style: italic; font-size: 1.06em; }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); line-height: 1.45; }
.label {
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--inv-ink); }

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; outline-color: var(--bg); outline-offset: -5px; }

/* 4. Rejilla y utilidades --------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gut), 1280px);
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--s-7);
}
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--inv-bg); color: var(--inv-ink); }
.section--dark .muted, .section--dark .label, .section--dark .lead { color: var(--inv-muted); }
.section--tight-top { padding-top: 0; }

.section__head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 5vw, 64px); max-width: 720px; }
.section__head p { color: var(--muted); max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; }
.section--dark .section__head p { color: var(--inv-muted); }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame--32 { aspect-ratio: 3 / 2; }
a .frame img, .frame--zoom img { transition: transform 700ms var(--ease); }
a:hover .frame img, .frame--zoom:hover img { transform: scale(1.03); }

/* 5. Botones y enlaces ------------------------------------------------------ */
.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --btn-bg-hover: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--tonal {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-bg-hover: #dad5ca;
}
.section--surface .btn--tonal, .closing .btn--tonal { --btn-bg: var(--paper); --btn-bg-hover: #ffffff; }
.btn--inv {
  --btn-bg: var(--inv-ink);
  --btn-ink: var(--inv-bg);
  --btn-bg-hover: #ffffff;
}
.btn--inv-tonal {
  --btn-bg: var(--inv-surface);
  --btn-ink: var(--inv-ink);
  --btn-bg-hover: #353e4a;
}
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 0.9375rem; }
.btn--xl {
  width: min(100%, 640px);
  min-height: 72px;
  justify-content: space-between;
  padding: 16px 28px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.btn--xl svg { width: 26px; height: 26px; transition: transform var(--mid) var(--ease); }
.btn--xl:hover svg { transform: translateX(6px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Enlace de texto: el subrayado se dibuja */
.link {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 0% 1.5px, 100% 1.5px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size var(--mid) var(--ease), color var(--fast) var(--ease);
}
.link:hover { background-size: 100% 1.5px, 100% 1.5px; color: var(--accent); }
.on-dark .link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--inv-line), var(--inv-line)); }
.on-dark .link:hover { color: #ffffff; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; }
.link--arrow svg { width: 16px; height: 16px; transition: transform var(--mid) var(--ease); }
.link--arrow:hover svg { transform: translateX(4px); }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 88, 119, 0.4);
  transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.prose a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

/* 6. Cabecera y menú -------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav);
  background: rgba(243, 241, 236, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease), background-color var(--mid) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { flex: none; width: 28px; height: 28px; color: var(--accent); transition: transform var(--mid) var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__kind {
  margin-top: 3px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.nav__links { display: none; }
.nav__side { display: flex; align-items: center; justify-self: end; gap: var(--s-5); }
.nav__tel {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color var(--fast) var(--ease);
}
.nav__tel svg { width: 16px; height: 16px; color: var(--accent); }
.nav__tel:hover { color: var(--accent); }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  margin-right: -6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.nav__toggle:hover { background: var(--surface); }
.nav__toggle-icon { position: relative; width: 18px; height: 12px; }
.nav__toggle-icon::before, .nav__toggle-icon::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform var(--mid) var(--ease), top var(--mid) var(--ease);
}
.nav__toggle-icon::before { top: 1px; }
.nav__toggle-icon::after { top: 9px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links {
    display: flex;
    justify-self: center;
    gap: clamp(4px, 1.2vw, 20px);
  }
  .nav__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--fast) var(--ease);
  }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 8px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--mid) var(--ease);
  }
  .nav__links a:hover { color: var(--accent); }
  .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 1120px) { .nav__tel { display: inline-flex; } }

/* Menú móvil a pantalla completa */
.menu {
  position: fixed;
  inset: var(--nav) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-6) var(--gut) calc(var(--s-6) + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid);
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}
.menu__links a[aria-current="page"] { color: var(--accent); }
.menu__links svg { width: 20px; height: 20px; color: var(--muted); }
.menu__foot { display: grid; gap: var(--s-4); }
.menu__foot .btn { width: 100%; }
@media (min-width: 900px) { .menu { display: none; } }
body.menu-open { overflow: hidden; }

/* Barra fija de acciones en móvil */
.actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
  background: rgba(243, 241, 236, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actionbar .btn { min-height: 48px; padding-inline: 12px; }
@media (min-width: 768px) { .actionbar { display: none; } }
body.menu-open .actionbar { display: none; }

/* 7. Pie y cierre ----------------------------------------------------------- */
.closing { background: var(--surface); padding-top: var(--section); }
.closing__cta { display: grid; gap: var(--s-5); padding-bottom: clamp(56px, 8vw, 104px); }
.closing__cta h2 { max-width: 16ch; }
.closing__cta .small { max-width: 56ch; }
.footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--gap);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line-strong);
}
.footer h3 {
  font-family: var(--font-text);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.footer__brand { grid-column: 1 / -1; display: grid; gap: var(--s-4); align-content: start; }
.footer__brand p { max-width: 34ch; color: var(--muted); }
.footer li + li { margin-top: 2px; }
.footer a:not(.brand) {
  display: inline-block;
  padding-block: 5px;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 calc(100% - 4px);
  background-repeat: no-repeat;
  transition: background-size var(--mid) var(--ease), color var(--fast) var(--ease);
}
.footer a:not(.brand):hover { background-size: 100% 1px; color: var(--accent); }
.footer__hours { display: grid; gap: 4px; }
.footer__hours div { display: flex; justify-content: space-between; gap: var(--s-4); max-width: 280px; }
.footer__hours dt { color: var(--muted); }
.footer__hours dd { font-variant-numeric: tabular-nums; text-align: right; }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--s-5);
  justify-content: space-between;
  padding-block: var(--s-5) var(--s-6);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--muted);
}
.legal a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color var(--fast) var(--ease); }
.legal a:hover { color: var(--ink); }
.legal p { max-width: 70ch; }
@media (min-width: 640px) {
  .footer__hours-col { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 4; }
  .footer__col { grid-column: span 2; }
  .footer__col--wide, .footer__hours-col { grid-column: span 3; }
}
@media (max-width: 639px) {
  .footer__col--wide, .footer__hours-col { grid-column: 1 / -1; }
}

/* 8. Secciones y componentes ------------------------------------------------ */

/* Hero de inicio: texto a la izquierda, fotografía a la derecha */
.hero { padding-top: calc(var(--nav) + 28px); padding-bottom: var(--s-6); }
.hero__grid { display: grid; gap: var(--s-6); }
.hero__text { display: grid; align-content: start; justify-items: start; gap: var(--s-5); }
.hero__text .lead { max-width: 40ch; }
.hero__visual { position: relative; }
.hero__visual .frame { height: clamp(260px, 44svh, 420px); }
.hero .btn-row { width: 100%; }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: -12px;
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
}
.rating svg { width: 16px; height: 16px; color: var(--accent); }
.rating span { background-image: linear-gradient(var(--line-strong), var(--line-strong)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: color var(--fast) var(--ease); }
.rating:hover span { color: var(--accent); }
.float {
  position: absolute;
  left: 16px; bottom: 16px;
  display: grid;
  gap: 2px;
  width: min(300px, calc(100% - 32px));
  padding: 14px 18px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.float__label { display: flex; align-items: center; gap: 8px; }
.float__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.float__value { font-weight: 500; line-height: 1.35; }
@media (max-width: 639px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero {
    display: flex;
    min-height: 100svh;
    padding-top: calc(var(--nav) + 44px);
    padding-bottom: var(--s-8);
  }
  .hero__grid {
    flex: 1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: stretch;
  }
  .hero__text { grid-column: 1 / span 6; padding-top: clamp(8px, 4svh, 56px); gap: var(--s-6); }
  .hero__text .lead { margin-top: -8px; }
  .hero__visual { grid-column: 7 / -1; min-height: 480px; }
  .hero__visual .frame { position: absolute; inset: 0; height: auto; }
  .float { left: 24px; bottom: 24px; }
}

/* Cabecera de página interior */
.page-head { padding-top: calc(var(--nav) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-head__grid { display: grid; gap: var(--s-7); align-items: end; }
.page-head__text { display: grid; gap: var(--s-5); justify-items: start; }
.page-head h1 { font-size: var(--t-h1-page); max-width: 14ch; }
.page-head--text h1 { max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; padding-block: 12px; margin-block: -12px; transition: color var(--fast) var(--ease); }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
@media (min-width: 1024px) {
  .page-head__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .page-head__text { grid-column: 1 / span 6; }
  .page-head__visual { grid-column: 7 / -1; }
}

/* Lista de servicios con fotografía que acompaña (inicio) */
.peek { display: grid; gap: var(--s-6); }
.peek__list { border-top: 1px solid var(--line-strong); }
.peek__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px var(--s-4);
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  transition: padding var(--mid) var(--ease), color var(--fast) var(--ease);
}
.peek__title { grid-column: 1; font-family: var(--font-display); font-size: var(--t-h3); letter-spacing: -0.018em; line-height: 1.15; }
.peek__text { grid-column: 1; color: var(--muted); max-width: 44ch; }
.peek__thumb { grid-column: 2; grid-row: 1 / span 2; width: 76px; height: 76px; border-radius: var(--r-md); object-fit: cover; background: var(--surface); }
.peek__arrow { display: none; }
.peek__stage { display: none; }
.peek__more { margin-top: var(--s-6); }
@media (min-width: 1024px) {
  .peek { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
  .peek__main { grid-column: 1 / span 6; display: flex; flex-direction: column; }
  .peek__row { padding: 26px 0; }
  .peek__thumb { display: none; }
  .peek__arrow {
    display: block;
    grid-column: 2; grid-row: 1 / span 2;
    width: 22px; height: 22px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
  }
  .peek__row:hover, .peek__row.is-active { padding-left: 14px; }
  .peek__row:hover .peek__arrow, .peek__row.is-active .peek__arrow { opacity: 1; transform: none; }
  .peek__row:not(.is-active):not(:hover) .peek__title { color: var(--muted); }
  .peek__stage {
    display: block;
    position: relative;
    grid-column: 8 / -1;
    min-height: 560px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
  }
  .peek__stage img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 500ms var(--ease), transform 900ms var(--ease);
  }
  .peek__stage img.is-active { opacity: 1; transform: none; }
}

/* Opiniones: declaración grande y temas */
.statement { font-family: var(--font-display); font-size: var(--t-statement); line-height: 1.14; letter-spacing: -0.022em; max-width: 24ch; text-wrap: balance; }
.statement .w { transition: color 260ms linear; }
.statement.is-live .w { color: rgba(29, 37, 48, 0.3); }
.statement.is-live .w.is-on { color: var(--ink); }
.statement.is-live .w.is-key.is-on { color: var(--accent); }
.reviews { display: grid; gap: var(--s-7); }
.reviews__score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.reviews__num { font-family: var(--font-display); font-size: clamp(3.5rem, 2.6rem + 3.8vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; }
.themes { display: grid; gap: var(--s-5); border-top: 1px solid var(--line-strong); padding-top: var(--s-6); }
.themes h3 { font-size: 1.375rem; margin-bottom: 8px; }
.themes p { color: var(--muted); max-width: 40ch; }
@media (min-width: 768px) { .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }
@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .reviews__aside { grid-column: 1 / span 4; display: grid; align-content: start; gap: var(--s-5); }
  .reviews__main { grid-column: 6 / -1; }
  .reviews .themes { grid-column: 1 / -1; }
  .statement { max-width: 22ch; }
}

/* Urgencias (banda oscura) */
.urg { display: grid; gap: var(--s-7); }
.urg__steps { display: grid; gap: 0; counter-reset: paso; border-top: 1px solid var(--inv-line); }
.urg__steps li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-4);
  padding: 22px 0;
  border-bottom: 1px solid var(--inv-line);
}
.urg__steps li::before {
  content: counter(paso);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--inv-muted);
}
.urg__steps h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; margin-bottom: 4px; }
.urg__steps p { color: var(--inv-muted); max-width: 52ch; }
.urg__call { display: grid; gap: var(--s-5); align-content: start; }
.urg__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--inv-ink);
  text-decoration: none;
  font-variant-numeric: lining-nums;
  transition: color var(--fast) var(--ease);
}
.urg__tel:hover { color: #ffffff; }
@media (min-width: 1024px) {
  .urg { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .urg__intro { grid-column: 1 / span 5; display: grid; align-content: start; gap: var(--s-6); }
  .urg__list { grid-column: 7 / -1; }
}

/* Visita: dirección, horario y fotografía */
.visit { display: grid; gap: var(--s-7); }
.visit__address { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.022em; }
.visit__info { display: grid; gap: var(--s-6); align-content: start; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; padding-bottom: 10px; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--line-strong); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; color: var(--accent); }
.hours .tag { display: inline-block; margin-left: 8px; padding: 1px 8px 2px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 500; vertical-align: 1px; }
.hours .closed { color: var(--muted); }
.section--surface .hours th, .section--surface .hours td { border-color: var(--line-strong); }
.facts { display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.facts svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
@media (min-width: 1024px) {
  .visit { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
  .visit__info { grid-column: 1 / span 6; }
  .visit__visual { grid-column: 8 / -1; }
  .visit__visual .frame { height: 100%; min-height: 520px; aspect-ratio: auto; }
}

/* Servicios (página): filas con texto, lista y fotografía */
.svc { border-top: 1px solid var(--line-strong); }
.svc__row {
  display: grid;
  gap: var(--s-5);
  padding-block: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--nav) + 8px);
}
.svc__row h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.svc__body { display: grid; gap: var(--s-4); align-content: start; }
.svc__body p { max-width: 48ch; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: 0.58em;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-50%);
  transform-origin: left top;
}
@media (min-width: 768px) {
  .svc__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .svc__body { grid-column: 1 / span 7; }
  .svc__visual { grid-column: 9 / -1; grid-row: 1 / span 2; }
  .svc__list { grid-column: 1 / span 7; }
}
@media (min-width: 1024px) {
  .svc__body { grid-column: 1 / span 4; }
  .svc__list { grid-column: 6 / span 3; padding-top: 6px; }
  .svc__visual { grid-column: 9 / -1; grid-row: auto; }
}

/* Bloque partido genérico (texto + imagen) */
.split { display: grid; gap: var(--s-7); }
.split__text { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.split__text p { max-width: 54ch; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .split__text { grid-column: 1 / span 6; }
  .split__visual { grid-column: 8 / -1; }
}

/* Lista numerada de pasos (qué traer, cómo es una visita) */
.steps { display: grid; counter-reset: paso; border-top: 1px solid var(--line-strong); }
.steps > li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-4);
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}
.steps > li::before { content: counter(paso); font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--accent); }
.steps h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; margin-bottom: 4px; }
.steps p { color: var(--muted); max-width: 56ch; }
.steps--plain { width: 100%; }
.steps--plain > li { grid-template-columns: minmax(0, 1fr); }
.steps--plain > li::before { content: none; }
@media (min-width: 1024px) { .faq-grid > .steps { grid-column: 6 / -1; } }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 68px;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color var(--fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--mid) var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__answer { padding: 0 0 22px; max-width: 62ch; color: var(--muted); }
.faq__answer a { color: var(--accent); text-underline-offset: 3px; }
.faq-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .faq-grid > .section__head { grid-column: 1 / span 4; margin-bottom: 0; }
  .faq-grid > .faq { grid-column: 6 / -1; }
}

/* Equipo: marcadores neutros hasta tener datos reales */
.team { display: grid; gap: var(--gap); }
.member { display: grid; gap: var(--s-4); }
.member__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: rgba(29, 37, 48, 0.22);
}
.section--surface .member__photo, .section--surface .slot { background: #dcd7cc; }
.member__photo svg { width: 56px; height: 56px; }
.member h3 { font-size: 1.375rem; }
.member p { color: var(--muted); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .member { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
  .member__photo { border-radius: var(--r-md); }
  .member__photo svg { width: 32px; height: 32px; }
}

/* Instalaciones: fotografía y huecos reservados */
.gallery { display: grid; gap: var(--gap); }
.slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: var(--s-5);
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-size: var(--t-small);
}
.slot svg { width: 28px; height: 28px; color: rgba(29, 37, 48, 0.3); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gallery > :nth-child(1) { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
  .gallery > :nth-child(n + 2) { grid-column: span 6; }
}

/* Aviso (texto provisional, demostración) */
.notice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 72ch;
}
.notice svg { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }

/* Texto largo (legal, créditos) */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); margin-top: 2.2em; scroll-margin-top: calc(var(--nav) + 16px); }
.prose h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 500; letter-spacing: 0; margin-top: 1.8em; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose ul li::marker { color: var(--accent); }
.prose mark { background: #e8dfc4; color: inherit; padding: 1px 5px; border-radius: 4px; }
.prose dl { display: grid; gap: 6px 24px; }
.prose dt { font-weight: 500; }
@media (min-width: 640px) { .prose dl { grid-template-columns: 220px minmax(0, 1fr); } }
.legal-layout { display: grid; gap: var(--s-7); }
.toc { display: grid; gap: 4px; align-content: start; }
.toc a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .legal-layout > .toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav) + 24px); }
  .legal-layout > .prose { grid-column: 5 / -1; }
}

/* Créditos */
.credits { display: grid; border-top: 1px solid var(--line-strong); }
.credits li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.credits img { width: 88px; height: 88px; border-radius: var(--r-md); object-fit: cover; }
.credits p + p { color: var(--muted); font-size: var(--t-small); }

/* Página 404 */
.lost { min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--nav) + 48px); padding-bottom: var(--s-9); }
.lost__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 12vw, 11rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--surface); -webkit-text-stroke: 1px var(--line-strong); }
.lost .wrap { display: grid; gap: var(--s-5); justify-items: start; }

/* 9. Formulario ------------------------------------------------------------- */
.contact { display: grid; gap: var(--s-8); }
.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav) + 16px);
}
.form-card h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: var(--s-6); max-width: 52ch; }
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-size: var(--t-small); font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d2530' stroke-width='1.5'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 88, 119, 0.28);
  border-radius: 10px;
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { display: none; color: var(--error); font-size: var(--t-small); line-height: 1.4; }
.field__error.is-shown { display: block; }
.field__hint { color: var(--muted); font-size: var(--t-small); line-height: 1.4; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.check input:hover { border-color: var(--ink); }
.check input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--accent);
}
.check input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.check label { font-size: var(--t-small); line-height: 1.5; font-weight: 400; }
.check label a { color: var(--accent); text-underline-offset: 3px; }
.form__foot { display: grid; gap: var(--s-4); justify-items: start; }
.form__status { font-size: 0.9375rem; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); font-weight: 500; }
.form__done {
  display: none;
  gap: var(--s-4);
  justify-items: start;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.form__done.is-shown { display: grid; }
.form__done h3 { font-size: 1.375rem; }
.info { display: grid; gap: var(--s-6); align-content: start; }
.info__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.info__tel:hover { color: var(--accent); }
.info__block { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .contact > .form-card { grid-column: 1 / span 7; }
  .contact > .info { grid-column: 9 / -1; }
}

/* Cómo llegar: dirección en grande */
.reach { display: grid; gap: var(--s-7); }
.reach__address { font-family: var(--font-display); font-size: clamp(2.25rem, 1.3rem + 4.4vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.reach__address span { display: block; color: var(--muted); }
@media (min-width: 1024px) {
  .reach { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .reach__text { grid-column: 1 / span 7; }
  .reach__side { grid-column: 9 / -1; }
}
.reach__text, .reach__side { display: grid; gap: var(--s-5); justify-items: start; align-content: start; }

/* 10. Movimiento ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes unveil {
    from { opacity: 0; clip-path: inset(6% 0 0 0 round var(--r-lg)); transform: translateY(14px); }
    to { opacity: 1; clip-path: inset(0 0 0 0 round var(--r-lg)); transform: none; }
  }
  @keyframes settle {
    from { transform: scale(1.08); }
    to { transform: none; }
  }
  [data-enter] [data-enter-item] { animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
  [data-enter] [data-enter-visual] { animation: unveil 900ms var(--ease) both; animation-delay: 160ms; }
  [data-enter] [data-enter-visual] img { animation: settle 1400ms var(--ease) both; animation-delay: 160ms; }
  [data-enter] .float { animation: rise 600ms var(--ease) both; animation-delay: 820ms; }
  .float__dot { animation: breathe 2.4s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(44, 88, 119, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(44, 88, 119, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Impresión: lo útil en papel es el contacto y el horario */
@media print {
  .nav, .menu, .actionbar, .skip, .closing__cta, .peek__stage { display: none !important; }
  body { background: #fff; padding: 0; }
  .section, .hero, .page-head { padding-block: 24px; min-height: 0; }
  .section--dark { background: #fff; color: #000; }
}
