/* GELOM Dental — sitio público */
:root {
  --navy: #133f8a;
  --navy-900: #0b2556;
  --navy-950: #071a3d;
  --cyan: #0097cb;
  --cyan-300: #6fcdee;
  --gray: #9c9d9f;
  --ink: #14213d;
  --ink-2: #4a5670;
  --line: #e3e8f0;
  --paper: #ffffff;
  --mist: #f3f7fb;
  --grad: linear-gradient(135deg, #0097cb 0%, #133f8a 100%);
  --grad-soft: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(19, 63, 138, .28);
  --shadow-sm: 0 6px 20px -10px rgba(19, 63, 138, .25);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Urbanist", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --gutter: clamp(18px, 4vw, 48px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 700; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--ink-2); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.center { text-align: center; }
.center .eyebrow::before { display: none; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .98rem/1 var(--font); text-decoration: none; white-space: nowrap;
  background: var(--bg); color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 24px -12px rgba(19, 63, 138, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(19, 63, 138, .7); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-grad { background: var(--grad); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-wa { background: #1faa59; box-shadow: 0 10px 24px -12px rgba(31, 170, 89, .8); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barra de progreso de scroll ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s, backdrop-filter .4s;
  padding-block: 20px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; position: relative; width: clamp(118px, 12vw, 150px); aspect-ratio: 1419 / 435; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.brand .on-light { opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .75em 1.25em; font-size: .9rem; }
.site-header.solid, .site-header.always-solid {
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); padding-block: 12px;
}
.site-header.solid .nav a:not(.btn), .site-header.always-solid .nav a:not(.btn) { color: var(--ink); }
.site-header.solid .brand .on-dark, .site-header.always-solid .brand .on-dark { opacity: 0; }
.site-header.solid .brand .on-light, .site-header.always-solid .brand .on-light { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: #fff; }
.site-header.solid .menu-btn, .site-header.always-solid .menu-btn { color: var(--ink); }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 6px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 900px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--navy-950); padding: 40px var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { color: #fff !important; font-size: 1.5rem; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .menu-btn { color: #fff !important; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff;
  overflow: hidden; isolation: isolate; padding-block: 130px 90px;
}
.hero { background: var(--navy-950); }
.hero-bg { position: absolute; inset: -10% 0 -10% 36%; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 90% 0%, rgba(0, 151, 203, .35), transparent 60%),
    linear-gradient(90deg, #071a3d 0%, #071a3d 36%, rgba(7, 26, 61, .75) 50%, rgba(11, 37, 86, .15) 75%, rgba(11, 37, 86, .05) 100%),
    linear-gradient(0deg, rgba(7, 26, 61, .7) 0%, transparent 35%);
}
@media (max-width: 900px) {
  .hero-bg { inset: -10% 0; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 26, 61, .55) 0%, rgba(7, 26, 61, .88) 55%, #071a3d 100%); }
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 660px); gap: 44px; }
.hero h1 { margin-bottom: .35em; text-wrap: balance; }
.hero h1 .serif { color: var(--cyan-300); font-size: 1.08em; }
.hero .lead { color: rgba(255, 255, 255, .84); max-width: 36em; margin-bottom: 2em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.glass {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; min-width: 250px;
}
.glass { text-decoration: none; color: #fff; }
.glass strong { display: block; font-size: 1.5rem; line-height: 1; }
.glass small { color: rgba(255, 255, 255, .78); font-size: .85rem; }
.glass .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.glass .ico svg { width: 22px; height: 22px; }
.stars { color: #ffc94d; letter-spacing: 2px; font-size: .95rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-line { overflow: hidden; display: block; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-line > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero-line:nth-child(2) > span { animation-delay: .12s; }
.hero-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.fade-up-load { opacity: 0; transform: translateY(24px); animation: fadeUp 1s .45s var(--ease) forwards; }
.fade-up-load.d2 { animation-delay: .6s; }
.fade-up-load.d3 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .glass { min-width: 0; flex: 1 1 220px; }
}

@media (max-height: 820px) and (min-width: 901px) {
  .hero { padding-block: 110px 70px; }
  .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
  .hero .lead { margin-bottom: 1.4em; }
  .glass { padding: 12px 16px; min-width: 0; }
  .glass strong { font-size: 1.25rem; }
  .scroll-cue { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-950); color: #fff; overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; opacity: .92; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Revelado al hacer scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }
.clip-reveal { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.clip-reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- Historia ---------- */
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.story h2 .serif { color: var(--cyan); }
.big-number { display: flex; align-items: flex-end; gap: 16px; margin: 30px 0 10px; }
.big-number b { font-size: clamp(4.5rem, 10vw, 8rem); line-height: .8; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; }
.big-number > span { font-weight: 700; color: var(--ink-2); line-height: 1.2; padding-bottom: 6px; }
.photo-stack { position: relative; aspect-ratio: 4 / 4.4; }
.photo-stack figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-stack figure img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.photo-stack .p1 { inset: 0 18% 22% 0; }
.photo-stack .p2 { inset: 48% 0 0 34%; border: 8px solid #fff; }
.photo-stack .tag {
  position: absolute; left: -10px; bottom: 12%; z-index: 3; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: .95rem; max-width: 250px; line-height: 1.3;
}
.photo-stack .tag img { width: 40px; height: 40px; }
@media (max-width: 900px) {
  .story .wrap { grid-template-columns: 1fr; }
  .photo-stack { max-width: 520px; width: 100%; margin-inline: auto; }
  .photo-stack .tag { left: 0; }
}

/* ---------- Pilares (tarjetas apiladas con sticky) ---------- */
.pillars { background: var(--mist); }
.pillars .head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); }
.pillar-stack { display: grid; gap: 28px; }
.pillar {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px;
  background: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow);
}
.pillar .txt { padding: clamp(28px, 4.5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.pillar .num { font-weight: 800; font-size: .85rem; color: var(--cyan); letter-spacing: .2em; margin-bottom: 18px; }
.pillar h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; }
.pillar .media { position: relative; overflow: hidden; }
.pillar .media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.pillar ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.pillar li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.pillar li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--grad) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); }
.pillar li::before { background: radial-gradient(circle, #fff 0 3px, transparent 3.5px), var(--grad); }
@media (max-width: 800px) {
  .pillar { grid-template-columns: 1fr; min-height: 0; }
  .pillar .media { aspect-ratio: 16 / 10; order: -1; }
}

/* ---------- Servicios ---------- */
.services .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.services .head > div { max-width: 640px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card .img { aspect-ratio: 16 / 10.5; overflow: hidden; position: relative; }
.svc-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .img img { transform: scale(1.08); }
.svc-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 26, 61, .55)); }
.svc-card .price { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 700; color: var(--navy); }
.svc-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-card .clin { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 18px; }
.svc-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.svc-card .more i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); transition: background .3s, color .3s, transform .4s var(--ease); font-style: normal; }
.svc-card:hover .more i { background: var(--navy); color: #fff; transform: translateX(4px); }
.other-svcs { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid var(--line); transition: background .3s, color .3s; }
a.chip:hover { background: var(--navy); color: #fff; }

/* ---------- Experiencia (fondo parallax oscuro) ---------- */
.experience { color: #fff; overflow: hidden; isolation: isolate; }
.experience .bg { position: absolute; inset: -20% 0; z-index: -2; }
.experience .bg img { width: 100%; height: 100%; object-fit: cover; }
.experience::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 61, .93), rgba(11, 37, 86, .88)); }
.experience h2 { color: #fff; }
.experience .lead { color: rgba(255, 255, 255, .78); }
.experience blockquote { margin: 0 auto clamp(50px, 7vw, 90px); max-width: 980px; text-align: center; font-size: clamp(1.7rem, 3.8vw, 3.2rem); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
.experience blockquote .serif { color: var(--cyan-300); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exp-item { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .4s, transform .5s var(--ease); }
.exp-item:hover { background: rgba(255, 255, 255, .11); transform: translateY(-4px); }
.exp-item .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.exp-item .ico svg { width: 26px; height: 26px; color: #fff; }
.exp-item h3 { font-size: 1.2rem; }
.exp-item p { color: rgba(255, 255, 255, .75); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .exp-grid { grid-template-columns: 1fr; } }

/* ---------- Tecnología (galería horizontal con scroll) ---------- */
.tech .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.tech-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tech-media figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); }
.tech-media figure:nth-child(2) { margin-top: 60px; }
.tech-media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.check-list li b { display: block; }
.check-list li span { color: var(--ink-2); font-size: .97rem; }
.check-list .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.check-list .ico svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .tech .wrap { grid-template-columns: 1fr; } }

/* ---------- Doctor ---------- */
.doctor { background: var(--grad-soft); }
.doctor-card { display: grid; grid-template-columns: 380px 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.doctor-photo { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--grad); box-shadow: var(--shadow); display: grid; place-items: center; }
.doctor-photo img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doctor-photo .mono { width: 46%; opacity: .95; }
.doctor-photo .ced { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; background: rgba(7, 26, 61, .55); backdrop-filter: blur(10px); border-radius: 14px; padding: 12px 16px; font-size: .88rem; }
.doctor-photo .ced b { display: block; font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.fact b { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.fact > span { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 380px; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Equipo ---------- */
.team { background: var(--grad-soft); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member .avatar { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2.4rem; box-shadow: 0 12px 30px -14px rgba(19, 63, 138, .6); }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: 4px; font-size: 1.2rem; }
.member .role { color: var(--cyan); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.member p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.lead-member { border-color: transparent; box-shadow: var(--shadow-sm); position: relative; }
.lead-member::before { content: "Fundador"; position: absolute; top: 16px; right: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 10px; border-radius: 999px; }
.team .facts { max-width: 760px; margin: 34px auto 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- Opiniones ---------- */
.reviews { overflow: hidden; }
.reviews .head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.score { display: flex; align-items: center; gap: 14px; }
.score b { font-size: 3rem; line-height: 1; font-weight: 800; color: var(--navy); }
.scores { display: flex; gap: 22px; flex-wrap: wrap; }
.score { text-decoration: none; color: inherit; }
.score small { display: block; color: var(--ink-2); font-size: .85rem; }
.carousel { position: relative; }
.review-rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 6px 18px; margin: -6px -6px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.review-rail::-webkit-scrollbar { display: none; }
.review-rail:focus-visible { box-shadow: 0 0 0 3px rgba(0, 151, 203, .3); border-radius: var(--radius); }
.review { width: min(360px, 82vw); flex: none; scroll-snap-align: start; background: var(--mist); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review p { margin: 0; font-size: 1.02rem; }
.review p::before { content: "“"; font-family: var(--serif); font-size: 3rem; line-height: 0; vertical-align: -.45em; color: var(--cyan); margin-right: 4px; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.review footer i { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; display: grid; place-items: center; }
.review footer small { display: block; font-weight: 500; color: var(--ink-2); }
.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.cbtn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.cbtn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.cbtn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Visítanos ---------- */
.visit { background: var(--mist); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
.visit-info { background: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row b { display: block; margin-bottom: 2px; }
.info-row span, .info-row a { color: var(--ink-2); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; color: var(--ink-2); }
.hours td { padding: 2px 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-sm); background: #dfe7f1; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta { padding-block: clamp(60px, 9vw, 110px); }
.cta-box { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) + 10px); background: var(--grad); color: #fff; padding: clamp(40px, 7vw, 90px); text-align: center; }
.cta-box h2 { max-width: 16em; margin-inline: auto; }
.cta-box p { color: rgba(255, 255, 255, .85); max-width: 34em; margin: 0 auto 30px; }
.cta-box .signature { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff; margin: -.4em auto 1em; }
.cta-box .btn-row { justify-content: center; }
.cta-box .deco { position: absolute; z-index: -1; opacity: .12; width: 460px; right: -120px; bottom: -160px; }
.cta-box .deco.l { left: -140px; top: -170px; right: auto; bottom: auto; width: 380px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding-block: 70px 30px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-f { width: 150px; margin-bottom: 18px; }
.site-footer .bottom small { display: block; opacity: .7; font-size: .78rem; margin-top: 4px; }
.site-footer .bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Botones flotantes ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #1faa59; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31, 170, 89, .8); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .fab-wa { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px -12px rgba(19, 63, 138, .3); transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { padding: .85em 1em; font-size: .92rem; }
  body { padding-bottom: 76px; }
}

/* ============ Landing de servicio ============ */
.svc-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding-block: clamp(140px, 18vw, 210px) clamp(70px, 9vw, 110px); }
.svc-hero { background: var(--navy-950); }
.svc-hero .bg { position: absolute; inset: -15% 0 -15% 40%; z-index: -2; }
.svc-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071a3d 0%, #071a3d 40%, rgba(7, 26, 61, .7) 55%, rgba(7, 26, 61, .1) 85%), linear-gradient(0deg, rgba(7, 26, 61, .6), transparent 40%); }
@media (max-width: 900px) {
  .svc-hero .bg { inset: -15% 0; }
  .svc-hero::before { background: linear-gradient(180deg, rgba(7, 26, 61, .6), rgba(7, 26, 61, .92) 60%); }
}
.crumbs { font-size: .88rem; color: rgba(255, 255, 255, .7); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #fff; text-decoration: none; }
.svc-hero h1 { max-width: 15em; font-size: clamp(2.2rem, 5vw, 4.2rem); text-wrap: balance; }
.svc-hero .clinical { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-size: .85rem; font-weight: 600; }
.svc-hero .lead { color: rgba(255, 255, 255, .85); max-width: 38em; margin-bottom: 32px; }
.svc-hero .price-pill { display: inline-flex; flex-direction: column; margin-left: 6px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .3); line-height: 1.2; }
.svc-hero .price-pill small { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.svc-hero .price-pill b { font-size: 1.5rem; }
.svc-hero .btn-row { align-items: center; }

.svc-intro .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.svc-intro .content p { font-size: 1.08rem; color: var(--ink-2); }
.svc-intro .content p:first-child { font-size: clamp(1.2rem, 1.7vw, 1.45rem); color: var(--ink); font-weight: 600; line-height: 1.45; }
.aside-card { position: sticky; top: 100px; background: var(--mist); border-radius: var(--radius); padding: 30px; }
.aside-card h3 { font-size: 1.1rem; }
.signs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.signs li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .97rem; }
.signs li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 151, 203, .18); }
@media (max-width: 900px) { .svc-intro .wrap { grid-template-columns: 1fr; } .aside-card { position: static; } }

.process { background: var(--navy-950); color: #fff; overflow: hidden; }
.process .head { max-width: 700px; margin-bottom: 50px; }
.process .lead { color: rgba(255, 255, 255, .75); }
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, .12); }
.steps .fill { position: absolute; left: 27px; top: 10px; width: 2px; height: 0; background: var(--grad); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-block: 22px; }
.step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); border: 2px solid rgba(255, 255, 255, .18); display: grid; place-items: center; font-weight: 800; position: relative; z-index: 1; transition: background .5s, border-color .5s; }
.step.in .dot { background: var(--grad); border-color: transparent; }
.step h3 { margin: 12px 0 6px; }
.step p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 42em; }

.includes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-top: 40px; }
.inc { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; transition: box-shadow .4s, transform .4s var(--ease); }
.inc:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.inc .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.inc .ico svg { width: 22px; height: 22px; }
.inc h3 { font-size: 1.1rem; margin-bottom: 6px; }
.inc p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.faq { background: var(--mist); }
.faq .wrap { max-width: 880px; }
.faq details { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; color: var(--navy); transition: transform .3s, background .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--navy); color: #fff; }
.faq .ans { padding: 0 26px 22px; color: var(--ink-2); }

.related .svc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.note { font-size: .85rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .clip-reveal { opacity: 1; transform: none; clip-path: none; }
  .hero-line > span, .fade-up-load { transform: none; opacity: 1; }
}
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ?flat=1: captura completa sin animaciones (revisión interna) */
.flat .hero { min-height: 0; }
.flat [data-reveal], .flat .clip-reveal, .flat .hero-line > span, .flat .fade-up-load { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
