/* Clínica Virtual Dent · v5 Inmersivo
   Manrope · tema claro, superficies planas · un acento: azul de marca */

:root {
  --bg: #FFFFFF;
  --surface: #F3F5F8;
  --surface-2: #E8EDF2;
  --line: #D9E0E7;
  --ink: #0E1319;
  --muted: #56606B;
  --accent: #1C75BC;
  --accent-ink: #155C94;
  --accent-soft: #E6F0F9;
  --error: #B42318;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pad: 48px;
  --z-content: 1;
  --z-media: 2;
  --z-overlay: 3;
  --z-menu: 40;
  --z-nav: 50;
  --z-grain: 60;
  --z-skip: 70;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure, h1, h2, h3, p { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, dd, li { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Grano sutil para romper la planitud */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: var(--z-skip);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 96px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.h2 {
  margin-top: 16px;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 680px;
}
.lead { margin-top: 24px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); max-width: 520px; }
.section-head { margin-bottom: 64px; }
.section-head--tight { margin-bottom: 40px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Botones y enlaces */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 500ms var(--ease), box-shadow 500ms var(--ease);
  box-shadow: 0 8px 24px rgba(28, 117, 188, 0.22);
}
.btn i { font-size: 1.25rem; }
.btn:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(28, 117, 188, 0.3); }
.btn:active { transform: scale(0.98); }
.btn--sm { font-size: 0.875rem; line-height: 1.25rem; box-shadow: none; }
.btn--sm i { font-size: 1rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  transition: color 300ms var(--ease), gap 500ms var(--ease);
}
.link:hover { color: var(--accent-ink); gap: 8px; }
.link:active { transform: translateY(1px); }

/* ---------- Navegación isla ---------- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  margin-top: 24px;
  margin-inline: auto;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(14, 19, 25, 0.08);
  box-shadow: 0 8px 32px rgba(28, 60, 90, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.burger:active { transform: scale(0.96); }
.burger span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 500ms var(--ease), top 500ms var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.menu ul { display: grid; gap: 16px; text-align: center; }
.menu li { opacity: 0; transform: translateY(48px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.menu a:not(.btn) { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.menu li:last-child { margin-top: 24px; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; }
.menu-open .menu li { opacity: 1; transform: none; }
.menu-open .menu li:nth-child(1) { transition-delay: 100ms; }
.menu-open .menu li:nth-child(2) { transition-delay: 150ms; }
.menu-open .menu li:nth-child(3) { transition-delay: 200ms; }
.menu-open .menu li:nth-child(4) { transition-delay: 250ms; }
.menu-open .menu li:nth-child(5) { transition-delay: 300ms; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; padding-top: 128px; }
.hero__copy {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 24px;
}
.hero__title {
  margin-top: 16px;
  max-width: 680px;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.045em;
  padding-bottom: 8px;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted);
}
.hero__actions { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.hero__proof { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted); }
.hero__proof i { color: var(--accent); font-size: 1.125rem; }

.hero__media { max-width: 1280px; margin: 48px auto 0; padding-inline: var(--pad); }
.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 1;
  background: var(--surface-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__shade { position: absolute; inset: 0; background: rgba(8, 18, 30, 0.28); opacity: 0; pointer-events: none; }
.hero__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
}
.hero__caption span { color: var(--ink); font-weight: 600; }
.hero__hint { display: none; }

/* Modo escena: la foto pasa de tarjeta a pantalla completa */
.hero-scrub .hero { height: 230vh; }
.hero-scrub .hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; padding-top: 0; }
.hero-scrub .hero__copy { padding-top: 128px; will-change: transform, opacity; }
.hero-scrub .hero__media { position: absolute; inset: 0; z-index: var(--z-media); margin: 0; padding: 0; max-width: none; pointer-events: none; }
.hero-scrub .hero__frame img { object-position: 68% 35%; }
.hero-scrub .hero__frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  transform-origin: 50% 50%;
  will-change: transform, clip-path;
  background: transparent;
}
.hero-scrub .hero__caption {
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  font-size: 1rem;
  line-height: 1.5rem;
  opacity: 0;
  white-space: nowrap;
}
.hero-scrub .hero__hint {
  position: absolute;
  z-index: var(--z-overlay);
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-scrub .hero__hint i { font-size: 1rem; animation: nudge 1800ms var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Entrada escalonada */
.motion .hero__in { animation: heroIn 1200ms var(--ease) both; }
.motion .hero__in[data-d="1"] { animation-delay: 120ms; }
.motion .hero__in[data-d="2"] { animation-delay: 240ms; }
.motion .hero__in[data-d="3"] { animation-delay: 360ms; }
.motion .hero__in[data-d="4"] { animation-delay: 520ms; animation-duration: 1600ms; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(48px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Logos ---------- */
.logos { padding-block: 64px; }
.logos__title { text-align: center; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted); margin-bottom: 24px; padding-inline: 24px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; gap: 16px; padding-right: 16px; }
.logos .marquee__group li {
  width: 200px;
  height: 96px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface);
}
.logos .marquee__group img { width: auto; max-width: 120px; max-height: 40px; object-fit: contain; }
.motion .is-looping .marquee__track { animation: marquee var(--dur, 40s) linear infinite; }
.motion .is-looping[data-dir="right"] .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .qrow:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee:not(.is-looping) .marquee__group { flex-wrap: wrap; justify-content: center; padding-inline: 24px; width: 100vw; }

/* ---------- Contadores ---------- */
.stats { background: var(--surface); padding-block: 96px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat__num {
  font-size: 6rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--accent); }
.stat__label { margin-top: 16px; font-size: 1rem; line-height: 1.5rem; color: var(--muted); font-weight: 500; max-width: 200px; }

/* ---------- Tagline ---------- */
.tagline { padding-top: 96px; }
.tagline__text {
  max-width: 680px;
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.tagline__text .w { color: rgba(14, 19, 25, 0.28); transition: color 700ms var(--ease); }
.tagline__text .w.on { color: var(--ink); }

/* ---------- Tratamientos ---------- */
.treat { position: relative; padding-block: 96px; }
.treat__stage { display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.treat__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.treat__lead { max-width: 360px; color: var(--muted); }
.treat__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.treat__viewport::-webkit-scrollbar { display: none; }
.treat__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: max(var(--pad), calc((100vw - 1280px) / 2 + var(--pad)));
}
.treat__track li { scroll-snap-align: center; }
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 340px;
  height: min(520px, 58vh);
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  isolation: isolate;
  transition: transform 700ms var(--ease);
}
.tcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 1200ms var(--ease);
}
.tcard:hover { transform: translateY(-8px); }
.tcard:hover img { transform: scale(1.06); }
.tcard:active { transform: scale(0.98); }
.tcard__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.tcard--photo .tcard__body {
  margin: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tcard--flat { background: var(--accent); color: #FFFFFF; }
.tcard--flat .tcard__body { height: 100%; }
.tcard__body > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.tcard--flat .tcard__body > i { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; width: 64px; height: 64px; font-size: 2.25rem; border-radius: 16px; margin-bottom: auto; }
.tcard__name { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.tcard--flat .tcard__name { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }
.tcard__text { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.tcard--flat .tcard__text { color: rgba(255, 255, 255, 0.84); font-size: 1rem; line-height: 1.5rem; }
.tcard__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); transition: gap 500ms var(--ease); }
.tcard--flat .tcard__go { color: #FFFFFF; }
.tcard:hover .tcard__go { gap: 8px; }
.treat__bar { height: 2px; }
.treat__bar::before { content: ""; display: block; height: 2px; background: var(--surface-2); border-radius: 2px; }
.treat__progress { display: block; height: 2px; margin-top: -2px; background: var(--accent); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(0); }
.treat:not(.is-pinned) .treat__bar { display: none; }

.is-pinned.treat { padding-block: 0; }
/* Stage is only as tall as its content, so the next section follows right after the pin ends */
.is-pinned .treat__stage { position: sticky; top: 0; overflow: hidden; justify-content: flex-start; padding-top: 112px; padding-bottom: 32px; gap: 32px; }
.is-pinned .tcard { height: min(520px, 50vh); min-height: 400px; }
.is-pinned .treat__viewport { overflow: visible; scroll-snap-type: none; }
.is-pinned .treat__track { will-change: transform; }
.is-pinned .treat__track li { will-change: transform, opacity; }

/* ---------- Antes y después ---------- */
.case__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.case__tip { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted); }
.case__tip i { font-size: 1.25rem; color: var(--accent); }
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 654 / 578;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-2);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #FFFFFF; pointer-events: none; }
.compare__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: var(--accent);
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(14, 40, 70, 0.25);
  transition: transform 500ms var(--ease);
}
.compare.is-dragging .compare__handle span { transform: scale(1.1); }
.compare:has(.compare__range:focus-visible) .compare__handle span { outline: 2px solid var(--accent); outline-offset: 2px; }
.compare__tag {
  position: absolute;
  top: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  pointer-events: none;
}
.compare__tag--a { left: 16px; }
.compare__tag--b { right: 16px; }
.compare__range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }

/* ---------- Cómo funciona ---------- */
.path { --p: 0; position: relative; }
.path__svg { position: absolute; top: 0; left: 0; width: 100%; height: 120px; overflow: visible; }
.path__base, .path__line { fill: none; stroke-width: 2; stroke-linecap: round; }
.path__base { stroke: var(--line); stroke-dasharray: 4 8; }
.path__line { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.path__rail { display: none; }
.path__steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pstep { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 28px; }
.pstep__dot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 1.5rem;
  transition: background-color 700ms var(--ease), border-color 700ms var(--ease), color 700ms var(--ease), transform 700ms var(--ease);
}
.pstep.is-lit .pstep__dot { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: scale(1.08); }
.pstep__n { margin-top: 24px; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.pstep h3 { margin-top: 8px; font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; }
.pstep p { margin-top: 8px; max-width: 320px; color: var(--muted); }

/* ---------- Testimonios ---------- */
.reviews { overflow: hidden; }
.qrow { overflow: hidden; }
.qrow + .qrow { margin-top: 24px; }
.qrow .marquee__group { gap: 24px; padding-right: 24px; align-items: flex-start; }
.quote {
  flex: none;
  width: 420px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background-color 500ms var(--ease), transform 700ms var(--ease);
}
.quote:hover { background: var(--accent-soft); transform: translateY(-4px); }
.quote p { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.quote__who { display: inline-flex; align-items: center; gap: 12px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.quote__ini { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; line-height: 1rem; }
.qrow:not(.is-looping) { overflow-x: auto; scrollbar-width: none; }
.qrow:not(.is-looping) .marquee__group { padding-inline: var(--pad); }

/* ---------- Sedes ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 9999px; background: var(--muted); }
.status.is-open { background: var(--accent-soft); color: var(--accent-ink); }
.status.is-open .status__dot { background: var(--accent); }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); animation: ping 2000ms var(--ease) infinite; }
@keyframes ping { 80%, 100% { transform: scale(3); opacity: 0; } }

.motion [data-mask] { clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1400ms var(--ease); }
.motion [data-mask] img { transform: scale(1.2); transition: transform 1800ms var(--ease); }
.motion [data-mask][data-delay="1"], .motion [data-mask][data-delay="1"] img { transition-delay: 150ms; }
.motion [data-mask][data-delay="2"], .motion [data-mask][data-delay="2"] img { transition-delay: 300ms; }
.motion [data-mask].in { clip-path: inset(0 0 0 0 round 24px); }
.motion [data-mask].in img { transform: none; }

.sedes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sede__map { width: 100%; height: 280px; margin-bottom: 12px; overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.sede__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.sede--hours { grid-column: span 2; }
.sede--hours .hours { grid-template-columns: repeat(4, 1fr); }
.sede { padding: 32px; border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sede h3 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.sede__addr, .sede__tel { display: flex; gap: 8px; color: var(--muted); }
.sede__addr i, .sede__tel i { flex: none; margin-top: 4px; color: var(--accent); }
.sede__tel a { transition: color 300ms var(--ease); }
.sede__tel a:hover { color: var(--accent); }
.sede .link { margin-top: auto; padding-top: 12px; }
.hours { width: 100%; display: grid; gap: 8px; }
.hours div { display: grid; gap: 2px; padding: 8px 12px; border-radius: 8px; transition: background-color 500ms var(--ease); }
.hours dt { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.hours dd { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.hours .is-today { background: var(--bg); }
.hours .is-today dt { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq__head { position: sticky; top: 128px; display: flex; flex-direction: column; align-items: flex-start; }
.faq__head .link { margin-top: 32px; }
.faq__list { display: grid; gap: 8px; }
.faq__item { padding: 24px; border-radius: 16px; background: var(--surface); }
.faq__item dt { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.faq__item dd { margin-top: 8px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta__title { margin-top: 16px; font-size: 3.75rem; line-height: 1; letter-spacing: -0.04em; max-width: 680px; }
.composer { padding: 32px; border-radius: 24px; background: var(--surface); display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.5rem;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C4CF; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28, 117, 188, 0.16); }
.field.is-invalid input { border-color: var(--error); }
.field__error { font-size: 0.875rem; line-height: 1.25rem; color: var(--error); font-weight: 500; }
.field__error:empty { display: none; }
.preview { padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.preview__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--muted); }
.preview__bubble { margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 0.875rem; line-height: 1.25rem; white-space: pre-line; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); padding-block: 64px 48px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 48px; }
.footer__brand img { height: 48px; width: auto; }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 320px; }
.footer__col { display: grid; gap: 8px; align-content: start; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.footer__col a { transition: color 300ms var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__h { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.social { display: flex; gap: 8px; margin-bottom: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 1.25rem; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease); }
.social a:hover { background: var(--accent); color: #FFFFFF; transform: translateY(-2px); }
.social a:active { transform: scale(0.96); }
.footer__note { margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.75rem; line-height: 1rem; color: var(--muted); }

/* ---------- Reveals ---------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease), filter 1000ms var(--ease);
}
.motion [data-reveal][data-delay="1"] { transition-delay: 100ms; }
.motion [data-reveal][data-delay="2"] { transition-delay: 200ms; }
.motion [data-reveal][data-delay="3"] { transition-delay: 300ms; }
.motion [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__title { font-size: 3.75rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .sede--hours .hours { grid-template-columns: 1fr 1fr; }
  .tagline__text { font-size: 3rem; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .section { padding-block: 80px; }
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .burger { display: block; }
  .h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .case__grid, .faq__grid, .cta__grid { grid-template-columns: 1fr; gap: 48px; }
  .faq__head { position: static; }
  .cta__title { font-size: 3rem; }
  .path__svg { display: none; }
  .path__rail { display: block; position: absolute; left: 31px; top: 32px; bottom: 64px; width: 2px; background: var(--line); border-radius: 2px; }
  .path__rail span { display: block; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p)); border-radius: 2px; }
  .path__steps { grid-template-columns: 1fr; gap: 48px; }
  .pstep { display: grid; grid-template-columns: 64px 1fr; column-gap: 24px; align-items: start; text-align: left; padding-top: 0; }
  .pstep__dot { grid-row: span 3; }
  .pstep__n { margin-top: 4px; }
        .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .hero__stage { padding-top: 112px; }
  .hero__title { font-size: 3rem; letter-spacing: -0.04em; }
  .hero__sub { font-size: 1rem; line-height: 1.5rem; }
  .hero__actions { flex-direction: column; gap: 16px; }
  .hero__media { margin-top: 40px; }
  .hero__frame { aspect-ratio: 4 / 3; }
  .hero__frame img { object-position: 22% 30%; }
  .hero__caption { left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px; font-size: 0.75rem; line-height: 1rem; }
  .logos .marquee__group li { width: 152px; height: 80px; }
  .logos .marquee__group img { max-width: 96px; max-height: 32px; }
  .stats { padding-block: 64px; }
  .stat__num { font-size: 3.75rem; }
  .stat__label { font-size: 0.875rem; line-height: 1.25rem; margin-top: 8px; }
  .tagline { padding-top: 64px; }
  .tagline__text { font-size: 2.25rem; line-height: 2.5rem; }
  .tcard { width: 280px; height: 420px; min-height: 0; }
  .quote { width: 300px; padding: 24px; }
  .quote p { font-size: 1rem; line-height: 1.5rem; }
  .sedes__grid { grid-template-columns: 1fr; }
  .sede--hours { grid-column: auto; }
  .sede--hours .hours { grid-template-columns: 1fr; }
  .sede__map { height: 220px; }
  .sede { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .composer { padding: 24px; }
  .cta__title { font-size: 2.25rem; line-height: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .tagline__text .w { color: var(--ink); }
}
