/* Serra&Tufró — hoja principal. Ver tokens.css para el sistema completo.
 * Nota: los SVG en data-URI llevan el turquesa de marca #71BEB6 y el teal #337d76
 * en duro porque un data-URI no puede leer custom properties; son constantes de marca. */
@import url("tokens.css");

/* ---------- Fuentes autohosteadas (sin CDN de terceros) ---------- */
@font-face {
  font-family: "Zodiak";
  src: url("../assets/fonts/zodiak-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grano de papel — capa de textura global */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.008em;
  overflow-wrap: anywhere;
  min-width: 0;
  font-style: normal;
}

p { max-width: 65ch; }

a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: inherit;
}

.container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--space-md); top: -4rem;
  z-index: var(--z-tooltip);
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  transition: top var(--dur-micro) var(--ease-out);
}
.skip-link:focus-visible { top: var(--space-md); }

/* ---------- Reveals al hacer scroll (one-shot, activados por JS) ---------- */
html:not(.no-js) [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html:not(.no-js) [data-reveal].is-inview { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 46px;
  padding: 0.62rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out),
              transform 140ms var(--ease-out);
}
.btn:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: 1px solid var(--color-accent);
}
.btn--primary:hover { background: oklch(42% 0.09 185); border-color: oklch(42% 0.09 185); }

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}
.btn--outline:hover { background: var(--color-ink); color: var(--color-paper); }

/* Sobre fondo oscuro */
.btn--paper {
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1px solid var(--color-paper);
}
.btn--paper:hover { background: var(--color-paper-2); border-color: var(--color-paper-2); }

.link-arrow {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  white-space: nowrap;
}
.link-arrow::after { content: " →"; display: inline-block; transition: transform var(--dur-micro) var(--ease-out); }
.link-arrow:hover { border-bottom-width: 2px; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-topo);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b {
  color: var(--color-accent);
  font-weight: 700;
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
}

/* ---------- Nav (N1b) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-sticky);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--color-paper) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--color-rule-2);
}
.nav__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}
.nav__brand { justify-self: start; font-size: 1.5rem; line-height: 1; }
.nav__center { justify-self: center; display: flex; align-items: center; gap: 0.2rem; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: var(--space-md); }

.nav__link {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.5rem 0.85rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  border-radius: 999px;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.nav__link:hover { color: var(--color-ink); background: var(--color-paper-2); }
.nav__link[aria-current="page"] { color: var(--color-accent); }

.nav__tel {
  font-weight: 500; text-decoration: none; color: var(--color-ink-2);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.nav__tel:hover { color: var(--color-ink); }

.nav__caret {
  width: 0.55em; height: 0.55em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-micro) var(--ease-out);
}
.nav__item { position: relative; }
.nav__item[data-open="true"] .nav__caret { transform: rotate(225deg) translateY(-1px); }

.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 0;
  min-width: 19rem;
  padding: var(--space-xs);
  background: var(--color-paper);
  border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px -24px oklch(20% 0.02 60 / 0.35);
  display: grid;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease-out), transform 200ms var(--ease-out), visibility 180ms;
  z-index: var(--z-dropdown);
}
.nav__item[data-open="true"] .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
}

.nav__dropitem {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-ink-2);
  font-size: var(--text-base);
  white-space: nowrap;
}
.nav__dropitem:hover { background: var(--color-paper-2); color: var(--color-ink); }
.nav__dropitem em {
  font-style: normal; display: block;
  font-size: var(--text-xs); color: var(--color-muted);
}

.nav__burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-ink);
  transition: transform var(--dur-short) var(--ease-in-out), opacity var(--dur-micro) linear;
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav__sheet {
  display: none;
  position: fixed; inset: 74px 0 0 0;
  z-index: var(--z-modal);
  background: var(--color-paper);
  overflow-y: auto;
  padding: var(--space-lg) var(--page-gutter) var(--space-3xl);
}
.nav__sheet.is-open { display: block; }
.nav__sheet a {
  display: block;
  padding: 0.8rem 0.2rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule-2);
}
.nav__sheet a:hover { color: var(--color-accent); }
.nav__sheet .nav__sheet-sub { font-family: var(--font-body); font-size: var(--text-base); color: var(--color-ink-2); padding-left: var(--space-md); }
.nav__sheet .nav__sheet-cta { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.nav__sheet .nav__sheet-cta .btn { flex: 1 1 12rem; }
body.nav-open { overflow: hidden; }

@media (max-width: 62rem) {
  .nav__center, .nav__tel { display: none; }
  .nav__burger { display: block; }
  .nav__inner { grid-template-columns: 1fr auto auto; }
}

/* ---------- Hero (H2 díptico 6/6) ---------- */
.hero {
  position: relative;
  padding-top: calc(74px + clamp(1.25rem, 3.5vh, 2.75rem));
  padding-bottom: var(--space-2xl);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(var(--space-xl), 5vw, var(--space-3xl));
  align-items: center;
}
.hero h1 {
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.05;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(114%);
  animation: line-up 820ms var(--ease-out) forwards;
  animation-delay: calc(var(--l, 0) * 130ms + 80ms);
}
@keyframes line-up { to { transform: none; } }

/* La nav baja suave al cargar */
.nav { animation: nav-in 640ms var(--ease-out) both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Palabra marcada con subrayado dibujado */
.mark { position: relative; color: var(--color-accent); font-weight: 500; white-space: nowrap; }
.mark svg {
  position: absolute; left: -2%; bottom: -0.2em;
  width: 104%; height: 0.32em;
  overflow: visible;
}
.mark svg path {
  fill: none;
  stroke: var(--color-accent-soft);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw-stroke 700ms var(--ease-out) forwards;
  animation-delay: 1250ms;
}
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }

.hero__lede {
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  color: var(--color-ink-2);
  max-width: 46ch;
}
.hero__cta {
  margin-top: var(--space-xl);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-md);
}
.hero__proof {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
  display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap;
}
.hero__proof a { color: inherit; }

/* Marco fotográfico artesanal: sombra + filo turquesa descentrado */
.framed { position: relative; }
.framed img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-photo);
}
.framed::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1.5px solid var(--color-accent-soft);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* Pies de foto: separados de la imagen y con letra espaciada */
.hero__figure figcaption,
.dip__figure figcaption,
.team-banda figcaption,
.svc-body figure figcaption {
  margin-top: var(--space-lg);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Diente line-art (SVG inline; colores por tokens) ---------- */
.tooth { display: block; }
.tooth .tooth__body {
  stroke: var(--color-topo);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.tooth .tooth__shine {
  stroke: var(--color-accent-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
}
.tooth .tooth__spark { fill: var(--color-accent-soft); }

/* Dientes flotantes del hero: se dibujan al cargar y luego flotan suave */
.tooth--float { position: absolute; pointer-events: none; }
.tooth--float .tooth__body,
.tooth--float .tooth__shine {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation-name: draw-path;
  animation-duration: 1100ms;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: forwards;
  animation-delay: 1500ms;
}
.tooth--float .tooth__shine { animation-duration: 500ms; animation-delay: 2400ms; }
.tooth--float .tooth__spark {
  opacity: 0;
  transform-origin: 40px 10px;
  animation: spark-pop 420ms var(--ease-out) forwards;
  animation-delay: 2700ms;
}
@keyframes draw-path { to { stroke-dashoffset: 0; } }
@keyframes spark-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.hero__figure .tooth--a {
  width: clamp(58px, 6.5vw, 92px);
  top: -13%; left: -8%;
  animation: floaty 7s ease-in-out 3.2s infinite alternate;
}
.hero__figure .tooth--b {
  width: clamp(42px, 4.6vw, 64px);
  bottom: 10%; right: -7%;
  rotate: 12deg;
  animation: floaty 6s ease-in-out 3.6s infinite alternate-reverse;
}
@keyframes floaty { from { translate: 0 0; } to { translate: 0 -9px; } }

.hero__figure { position: relative; z-index: 0; margin: 0; }
.hero__figure img {
  aspect-ratio: 1180 / 843;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-photo);
  animation: photo-wipe 1050ms var(--ease-out) 480ms both,
             photo-zoom 1600ms var(--ease-out) 480ms both;
}
@keyframes photo-wipe {
  from { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }
  to   { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
}
@keyframes photo-zoom {
  from { transform: scale(1.07); }
  to   { transform: none; }
}
/* Arco de fondo tras la foto: se alza antes de que llegue la foto */
.hero__figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -9%; right: -9%;
  top: -17%; bottom: -9%;
  background: var(--color-accent-wash);
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  transform-origin: bottom center;
  animation: arch-rise 900ms var(--ease-out) 240ms both;
}
@keyframes arch-rise {
  from { opacity: 0; transform: scaleY(0.9) translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero__figure figcaption { animation: caption-in 500ms var(--ease-out) 1450ms both; }
@keyframes caption-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Entrada orquestada de la carga (hero) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 56rem) {
  .hero { padding-top: calc(74px + var(--space-xl)); padding-bottom: var(--space-2xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .hero h1 { max-width: 16ch; }
  .framed::before { inset: -9px -9px 9px 9px; }
  .hero__figure { margin-top: var(--space-md); }
  .hero__figure::before { top: -9%; left: -5%; right: -5%; }
  .hero__figure .tooth--a { top: -11%; left: -3%; }
  .hero__figure .tooth--b { right: -3%; }
}

/* ---------- Marquesina de marca ---------- */
.marquee {
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-md);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__seq {
  display: inline-flex;
  align-items: baseline;
  gap: 1.4rem;
  padding-right: 1.4rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-ink-2);
}
.marquee__seq b { color: var(--color-accent-soft); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cabeceras de sección ---------- */
.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.band { background: var(--color-paper-2); }
.section__head { margin-bottom: var(--space-xl); max-width: 46rem; }
.section__head::before {
  content: "";
  display: block;
  width: 32px; height: 38px;
  margin-bottom: var(--space-md);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56' fill='none'%3E%3Cpath d='M24 8 C 16 2, 4 6, 6 18 C 7 26, 12 30, 13 40 C 13.5 47, 15 53, 18.5 53 C 22 53, 21.5 45, 24 45 C 26.5 45, 26 53, 29.5 53 C 33 53, 34.5 47, 35 40 C 36 30, 41 26, 42 18 C 44 6, 32 2, 24 8 Z' stroke='%23756857' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13 14 C 14.5 11, 17 9.5, 20 9.5' stroke='%2371BEB6' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M40 4 C 40.6 7.4, 42.6 9.4, 46 10 C 42.6 10.6, 40.6 12.6, 40 16 C 39.4 12.6, 37.4 10.6, 34 10 C 37.4 9.4, 39.4 7.4, 40 4 Z' fill='%2371BEB6'/%3E%3C/svg%3E") no-repeat left center / contain;
}
.section__head h2 { font-size: var(--text-2xl); font-weight: 500; }
.section__head p { margin-top: var(--space-sm); color: var(--color-muted); }

/* ---------- Índice de servicios (filas catálogo) ---------- */
.svc-index { border-top: var(--rule-hair) solid var(--color-rule); }
.svc-index__row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 21.5rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-md);
  padding: 1.1rem var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-decoration: none;
  color: var(--color-ink);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.svc-index__row:hover { background: color-mix(in oklch, var(--color-accent-wash) 55%, var(--color-paper)); }
.svc-index__num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-base);
  color: var(--color-accent);
}
.svc-index__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color var(--dur-micro) var(--ease-out);
}
.svc-index__row:hover .svc-index__name { color: var(--color-accent); }
.svc-index__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 52ch;
}
.svc-index__go {
  color: var(--color-accent);
  font-weight: 500;
  transition: transform var(--dur-micro) var(--ease-out);
}
.svc-index__row:hover .svc-index__go { transform: translateX(5px); }

@media (max-width: 56rem) {
  .svc-index__row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .svc-index__desc { display: none; }
}

/* ---------- Dípticos alternos (Split Studio) ---------- */
.dip { padding-block: var(--space-3xl); }
.dip__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
  align-items: center;
}
.dip--flip .dip__grid > :first-child { order: 2; }
.dip h2 { font-size: var(--text-2xl); font-weight: 500; max-width: 20ch; }
.dip p { margin-top: var(--space-md); color: var(--color-ink-2); }
.dip .link-arrow { display: inline-block; margin-top: var(--space-lg); }
.dip__figure { margin: 0; }
.dip__figure figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* Tarjeta de reseña usada como "prueba" en un díptico */
.proof-card {
  position: relative;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  padding-top: var(--space-2xl);
  box-shadow: var(--shadow-lift);
}
.proof-card::before {
  content: "\201C";
  position: absolute;
  top: -0.12em; left: 0.18em;
  font-family: var(--font-display);
  font-size: 6.5rem;
  line-height: 1;
  color: var(--color-accent-soft);
  pointer-events: none;
}
.proof-card blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.32;
}
.proof-card figcaption {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Panel tipográfico (medicina estética) */
.type-panel {
  background: var(--color-accent-wash);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.type-panel ul {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: var(--space-xl);
}
.type-panel li {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  padding-block: 0.4rem;
  break-inside: avoid;
}
.type-panel li::before { content: "&"; font-weight: 500; color: var(--color-accent); margin-right: 0.55em; }
@media (max-width: 40rem) { .type-panel ul { columns: 1; } }

@media (max-width: 56rem) {
  .dip { padding-block: var(--space-2xl); }
  .dip__grid { grid-template-columns: minmax(0, 1fr); }
  .dip--flip .dip__grid > :first-child { order: 0; }
}

/* ---------- Estrellas de reseña ---------- */
.stars {
  display: inline-flex; gap: 2px;
  color: var(--color-accent);
}
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Reseñas ---------- */
.reviews { position: relative; }
.reviews__big {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: var(--space-xl);
  align-items: end;
  padding-block: var(--space-lg) var(--space-2xl);
}
.reviews__big blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.7vw + 0.95rem, 2.2rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.005em;
  max-width: 26ch;
}
.reviews__big figcaption { font-size: var(--text-sm); color: var(--color-muted); display: grid; gap: 0.4rem; justify-items: start; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.review {
  border-top: 2px solid var(--color-accent-soft);
  padding-top: var(--space-md);
}
.review blockquote { font-size: var(--text-base); color: var(--color-ink-2); }
.review figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap; }
.reviews__all { margin-top: var(--space-xl); }

@media (max-width: 56rem) {
  .reviews__big { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-lg);
}
.team-card { text-decoration: none; color: inherit; }
.team-card figure { margin: 0; overflow: hidden; border-radius: var(--arch); background: var(--color-paper-3); }
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--arch);
  transition: transform var(--dur-long) var(--ease-out);
}
.team-card:hover img { transform: scale(1.035); }
.team-card h3 {
  margin-top: var(--space-md);
  font-size: var(--text-md);
  font-weight: 500;
  text-align: center;
}
.team-card p { font-size: var(--text-sm); color: var(--color-muted); margin-top: 2px; text-align: center; }
.team-more { margin-top: var(--space-xl); }

@media (max-width: 56rem) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); } }

.team-banda { margin: 0; }
.team-banda figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Banda oscura de visita ---------- */
.visit {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-xl), 5vw, var(--space-3xl));
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-2xl);
}
.visit::before {
  content: "&";
  position: absolute;
  right: -1.5rem; top: -7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30rem;
  line-height: 1;
  color: var(--color-accent-soft);
  opacity: 0.09;
  pointer-events: none;
}
.visit > * { position: relative; }
.visit h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  max-width: 17ch;
}
.visit h2 b { color: var(--color-accent-soft); font-weight: 500; }
.visit__addr { margin-top: var(--space-md); color: oklch(80% 0.012 80); }
.visit__addr a { color: inherit; text-decoration-color: var(--color-accent-soft); }
.visit__addr a:hover { color: var(--color-accent-soft); }
.visit__cta { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-md); }
.visit__cta .maps-link { color: var(--color-accent-soft); align-self: center; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption {
  text-align: left;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(70% 0.02 80);
  padding-bottom: var(--space-sm);
}
.hours td {
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--color-dark-2);
  font-size: var(--text-sm);
  color: oklch(88% 0.008 80);
}
.hours td:last-child { text-align: right; }
.hours tr:last-child td { border-bottom: 0; }

@media (max-width: 56rem) {
  .visit { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .visit::before { font-size: 18rem; top: auto; bottom: -6rem; }
}

/* ---------- Footer (Ft1) ---------- */
.foot {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-2xl);
  background: var(--color-paper-2);
}
.foot::before {
  content: "&";
  position: absolute;
  right: 2vw; bottom: -9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24rem;
  line-height: 1;
  color: var(--color-topo);
  opacity: 0.06;
  pointer-events: none;
}
.foot .container { position: relative; }
.foot__mast { font-size: var(--text-xl); }
.foot__tagline { margin-top: var(--space-xs); color: var(--color-muted); }
.foot__row {
  margin-top: var(--space-xl);
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl);
  font-size: var(--text-sm); color: var(--color-muted);
}
.foot__row a { color: inherit; text-decoration: none; }
.foot__row a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__legal {
  margin-top: var(--space-xl);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ---------- Barra CTA móvil (C4) ---------- */
.cta-sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  align-items: center; justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--color-paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: var(--rule-hair) solid var(--color-rule);
  transform: translateY(105%);
  transition: transform var(--dur-short) var(--ease-out);
}
.cta-sticky.is-visible { transform: none; }
.cta-sticky span { font-size: var(--text-sm); color: var(--color-muted); }
.cta-sticky .btn { min-height: 44px; padding-block: 0.5rem; }
@media (max-width: 46rem) {
  .cta-sticky { display: flex; }
  body { padding-bottom: 4.4rem; }
}

/* ---------- Página interior: cabecera ---------- */
.page-head { position: relative; padding-top: calc(74px + var(--space-2xl)); padding-bottom: var(--space-xl); }
.page-head .crumb {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-lg);
}
.page-head .crumb:hover { color: var(--color-ink); }
.page-head h1 { font-size: var(--text-display-s); font-weight: 500; max-width: 22ch; }
.page-head .lede {
  margin-top: var(--space-md);
  font-size: var(--text-md);
  color: var(--color-ink-2);
  max-width: 52ch;
}

/* ---------- Página de servicio: dos columnas + aside pegajoso ---------- */
.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-3xl);
  align-items: start;
  padding-bottom: var(--space-2xl);
}
.svc-body > h2 {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-top: var(--space-2xl);
  max-width: 26ch;
}
.svc-body > h3 { font-size: var(--text-md); font-weight: 600; margin-top: var(--space-xl); font-family: var(--font-body); }
.svc-body > p { margin-top: var(--space-md); color: var(--color-ink-2); }
.svc-body > h2:first-child { margin-top: 0; }
.svc-body ul { margin-top: var(--space-md); padding-left: 1.1rem; color: var(--color-ink-2); max-width: 60ch; }
.svc-body li { margin-top: var(--space-xs); padding-left: 0.2rem; }
.svc-body li::marker { color: var(--color-accent); content: "— "; }
.svc-body figure { margin: var(--space-xl) 0 var(--space-md); }
.svc-body figure figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

.svc-aside {
  position: sticky; top: calc(74px + var(--space-lg));
  background: var(--color-paper-2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}
.tooth--aside { width: 42px; margin: 0 auto var(--space-md); }
.svc-aside h2 { font-size: var(--text-lg); font-weight: 500; }
.svc-aside p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); margin-inline: auto; }
.svc-aside .btn { width: 100%; margin-top: var(--space-md); }
.svc-aside .svc-aside__tel {
  display: block; margin-top: var(--space-md);
  font-variant-numeric: tabular-nums;
  text-align: center; font-size: var(--text-sm); color: var(--color-muted);
}
.svc-aside .svc-aside__tel a { color: var(--color-ink-2); }

@media (max-width: 56rem) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .svc-aside { position: static; border-radius: var(--radius-lg); padding: var(--space-xl); }
}

/* Comparativa antes / ahora (implantología) */
.vs {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vs__col { padding: var(--space-lg); }
.vs__col + .vs__col { border-left: var(--rule-hair) solid var(--color-rule); }
.vs__col h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.vs__col--now { background: var(--color-accent-wash); }
.vs__col--now h3 { color: var(--color-accent); }
.vs__col ul { list-style: none; padding: 0; margin-top: var(--space-md); }
.vs__col li { padding-block: 0.35rem; font-size: var(--text-sm); color: var(--color-ink-2); border-top: var(--rule-hair) solid var(--color-rule-2); }
@media (max-width: 40rem) {
  .vs { grid-template-columns: minmax(0, 1fr); }
  .vs__col + .vs__col { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
}

/* Pasos (F4) */
.steps { list-style: none; padding: 0; margin-top: var(--space-lg); counter-reset: step; }
.steps li {
  position: relative;
  padding: var(--space-lg) 0 var(--space-lg) 3.6rem;
  border-top: var(--rule-hair) solid var(--color-rule);
  counter-increment: step;
  max-width: 60ch;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-lg);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-md);
  color: var(--color-accent);
  font-weight: 500;
}
.steps h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; }
.steps p { margin-top: var(--space-xs); font-size: var(--text-base); color: var(--color-ink-2); }

/* FAQ acordeón */
.faq { margin-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md) var(--space-2xs);
  font-weight: 500;
  font-size: var(--text-md);
  transition: color var(--dur-micro) var(--ease-out);
}
.faq summary:hover { color: var(--color-accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: var(--text-lg);
  line-height: 1;
  transition: transform var(--dur-short) var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-short) var(--ease-in-out);
}
.faq details[open] .faq__body { grid-template-rows: 1fr; }
.faq .faq__body > div { overflow: hidden; }
.faq .faq__body p { padding: 0 var(--space-2xs) var(--space-md); color: var(--color-ink-2); }

/* Test de apnea */
.apnea-test { margin-top: var(--space-lg); }
.apnea-test ul { list-style: none; padding: 0; margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.apnea-test li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.apnea-test label {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-sm) var(--space-2xs);
  cursor: pointer;
}
.apnea-test input { width: 1.15rem; height: 1.15rem; accent-color: var(--color-accent); flex: none; }
.apnea-test output {
  display: block;
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  font-size: var(--text-base);
  color: var(--color-ink-2);
}
.apnea-test output.is-warn { background: var(--color-accent-wash); color: var(--color-ink); }
.apnea-test .apnea-note { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }

/* Enlaces relacionados */
.related { margin-top: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-xl); }
.related h2 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 600; color: var(--color-muted); }
.related ul { list-style: none; padding: 0; margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); }
.related a { font-family: var(--font-display); font-size: var(--text-md); text-decoration: none; color: var(--color-ink); border-bottom: 1px solid var(--color-rule); }
.related a:hover { color: var(--color-accent); border-color: currentColor; }

/* ---------- Contacto ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-3xl);
  align-items: start;
  padding-bottom: var(--space-2xl);
}
.form-field { margin-top: var(--space-lg); }
.form-field label { display: block; font-weight: 500; font-size: var(--text-sm); margin-bottom: 0.35rem; }
.form-field .input {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.form-field .input:hover { background: var(--color-paper-2); }
.form-field .input:focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
.form-field .input[aria-invalid="true"] { border-color: var(--color-error); }
.form-field textarea.input { min-height: 8rem; resize: vertical; }
.form-field .helper { min-height: 1lh; margin-top: 0.3rem; font-size: var(--text-xs); color: var(--color-muted); }
.form-field .helper.is-error { color: var(--color-error); }
.form-check { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); align-items: flex-start; font-size: var(--text-sm); color: var(--color-ink-2); }
.form-check input { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--color-accent); flex: none; }
.contact-form .btn { margin-top: var(--space-xl); }
.form-status { margin-top: var(--space-md); font-size: var(--text-sm); min-height: 1lh; }
.form-status.is-error { color: var(--color-error); }
.form-status.is-success { color: var(--color-success); }

.contact-info h2 { font-size: var(--text-lg); font-weight: 500; margin-top: var(--space-xl); }
.contact-info h2:first-child { margin-top: 0; }
.contact-info p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.contact-info .hours td { color: var(--color-ink-2); border-color: var(--color-rule-2); }
.contact-info .hours caption { color: var(--color-muted); }

.map-shell {
  margin-top: var(--space-2xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-paper-2);
  min-height: 20rem;
  display: grid; place-items: center;
  text-align: center;
  padding: var(--space-lg);
}
.map-shell iframe { width: 100%; height: 24rem; border: 0; display: block; }
.map-shell.has-map { padding: 0; }
.map-shell p { font-size: var(--text-sm); color: var(--color-muted); max-width: 34ch; }

@media (max-width: 56rem) { .contact-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } }

/* ---------- Página de texto legal ---------- */
.legal-body { max-width: 46rem; padding-bottom: var(--space-2xl); }
.legal-body h2 { font-size: var(--text-lg); margin-top: var(--space-xl); }
.legal-body p, .legal-body li { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-base); }
.legal-body ul { padding-left: 1.2rem; }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.muted { color: var(--color-muted); }
.mt-xl { margin-top: var(--space-xl); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  .reveal { animation: reveal 150ms linear forwards !important; }
  .hero h1 .line > span { animation: none !important; transform: none; }
  .mark svg path { animation: none !important; stroke-dashoffset: 0; }
  .marquee__track { animation: none !important; transform: none; }
  .tooth--float { animation: none !important; }
  .tooth--float .tooth__body,
  .tooth--float .tooth__shine { animation: none !important; stroke-dashoffset: 0; }
  .tooth--float .tooth__spark { animation: none !important; opacity: 1; transform: none; }
  .nav { animation: none !important; }
  .hero__figure img { animation: none !important; clip-path: none; transform: none; }
  .hero__figure::before { animation: none !important; }
  .hero__figure figcaption { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cta-sticky { transition: none; }
}
