/* ==========================================================================
   Linda Kelly Rojas Odontología — sistema de diseño
   Paleta: crema cálido · negro carbón · dorado suave
   ========================================================================== */

/* Fuentes alojadas en el propio sitio (subconjunto latino: incluye tildes y ñ) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 500; font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f1ede6;
  --paper-2: #e9e3d9;
  --surface: #faf8f4;
  --ink: #161513;
  --ink-2: #47433c;
  --muted: #6b645a;
  --gold: #b39a6b;
  --gold-soft: #d8c8a4;
  --gold-ink: #6f5c2f;
  --night: #171614;
  --night-2: #221f1c;
  --line: rgba(22, 21, 19, 0.12);
  --line-night: rgba(241, 237, 230, 0.14);

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth; /* alternativa si Lenis no carga */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0313rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 350;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
em { font-style: italic; font-weight: 300; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-s); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.h-xl { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h-md { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15; }
.lead { font-size: 1.1rem; max-width: 52ch; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px;
  border: 1px solid transparent; border-radius: var(--r-s);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--gold { background: var(--gold-soft); color: var(--ink); }
.btn--gold:hover { background: #e6d9ba; }
.btn--line { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 16px; font-size: 0.84rem; }

.link-play {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.link-play__dot {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}
.link-play__dot .icon { width: 13px; height: 13px; }
.link-play:hover .link-play__dot { border-color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 0.78rem; color: var(--ink-2);
}
.pill__tag {
  padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(241, 237, 230, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 100%;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }

.nav__list { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__link {
  position: relative; padding: 6px 0;
  font-size: 0.86rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }

/* Hamburguesa minimalista: dos líneas finas, sin caja ni fondo */
.nav-toggle {
  position: relative; z-index: 3; display: none; place-items: center;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bars { position: relative; display: block; width: 26px; height: 10px; }
.nav-toggle__bars i {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease), width 0.3s var(--ease);
}
.nav-toggle__bars i:first-child { top: 0; }
.nav-toggle__bars i:last-child { top: 8.5px; width: 62%; margin-left: auto; }
.nav-toggle:hover .nav-toggle__bars i:last-child { width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i { top: 4.25px; width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: rotate(-45deg); }
.header__cta { flex: none; }

@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  .brand { position: relative; z-index: 3; }
  .site-header.nav-is-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    padding: calc(var(--header-h) + 28px) var(--gut) max(32px, env(safe-area-inset-bottom));
    background: rgba(241, 237, 230, 0.97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__link {
    display: block; padding: 8px 0;
    font-family: var(--serif); font-weight: 350; font-size: clamp(2.1rem, 10vw, 2.9rem);
    line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.2s;
  }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(1) .nav__link { transition-delay: 0.08s; }
  .nav.is-open li:nth-child(2) .nav__link { transition-delay: 0.14s; }
  .nav.is-open li:nth-child(3) .nav__link { transition-delay: 0.2s; }
  .nav.is-open li:nth-child(4) .nav__link { transition-delay: 0.26s; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { font-style: italic; color: var(--gold-ink); }
  .nav__cta { display: inline-flex; align-self: flex-start; margin-top: auto; opacity: 0; transition: opacity 0.6s var(--ease) 0.32s; }
  .nav.is-open .nav__cta { opacity: 1; }
  .nav__meta { margin: 20px 0 0; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
}
@media (min-width: 900px) { .nav__meta { display: none; } }
@media (min-width: 900px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header__cta { justify-self: end; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero__grid {
  display: grid; align-items: center; gap: clamp(32px, 5vw, 64px);
}
.hero__title { margin: 24px 0 24px; }
.hero__lead { max-width: 44ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__media {
  position: relative; margin: 0;
  border-radius: clamp(110px, 18vw, 200px) var(--r-l) var(--r-l) var(--r-l);
  overflow: hidden; background: var(--paper-2);
  aspect-ratio: 4 / 4.7;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero__badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-m);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem; line-height: 1.4; color: var(--ink);
}
.hero__badge .icon { color: var(--gold-ink); width: 22px; height: 22px; }
.hero__badge strong { display: block; font-weight: 500; }
.hero__badge span { color: var(--muted); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; }
}

/* Entrada del hero: solo transform, para no retrasar el LCP */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }

/* ---------- Banda de cifras ---------- */
.stats {
  display: grid; gap: 28px 0;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: var(--r-l); background: var(--night); color: var(--paper);
}
.stats__item { padding-inline: 4px; }
.stats__num {
  display: block; font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem); line-height: 1.05; font-weight: 350; color: var(--paper);
}
.stats__label { display: block; margin: 14px 0 4px; font-size: 0.86rem; font-weight: 500; color: var(--paper); }
.stats__desc { font-size: 0.78rem; line-height: 1.5; color: rgba(241, 237, 230, 0.62); max-width: 24ch; }
.stats__cta {
  display: none; place-items: center; width: 62px; height: 62px; align-self: center; justify-self: end;
  border: 1px solid var(--line-night); border-radius: 50%; color: var(--gold-soft);
  transition: background 0.25s, color 0.25s;
}
.stats__cta:hover { background: var(--gold-soft); color: var(--night); }
.stats__cta .icon { width: 22px; height: 22px; }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(4, 1fr) 64px; gap: 0; }
  .stats__item { padding-inline: 28px; border-left: 1px solid var(--line-night); }
  .stats__item:first-child { padding-left: 4px; border-left: 0; }
  .stats__cta { display: grid; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--night { background: var(--night); color: rgba(241, 237, 230, 0.78); }
.section--night h2, .section--night h3 { color: var(--paper); }
.section--night .eyebrow { color: var(--gold); }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__title { margin-bottom: 18px; }

/* ---------- Beneficios + panel ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 0.82fr 1.18fr; } }
.features { margin-top: 36px; }
.feature {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--paper-2); color: var(--ink);
}
.feature h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.panel {
  display: grid; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(22, 21, 19, 0.3);
}
.panel__side { display: none; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(233, 227, 217, 0.4); }
.panel__brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 20px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.panel__brand img { height: 26px; width: auto; }
.panel__nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 2px;
  border-radius: 10px; font-size: 0.8rem; text-decoration: none; color: var(--ink-2);
  transition: background 0.2s;
}
.panel__nav a:hover, .panel__nav a:first-child { background: var(--paper-2); color: var(--ink); }
.panel__nav .icon { width: 16px; height: 16px; }
.panel__main { padding: clamp(20px, 3vw, 32px); }
.panel__title { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; }
.panel__hello { font-family: var(--serif); font-weight: 350; font-size: 1.5rem; margin-bottom: 4px; }
.panel__sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.panel__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.panel__card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.panel__card small { display: block; font-size: 0.7rem; color: var(--muted); }
.panel__card b { display: block; margin: 4px 0 2px; font-family: var(--serif); font-size: 1.45rem; font-weight: 350; color: var(--ink); line-height: 1.1; }
.panel__card span { font-size: 0.68rem; color: var(--gold-ink); }
.panel__list { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 6px 16px; }
.panel__list-head { display: flex; justify-content: space-between; padding: 12px 0 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.panel__row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line);
  text-decoration: none; transition: opacity 0.2s;
}
.panel__row:hover { opacity: 0.75; }
.panel__thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.panel__row strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.panel__row small { font-size: 0.72rem; color: var(--muted); }
.panel__row .icon { width: 16px; height: 16px; color: var(--muted); }
@media (min-width: 760px) {
  .panel { grid-template-columns: 200px 1fr; }
  .panel__side { display: block; }
}
@media (max-width: 480px) { .panel__cards { grid-template-columns: 1fr; } }

.promise {
  margin: 28px 0 0; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(250, 248, 244, 0.6);
}
.promise q { display: block; quotes: none; font-family: var(--serif); font-weight: 350; font-size: 1.2rem; line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
.promise q::before { content: "“"; color: var(--gold-ink); }
.promise q::after { content: "”"; color: var(--gold-ink); }
.promise cite { font-style: normal; font-size: 0.8rem; color: var(--muted); }

/* ---------- Sobre la doctora (home) ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 0.9fr 1.1fr; } }
.about__media { margin: 0; border-radius: var(--r-l) var(--r-l) var(--r-l) clamp(100px, 16vw, 180px); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3.7; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.about p { max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.tag { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--ink); background: var(--surface); }

/* ---------- Clínica ---------- */
.clinic { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .clinic { grid-template-columns: 1.1fr 0.9fr; } }
.clinic p { max-width: 56ch; }
.info-list { margin: 28px 0 32px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.93rem; color: rgba(241, 237, 230, 0.86); }
.info-list .icon { margin-top: 2px; color: var(--gold); }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.video {
  position: relative; margin: 0 auto; width: min(100%, 380px);
  aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 190px 190px var(--r-l) var(--r-l); background: var(--night-2);
}
.video--wide { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__btn {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 0; background: linear-gradient(180deg, rgba(23, 22, 20, 0) 45%, rgba(23, 22, 20, 0.6));
  transition: opacity 0.3s;
}
.video__btn span {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 55%;
  padding: 10px 20px 10px 10px; border-radius: 999px;
  background: rgba(250, 248, 244, 0.92); color: var(--ink); font-size: 0.85rem; font-weight: 500;
}
.video--wide .video__btn span { margin-top: 0; }
.video__btn i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.video__btn i .icon { width: 14px; height: 14px; }
.video.is-playing .video__btn { opacity: 0; pointer-events: none; }

/* ---------- Servicios (tarjetas home) ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; overflow: hidden; padding: 22px;
  border-radius: var(--r-l); background: var(--night); color: var(--paper);
  text-decoration: none; isolation: isolate;
}
.card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 22, 20, 0) 35%, rgba(23, 22, 20, 0.88)); }
.card:hover img { transform: scale(1.05); }
.card__kicker { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.card h3 { color: var(--paper); font-size: 1.55rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.86rem; color: rgba(241, 237, 230, 0.78); max-width: 36ch; }
.card__go {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(250, 248, 244, 0.9); color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.card:hover .card__go { transform: rotate(45deg); }
.card__go .icon { width: 16px; height: 16px; }

/* ---------- Galería de casos ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gallery-nav { display: flex; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink);
  transition: background 0.25s, color 0.25s;
}
.round-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn .icon { width: 18px; height: 18px; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut); overscroll-behavior-x: contain;
  padding: 4px var(--gut) 8px; margin-inline: calc(var(--gut) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.case { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; margin: 0; }
.case img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); background: var(--paper-2); }
.case figcaption { padding: 12px 2px 0; font-size: 0.82rem; color: var(--muted); }
.case figcaption b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.note { margin-top: 24px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Equipo ---------- */
.team { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .team { grid-template-columns: 1.05fr 0.95fr; } }
.team__media { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 2; }
.team__media img { width: 100%; height: 100%; object-fit: cover; }
.checks { margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 0.95rem; }
.checks .icon { margin-top: 3px; width: 1.05em; height: 1.05em; color: var(--gold-ink); }
.section--night .checks li { color: rgba(241, 237, 230, 0.9); }
.section--night .checks .icon { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-family: var(--serif); font-weight: 350; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--gold-ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__body { padding: 0 0 24px; max-width: 64ch; color: var(--ink-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Banda CTA ---------- */
.cta {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(36px, 6vw, 72px); border-radius: var(--r-l);
  background: var(--night); color: rgba(241, 237, 230, 0.78);
}
.cta h2 { color: var(--paper); }
.cta h2 em { color: var(--gold-soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr 1fr; } .cta__actions { justify-content: flex-end; } }

/* ---------- Páginas interiores ---------- */
.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 56px); }
.page-hero__inner { max-width: 860px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 28px; font-size: 0.78rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.82rem; color: var(--ink); text-decoration: none; transition: background 0.2s, color 0.2s; }
.chip:hover { background: var(--ink); color: var(--paper); }

.svc { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc:nth-of-type(even) .svc__media { order: 2; }
}
.svc__media { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--paper-2); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__num { font-family: var(--serif); font-size: 1rem; color: var(--gold-ink); margin-bottom: 14px; }
.svc h2 { margin-bottom: 18px; }
.svc p { max-width: 56ch; }
.svc .checks { margin: 20px 0 28px; }

.cred-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cred-grid { grid-template-columns: repeat(3, 1fr); } }
.cred { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.cred .feature__icon { margin-bottom: 18px; }
.cred h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; margin-bottom: 8px; }
.cred p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.profile { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .profile { grid-template-columns: 1.05fr 0.95fr; } }
.profile__media { margin: 0; border-radius: clamp(110px, 18vw, 200px) var(--r-l) var(--r-l) var(--r-l); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 4.9; }
.profile__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.profile p { max-width: 58ch; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); transition: background 0.25s, color 0.25s; }
.social a:hover { background: var(--ink); color: var(--paper); }
.social--night a { border-color: var(--line-night); color: var(--paper); background: transparent; }
.social--night a:hover { background: var(--gold-soft); color: var(--night); }

.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; } }
.info-cards { display: grid; gap: 12px; align-content: start; }
.info-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.info-card h2 { font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--ink); font-size: 0.98rem; }
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.map { min-height: 420px; overflow: hidden; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .h-xl { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--night); color: rgba(241, 237, 230, 0.7); font-size: 0.9rem; }
.site-footer__grid { display: grid; gap: 40px; padding: clamp(48px, 7vw, 88px) 0 40px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer img.logo { height: 54px; width: auto; margin-bottom: 20px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid var(--line-night); font-size: 0.78rem; color: rgba(241, 237, 230, 0.66); }
.site-footer__bottom a { text-decoration: underline; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--night); color: var(--gold-soft);
  border: 1px solid var(--line-night);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--gold-soft); color: var(--night); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .video__btn { display: none; }
  body { background: #fff; }
}

/* Lenis (scroll suave con inercia) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped, html.nav-locked { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
