/* ==========================================================
   Dentissimo — brand tokens
   ========================================================== */
:root {
  --navy: #1E2053;
  --navy-deep: #15163D;
  --navy-ink: #0F1030;
  --aqua: #6DCDDD;
  --aqua-dark: #3FAFC2;
  --aqua-tint: #EAF7FA;
  --white: #FFFFFF;
  --text: #2B2D55;
  --muted: #6B6E8F;
  --line: rgba(255, 255, 255, 0.12);

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --header-h: 84px;
  --shadow: 0 20px 50px -20px rgba(15, 16, 48, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(900px, 100% - 48px); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Placeholder content — dotted underline so it's easy to spot what to replace */

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--aqua); color: var(--navy-ink); }
.btn-accent:hover { background: #8ad9e6; box-shadow: 0 10px 30px -10px rgba(109, 205, 221, .7); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--aqua-tint); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-ink); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ==========================================================
   Header + menu
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, height .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(21, 22, 61, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 70px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 38px; width: auto; }
.brand-word { height: 24px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; }
.header-phone svg { width: 16px; height: 16px; fill: var(--aqua); }

.menu-toggle {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--navy-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.menu-open .site-menu { opacity: 1; visibility: visible; }
.site-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.site-menu li a {
  display: block; padding: 8px 0;
  font-size: clamp(28px, 5vw, 44px); font-weight: 300; color: var(--white); text-decoration: none;
  transition: color .2s;
}
.site-menu li a:hover { color: var(--aqua); }
.menu-open { overflow: hidden; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 600px at 85% 30%, rgba(109, 205, 221, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-ink) 100%);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 100px;
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; right: -120px; top: 50%; translate: 0 calc(-50% + var(--py, 0px));
  background: radial-gradient(circle, rgba(109, 205, 221, 0.22), transparent 65%);
  filter: blur(20px);
  animation: pulse 8s ease-in-out infinite;
}
.hero-mark {
  position: absolute; right: 6%; top: 50%; translate: 0 calc(-50% + var(--py, 0px));
  width: min(36vw, 520px); opacity: .95;
  animation: float 9s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 2; }
.hero-inner > * { max-width: 60%; }
.hero-kicker { font-size: clamp(22px, 2.6vw, 32px); font-weight: 300; margin: 0 0 4px; color: rgba(255, 255, 255, .85); }
.hero-title { font-size: clamp(60px, 9vw, 140px); font-weight: 700; letter-spacing: -0.03em; line-height: .95; }
.hero-sub { font-size: clamp(18px, 2vw, 24px); font-weight: 500; max-width: 560px; margin: 22px 0 36px; color: rgba(255, 255, 255, .9); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-buttons.center { justify-content: center; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0; z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--aqua); border-radius: 2px; animation: scroll 2s infinite;
}

@keyframes float { 0%, 100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }
@keyframes pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================
   Sections + titles
   ========================================================== */
.section { padding: 110px 0; }
.section-tight { padding-top: 20px; }
.section-dark { background: var(--navy-deep); color: rgba(255, 255, 255, .85); }
.section-light { background: var(--aqua-tint); }
.section-white { background: var(--white); }

.title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; font-size: clamp(32px, 4vw, 50px); color: var(--white); }
.title strong { font-weight: 700; }
.title span { font-weight: 300; }
.title.center { align-items: center; text-align: center; }
.dark-text { color: var(--navy); }

.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head.split .title { margin-bottom: 0; }
.section-head .muted { margin: 10px 0 0; }

.lead { font-size: 19px; margin-bottom: 28px; }
.feature-text a { color: var(--aqua); text-decoration: none; }

/* ==========================================================
   Photo placeholders (swap for real photos later)
   ========================================================== */
.photo-ph {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(109, 205, 221, .18), transparent 55%),
    linear-gradient(160deg, #262961, var(--navy-ink));
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, .55);
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.photo-ph img { width: 30%; max-width: 120px; opacity: .35; }
.photo-ph.portrait { aspect-ratio: 4 / 5; }
.photo-ph.wide { aspect-ratio: 21 / 9; }
.photo-ph.wide img { width: 12%; }

/* ==========================================================
   Sliders
   ========================================================== */
.slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; }
.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: var(--white);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.slider-btn:hover { background: var(--aqua); border-color: var(--aqua); color: var(--navy-ink); }
.slider-btn.dark { border-color: rgba(30, 32, 83, .25); color: var(--navy); }

/* Doctors */
.doctor-card h3 { margin-top: 18px; font-size: 20px; font-weight: 600; color: var(--white); }
.doctor-card p { margin: 4px 0 0; color: var(--aqua); font-size: 15px; }

/* ==========================================================
   Why — checklist
   ========================================================== */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative; padding: 18px 22px 18px 62px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 6px 20px -12px rgba(30, 32, 83, .3);
  font-weight: 500; color: var(--navy);
}
.checklist li::before {
  content: ""; position: absolute; left: 20px; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2053' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ==========================================================
   Feature (lead doctor)
   ========================================================== */
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: center; }
.feature-photo { aspect-ratio: 4 / 5; }

/* ==========================================================
   Reviews
   ========================================================== */
.reviews { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; margin-top: 50px; }
.reviews-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.reviews-summary strong { color: var(--navy); font-size: 20px; }
.reviews-summary .muted { font-size: 14px; }
.reviews-logo { width: 64px; margin-bottom: 6px; }
.stars { color: #F5B400; letter-spacing: 3px; font-size: 18px; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--aqua-tint); border-radius: var(--radius); padding: 24px; min-height: 190px; display: flex; flex-direction: column; }
.review-card p { flex: 1; margin: 12px 0; color: var(--text); }
.review-name { font-weight: 600; color: var(--navy); }

/* ==========================================================
   Consultation card
   ========================================================== */
.cta-card {
  max-width: 980px; margin-inline: auto; text-align: center;
  background: var(--white); border-radius: 24px; padding: 64px clamp(24px, 6vw, 80px);
  box-shadow: var(--shadow);
}
.cta-card p { font-size: 18px; margin-bottom: 32px; }

/* ==========================================================
   Services
   ========================================================== */
.service-card {
  position: relative; overflow: hidden;
  min-height: 400px; padding: 32px; border-radius: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(circle at 80% 10%, rgba(109, 205, 221, .3), transparent 50%),
    linear-gradient(170deg, var(--navy), var(--navy-ink));
  color: rgba(255, 255, 255, .85);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  position: absolute; top: 32px; left: 32px; width: 64px; height: 64px;
  fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 { font-size: 30px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.service-card p { margin: 0; font-size: 15px; }

/* ==========================================================
   Office
   ========================================================== */
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { flex: none; width: 24px; height: 24px; fill: var(--aqua); margin-top: 2px; }
.map-ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px dashed rgba(109, 205, 221, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px), var(--navy);
  color: rgba(255, 255, 255, .55); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.map-ph img { width: 70px; opacity: .35; }

/* ==========================================================
   Final CTA
   ========================================================== */
.final-cta {
  position: relative; overflow: hidden; padding: 130px 0;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(109, 205, 221, .25), transparent 70%),
    linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: rgba(255, 255, 255, .85);
}
.final-mark { position: absolute; width: 520px; left: 50%; top: 50%; translate: -50% calc(-50% + var(--py, 0px)); opacity: .05; }
.final-cta .container { position: relative; max-width: 760px; }
.final-tag { font-size: 22px; font-weight: 700; color: var(--white); margin: 8px 0 32px; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .7); padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 150px; }
.site-footer h4 { color: var(--white); font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--aqua); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(109, 205, 221, .12);
  display: grid; place-items: center; transition: background .2s;
}
.socials a:hover { background: var(--aqua); }
.socials svg { width: 18px; height: 18px; fill: var(--aqua); }
.socials a:hover svg { fill: var(--navy-ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 24px; font-size: 14px; }

/* ==========================================================
   Scroll reveal
   ========================================================== */
/* Reveal uses opacity/translate (not transform) so card hover effects keep working */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .slider { grid-auto-columns: calc((100% - 24px) / 2); }
  .feature, .office { grid-template-columns: 1fr; gap: 40px; }
  .feature-photo { max-width: 460px; }
  .reviews { grid-template-columns: 1fr; }
  .reviews-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-mark { opacity: .14; right: -12%; width: 80vw; }
  .hero-inner > * { max-width: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .container, .container.narrow { width: calc(100% - 32px); }
  .header-phone, .header-cta { display: none; }
  .brand-mark { height: 32px; }
  .brand-word { height: 20px; }
  .section { padding: 80px 0; }
  .slider { grid-auto-columns: 82%; gap: 16px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .slider-nav { display: none; }
  .photo-ph.wide { aspect-ratio: 4 / 3; }
  .photo-ph.wide img { width: 22%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 340px; }
}

/* ==========================================================
   Language toggle, map, rating, floating WhatsApp
   ========================================================== */
.lang-toggle {
  display: flex; padding: 3px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25);
  font: 600 13px var(--font); letter-spacing: .04em;
}
.lang-toggle span { padding: 6px 11px; border-radius: 999px; color: rgba(255, 255, 255, .7); transition: background .2s, color .2s; }
.lang-toggle[data-current="es"] [data-lang="es"],
.lang-toggle[data-current="en"] [data-lang="en"] { background: var(--white); color: var(--navy); }

.office-info .btn { margin-top: 34px; }
.info-list a { color: var(--aqua); text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--navy); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.rating { display: flex; align-items: center; gap: 8px; }
.rating-num { font-size: 26px; font-weight: 700; color: var(--navy); }
.reviews-summary .btn { margin-top: 10px; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

@media (max-width: 720px) {
  .lang-toggle span { padding: 5px 9px; }
  .header-actions { gap: 10px; }
}

/* ==========================================================
   Dentissimo Kids
   ========================================================== */
.kids { position: relative; overflow: hidden; background: #FFFDF7; }
.kids-inner { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: 70px; align-items: center; }
.kids-logo { width: min(340px, 80%); margin-bottom: 34px; }
.kids-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kids-list li {
  padding: 12px 16px 12px 40px; position: relative; border-radius: 12px; background: var(--white);
  box-shadow: 0 6px 18px -12px rgba(30, 32, 83, .35); font-weight: 600; color: var(--navy); font-size: 15px;
}
.kids-list li::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 12px; height: 12px; border-radius: 50%; }
.kids-list li:nth-child(1)::before { background: #2DA94F; }
.kids-list li:nth-child(2)::before { background: #F5A623; }
.kids-list li:nth-child(3)::before { background: #4F7DF3; }
.kids-list li:nth-child(4)::before { background: #EE3B3B; }
.kids-photo { aspect-ratio: 1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
.kids-dot { position: absolute; border-radius: 50%; opacity: .14; animation: float 10s ease-in-out infinite; }
.kids-dot.d1 { width: 160px; height: 160px; background: #2DA94F; top: -40px; left: -40px; }
.kids-dot.d2 { width: 90px; height: 90px; background: #F5A623; top: 18%; right: 46%; animation-delay: -3s; }
.kids-dot.d3 { width: 220px; height: 220px; background: #4F7DF3; bottom: -80px; right: -60px; animation-delay: -6s; }
.kids-dot.d4 { width: 60px; height: 60px; background: #EE3B3B; bottom: 12%; left: 44%; animation-delay: -2s; }
.card-link { margin-top: 16px; color: var(--aqua); font-weight: 600; font-size: 15px; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .kids-inner { grid-template-columns: 1fr; gap: 50px; }
  .kids-photo { max-width: 420px; }
}
@media (max-width: 520px) { .kids-list { grid-template-columns: 1fr; } }

/* ==========================================================
   Credentials
   ========================================================== */
.creds { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.creds li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.creds svg, .badge svg { flex: none; width: 16px; height: 16px; fill: var(--aqua); margin-top: 1px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(109, 205, 221, .1); border: 1px solid rgba(109, 205, 221, .3); font-size: 14px; color: var(--white);
}

/* ==========================================================
   Before & after
   ========================================================== */
.ba-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px 0 36px; }
.ba-tab {
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(30, 32, 83, .18); background: var(--white); color: var(--navy);
  font: 600 15px var(--font); transition: background .2s, color .2s, border-color .2s;
}
.ba-tab:hover { border-color: var(--aqua); }
.ba-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ba-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-panel[hidden] { display: none; }
.ba-card { margin: 0; }
.ba-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.ba-card figcaption strong { color: var(--navy); font-size: 16px; }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; box-shadow: 0 12px 30px -18px rgba(15, 16, 48, .5); }
.ba-img {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ba-img img { width: 52px; opacity: .45; }
.ba-before { background: linear-gradient(160deg, #8C8FA6, #5D6079); color: rgba(255, 255, 255, .85); }
.ba-after { background: linear-gradient(160deg, var(--aqua), var(--aqua-dark)); color: var(--navy-ink); clip-path: inset(0 0 0 var(--pos)); }
.ba-after img { filter: brightness(0) invert(.1); opacity: .35; }
.ba-before span, .ba-after span { position: absolute; top: 14px; padding: 5px 10px; border-radius: 6px; background: rgba(15, 16, 48, .35); color: var(--white); font-size: 11px; }
.ba-before span { left: 14px; }
.ba-after span { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle::after { outline: 3px solid var(--aqua); }
.ba-note { text-align: center; font-size: 13px; color: var(--muted); margin: 36px 0 0; }

/* ==========================================================
   Technology
   ========================================================== */
.tech-sub { max-width: 640px; margin-bottom: 44px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card {
  padding: 30px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s;
}
.tech-card:hover { background: rgba(109, 205, 221, .08); border-color: rgba(109, 205, 221, .4); transform: translateY(-4px); }
.tech-icon { width: 44px; height: 44px; fill: none; stroke: var(--aqua); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.tech-card h3 { color: var(--white); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tech-card p { margin: 0; font-size: 15px; }

/* ==========================================================
   Payment
   ========================================================== */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.pay-card { background: var(--white); border-radius: 18px; padding: 30px 26px; box-shadow: 0 10px 30px -20px rgba(30, 32, 83, .4); }
.pay-card h3 { color: var(--navy); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.pay-card p, .pay-card li { font-size: 15px; }
.pay-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pay-card li::marker { color: var(--aqua-dark); }
.pay-icon { width: 40px; height: 40px; fill: none; stroke: var(--aqua-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.pay-card.featured { background: var(--navy); color: rgba(255, 255, 255, .85); }
.pay-card.featured h3 { color: var(--white); }
.pay-card.featured .pay-icon { stroke: var(--aqua); }
.pay-big { font-size: 34px !important; font-weight: 800; color: var(--aqua); margin: 0 0 6px; letter-spacing: .02em; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq-item { border-radius: var(--radius); background: var(--aqua-tint); transition: background .2s; }
.faq-item[open] { background: var(--white); box-shadow: 0 10px 30px -18px rgba(30, 32, 83, .45); outline: 1px solid rgba(30, 32, 83, .08); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-weight: 600; font-size: 17px; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-size: 20px; font-weight: 400; transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--aqua); color: var(--navy-ink); }
.faq-item p { padding: 0 24px 22px; margin: 0; }
.faq-more { margin-top: 32px; }
.faq-more a { color: var(--aqua-dark); font-weight: 700; text-decoration: none; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 1000px) {
  .ba-panel { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .pay-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ba-panel, .tech-grid, .pay-grid { grid-template-columns: 1fr; }
  .ba-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .ba-tab { flex: none; }
}

/* ==========================================================
   Privacy notice page
   ========================================================== */
html[lang="es"] [data-lang-block="en"],
html[lang="en"] [data-lang-block="es"] { display: none; }
.legal { background: var(--white); padding: calc(var(--header-h) + 70px) 0 100px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.legal h2 { font-size: 21px; color: var(--navy); font-weight: 700; margin: 42px 0 14px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin: 0 0 1em; }
.legal li::marker { color: var(--aqua-dark); }
.legal-kicker { color: var(--aqua-dark) !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.legal-date { color: var(--muted) !important; font-size: 15px; }
.legal-callout { background: var(--aqua-tint); border-left: 4px solid var(--aqua); padding: 14px 18px; border-radius: 8px; font-size: 15px; }
.legal-footer { padding: 30px 0; }
.legal-footer .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }

/* Real before & after photos */
.ba-real .ba-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: none; }
.ba-real .ba-img span { z-index: 1; }
.ba-real .ba-before, .ba-real .ba-after { background: #fff; }
.ba-panel { align-items: start; }
@media (max-width: 720px) {
  .ba-tall { max-width: 340px; margin-inline: auto; }
  .ba-card:has(.ba-tall) figcaption { max-width: 340px; margin-inline: auto; }
}
.menu-socials { display: flex; gap: 22px; }
.menu-socials a { color: var(--aqua); text-decoration: none; font-weight: 600; }
.menu-socials a:hover { text-decoration: underline; }
.site-menu { justify-content: safe center; overflow-y: auto; padding: calc(var(--header-h) + 20px) 16px 40px; gap: 28px; }
.site-menu li a { font-size: clamp(24px, 4.2vw, 40px); padding: 5px 0; }

/* ==========================================================
   Phone polish
   ========================================================== */
@media (max-width: 720px) {
  /* Comfortable tap targets */
  .lang-toggle span { padding: 9px 12px; }
  .menu-toggle { width: 46px; height: 46px; }
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: inline-block; padding: 9px 0; }
  .site-footer p a, .footer-legal a { display: inline-block; padding: 8px 0; }
  .socials a { width: 46px; height: 46px; }
  .card-link { padding: 10px 0; }
  .info-list a { display: inline-block; padding: 6px 0; }

  /* Shorter footer: link lists side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-logo { width: 120px; }
  .footer-bottom { flex-direction: column; }

  /* Keep the floating WhatsApp button from covering content */
  .site-footer { padding-bottom: 100px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }

  /* Slightly less tall placeholders on phones */
  .photo-ph.portrait, .feature-photo { aspect-ratio: 1 / 1; }
  .service-card { min-height: 300px; }
  .cta-card { padding: 44px 22px; }
  .title { font-size: clamp(30px, 8.4vw, 40px); }
  .hero { padding-bottom: 90px; }
}

/* ==========================================================
   SEO build: H1, language links, dental tourism
   ========================================================== */
.hero-h1 { margin: 0; }
.hero-title { display: block; }
.hero-h1-sub { display: block; margin-top: 16px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: 0; line-height: 1.25; color: var(--aqua); }
.hero-sub { margin-top: 14px; }

a.lang-toggle, .lang-toggle a { text-decoration: none; }
.lang-toggle a { padding: 6px 11px; border-radius: 999px; color: rgba(255, 255, 255, .7); transition: background .2s, color .2s; }
.lang-toggle a:hover { color: var(--white); }
.lang-toggle a.on { background: var(--white); color: var(--navy); }
@media (max-width: 720px) { .lang-toggle a { padding: 9px 12px; } }

.tourism { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.tour-lead { max-width: 820px; font-size: 18px; margin-bottom: 46px; }
.tour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tour-card { padding: 28px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tour-card h3 { color: var(--white); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.tour-card p { margin: 0; font-size: 15px; }
.tour-icon { width: 40px; height: 40px; fill: none; stroke: var(--aqua); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.tour-sub { color: var(--white); font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.tour-steps-wrap { margin-top: 70px; }
.tour-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.tour-steps li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 16px; background: rgba(109, 205, 221, .07); border: 1px solid rgba(109, 205, 221, .22); }
.tour-steps strong { color: var(--white); display: block; margin-bottom: 4px; }
.tour-steps p { margin: 0; font-size: 14px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--aqua); color: var(--navy-ink); display: grid; place-items: center; font-weight: 800; }
.tour-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 70px; }
.tour-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.tour-tips li::marker { color: var(--aqua); }
.city-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.city-chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--white); font-size: 14px; font-weight: 500; }
.tour-cta { margin-top: 56px; text-align: center; }
@media (max-width: 1000px) {
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-steps { grid-template-columns: 1fr; }
  .tour-steps li { flex-direction: row; align-items: flex-start; }
  .step-n { flex: none; }
  .tour-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-cta .btn { width: 100%; justify-content: center; }
}

/* ==========================================================
   Social media — "Conócenos en redes sociales"
   ========================================================== */
.social {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(109, 205, 221, .18), transparent 65%),
    radial-gradient(640px 420px at 92% 85%, rgba(109, 205, 221, .14), transparent 65%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: rgba(255, 255, 255, .85);
}
.social-mark { position: absolute; width: 560px; left: -140px; top: 40px; opacity: .05; pointer-events: none; }
.social-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(109, 205, 221, .25); pointer-events: none; }
.social-ring.r1 { width: 380px; height: 380px; right: -120px; top: -110px; }
.social-ring.r2 { width: 220px; height: 220px; right: 60px; top: 30px; border-style: dashed; border-color: rgba(109, 205, 221, .18); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.social .container { position: relative; }

.social-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.social-handle {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 16px 7px 7px; border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--white); font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s;
}
.social-handle:hover { background: rgba(109, 205, 221, .14); border-color: rgba(109, 205, 221, .45); }
.ig-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--aqua), var(--aqua-dark)); }
.ig-dot svg { width: 16px; height: 16px; fill: var(--navy-ink); }
.social-sub { max-width: 600px; font-size: 18px; margin: -6px 0 0; }

.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; align-items: start; }
.reel-card:nth-child(2) { margin-top: -28px; }
.reel-frame {
  position: relative; padding: 14px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transition: transform .35s ease, border-color .35s ease;
}
.reel-frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: 28px; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, var(--aqua), transparent 40%, transparent 65%, rgba(109, 205, 221, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.reel-card:hover .reel-frame { transform: translateY(-6px); }
.reel-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; }
.reel-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--white); }
.reel-tag svg { width: 22px; height: 22px; fill: none; stroke: var(--aqua); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reel-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--aqua); color: var(--navy-ink); font-size: 12px; font-weight: 700; }
.reel-badge svg { width: 12px; height: 12px; fill: currentColor; }
.reel-embed { position: relative; border-radius: 18px; overflow: hidden; background: var(--white); height: 640px; }
.reel-embed::after { /* soft placeholder while the embed loads */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../assets/logo-mark-navy.png") center 45% / 64px no-repeat, linear-gradient(160deg, #F3FAFC, #E3F4F8);
  opacity: .9;
}
.reel-embed iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.reel-body { padding: 18px 6px 6px; }
.reel-body h3 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.reel-body p { font-size: 15px; margin: 0 0 12px; }
.reel-link { color: var(--aqua); font-weight: 600; text-decoration: none; font-size: 15px; }
.reel-link:hover { text-decoration: underline; }
.social-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; }

@media (max-width: 1000px) {
  .reel-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 2px 20px; margin-top: 44px;
  }
  .reel-grid::-webkit-scrollbar { display: none; }
  .reel-card { scroll-snap-align: start; }
  .reel-card:nth-child(2) { margin-top: 0; }
}
@media (max-width: 720px) {
  .reel-grid { grid-auto-columns: 86%; gap: 16px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .reel-embed { height: 545px; }
  .social-mark { width: 360px; left: -120px; }
  .social-ring.r1 { width: 240px; height: 240px; }
  .social-ring.r2 { display: none; }
  .social-cta .btn { width: 100%; justify-content: center; }
}

/* COFEPRIS advertising permit in the footer */
.footer-cofepris { width: 100%; order: -1; font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }

/* Orthodontics: 4 cases — wide photos stacked on the left, tall ones side by side */
@media (min-width: 1001px) {
  #panel-ortho {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "c1 c2 c3" "c4 c2 c3";
    align-items: start;
  }
  #panel-ortho > :nth-child(1) { grid-area: c1; }
  #panel-ortho > :nth-child(2) { grid-area: c2; }
  #panel-ortho > :nth-child(3) { grid-area: c3; }
  #panel-ortho > :nth-child(4) { grid-area: c4; }
}

/* A tab with a single case: show it large and centered */
.ba-panel.ba-single { grid-template-columns: minmax(0, 760px); justify-content: center; }

/* Lead doctor */
.feature-kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(109, 205, 221, .12); border: 1px solid rgba(109, 205, 221, .35); color: var(--aqua); font-weight: 700; font-size: 14px; letter-spacing: .03em; }
.feature-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 24px; }
.feature-stats div { padding: 16px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: center; }
.feature-stats strong { display: block; font-size: 34px; line-height: 1; font-weight: 800; color: var(--aqua); margin-bottom: 6px; }
.feature-stats span { font-size: 13px; line-height: 1.3; display: block; }
@media (max-width: 420px) { .feature-stats strong { font-size: 28px; } .feature-stats span { font-size: 12px; } }
.doctor-card .doctor-founder { color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }

/* ==========================================================
   Motion — subtle, premium scroll animations (js/motion.js)
   ========================================================== */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Content reveal: rise + un-blur, staggered with --d */
.motion .reveal {
  opacity: 0; translate: 0 30px; filter: blur(4px);
  transition: opacity .9s var(--ease-out) var(--d, 0ms), translate 1s var(--ease-out) var(--d, 0ms), filter .9s ease var(--d, 0ms);
}
.motion .reveal.in { opacity: 1; translate: 0 0; filter: none; }

/* Photos, placeholders and the map: soft wipe-up with a slight zoom-out */
.motion .reveal[data-reveal="img"] {
  translate: 0 0; filter: none; scale: 1.05;
  clip-path: inset(18% 0 0 0 round var(--radius));
  transition: opacity .8s ease var(--d, 0ms), clip-path 1.2s var(--ease-out) var(--d, 0ms), scale 1.6s var(--ease-out) var(--d, 0ms);
}
.motion .reveal[data-reveal="img"].in { scale: 1; clip-path: inset(0 0 0 0 round var(--radius)); }

/* Section titles: each line rises out of a mask */
.motion .title-anim > * {
  opacity: 0; translate: 0 .6em; clip-path: inset(0 0 100% 0);
  transition: opacity .8s ease, translate 1s var(--ease-out), clip-path 1s var(--ease-out);
}
.motion .title-anim > :nth-child(2) { transition-delay: .12s; }
.motion .title-anim.in > * { opacity: 1; translate: 0 0; clip-path: inset(-25% -5% -30% -5%); }

/* Hero entrance on page load */
.motion .hero-kicker, .motion .hero-title, .motion .hero-h1-sub, .motion .hero-sub, .motion .hero-buttons > * {
  opacity: 0; translate: 0 26px; transition: opacity 1s ease, translate 1.1s var(--ease-out);
}
.motion .hero-mark { scale: .9; filter: opacity(0) blur(10px); transition: filter 1.6s ease .2s, scale 2s var(--ease-out) .2s; }
.motion .scroll-cue { opacity: 0; transition: opacity 1s ease 1.4s; }
.hero-ready .hero-kicker, .hero-ready .hero-title, .hero-ready .hero-h1-sub, .hero-ready .hero-sub, .hero-ready .hero-buttons > * { opacity: 1; translate: 0 0; }
.hero-ready .hero-kicker { transition-delay: .1s; }
.hero-ready .hero-title { transition-delay: .22s; }
.hero-ready .hero-h1-sub { transition-delay: .4s; }
.hero-ready .hero-sub { transition-delay: .55s; }
.hero-ready .hero-buttons > :nth-child(1) { transition-delay: .7s; }
.hero-ready .hero-buttons > :nth-child(2) { transition-delay: .8s; }
.hero-ready .hero-mark { scale: 1; filter: opacity(1) blur(0); }
.hero-ready .scroll-cue { opacity: 1; }

/* Parallax offsets for decorative shapes (set by motion.js) */
.social-mark, .social-ring, .kids-dot { translate: 0 var(--py, 0px); }

/* Thin scroll progress line under the header */
.scroll-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--aqua-dark), var(--aqua), #A9E8F2);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* Buttons: a soft light sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  translate: -120% 0; transition: translate .8s var(--ease-out);
}
.btn:hover::after { translate: 120% 0; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal, .motion .reveal[data-reveal="img"], .motion .title-anim > *,
  .motion .hero-kicker, .motion .hero-title, .motion .hero-h1-sub, .motion .hero-sub, .motion .hero-buttons > *,
  .motion .hero-mark, .motion .scroll-cue {
    opacity: 1 !important; translate: none !important; filter: none !important; clip-path: none !important; scale: none !important;
  }
}

/* Service card with a photo (e.g. Dental Implants) */
.service-card.has-photo { background: var(--navy-ink); isolation: isolate; }
.service-photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 28% center;
  transition: scale 1.2s var(--ease-out, ease);
}
.service-card.has-photo::before { /* navy veil so the text stays readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 16, 48, .15) 0%, rgba(15, 16, 48, .35) 35%, rgba(21, 22, 61, .92) 68%, var(--navy-ink) 100%),
    radial-gradient(circle at 80% 10%, rgba(109, 205, 221, .25), transparent 50%);
}
.service-card.has-photo:hover .service-photo { scale: 1.06; }
.service-card.has-photo .service-icon {
  width: 52px; height: 52px; padding: 10px; border-radius: 16px;
  background: rgba(15, 16, 48, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
}

/* ==========================================================
   Final CTA + appointment form
   ========================================================== */
.final-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; text-align: left; }
.final-cta .final-grid { max-width: 1200px; }
.final-copy .final-tag { margin: 8px 0 26px; }
.final-or { font-size: 15px; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.appt-card {
  position: relative; padding: 34px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.appt-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 26px; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, var(--aqua), transparent 45%, transparent 70%, rgba(109, 205, 221, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.appt-form h3, .appt-success h3 { color: var(--white); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.appt-sub { font-size: 15px; margin-bottom: 22px; color: rgba(255, 255, 255, .75); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--white); }
.field label em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, .55); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font: 500 16px var(--font); color: var(--white);
  background: rgba(15, 16, 48, .45); border: 1.5px solid rgba(255, 255, 255, .16);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236DCDDD' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { color: var(--navy); }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); background: rgba(15, 16, 48, .65); box-shadow: 0 0 0 4px rgba(109, 205, 221, .18); }
.field-error { display: none; font-size: 13px; color: #FFB4B4; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FF8A8A; }
.field.invalid .field-error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 4px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--aqua); flex: none; }
.check a { color: var(--aqua); }
.check-error { margin-bottom: 4px; }
.consent-invalid .check-error { display: block; }
.appt-submit { width: 100%; justify-content: center; margin-top: 16px; }
.appt-submit svg { width: 18px; height: 18px; fill: none; transition: translate .3s; }
.appt-submit:hover svg { translate: 4px 0; }
.appt-submit:disabled { opacity: .7; cursor: wait; }
.appt-status { margin: 12px 0 0; font-size: 14px; text-align: center; min-height: 1em; }
.appt-status.error { color: #FFB4B4; }
.appt-success { text-align: center; padding: 30px 6px; }
.appt-success p { margin-bottom: 22px; }
.appt-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--aqua); color: var(--navy-ink); animation: pop .6s var(--ease-out, ease) both; }
.appt-check svg { width: 32px; height: 32px; }
@keyframes pop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (max-width: 1000px) {
  .final-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  .appt-card { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================
   Cookie consent (js/consent.js)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--aqua); cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.legal .link-btn { color: var(--aqua-dark); font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.legal-footer a { color: var(--aqua); text-decoration: none; }

.cookie-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 60; width: min(560px, calc(100% - 44px));
  display: grid; gap: 16px; padding: 22px 22px 20px; border-radius: 20px;
  background: rgba(21, 22, 61, .96); color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(109, 205, 221, .3); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; translate: 0 24px; transition: opacity .45s ease, translate .5s var(--ease-out, ease);
}
.cookie-banner.show { opacity: 1; translate: 0 0; }
.cookie-banner strong { color: var(--white); font-size: 17px; display: block; margin-bottom: 4px; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.55; }
.cookie-banner a, .cookie-modal a { color: var(--aqua); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }
.cookie-ghost:hover { border-color: var(--aqua); color: var(--aqua); }

.cookie-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(10, 11, 32, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cookie-modal[hidden] { display: none; }
.cookie-modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 22px; background: var(--navy-deep); color: rgba(255, 255, 255, .8); border: 1px solid rgba(109, 205, 221, .3); }
.cookie-modal-card h3 { color: var(--white); font-size: 22px; margin-bottom: 16px; }
.cookie-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--white); font-size: 22px; cursor: pointer; }
.cookie-row { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-row strong { color: var(--white); }
.cookie-row p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.cookie-always { flex: none; font-size: 12px; font-weight: 700; color: var(--aqua); text-transform: uppercase; letter-spacing: .05em; }
.cookie-modal-link { font-size: 14px; margin: 10px 0 18px; }
.switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background .2s; }
.switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: translate .25s var(--ease-out, ease); }
.switch input:checked + span { background: var(--aqua); }
.switch input:checked + span::after { translate: 20px 0; }
.switch input:focus-visible + span { outline: 3px solid rgba(109, 205, 221, .5); outline-offset: 2px; }

/* Placeholder shown instead of Instagram / Google Maps until consent */
.embed-gate {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 12px; padding: 22px; text-align: center;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 16, 48, .85));
}
.embed-gate p { margin: 0; font-size: 13px; color: var(--white); }
.map { position: relative; }
.map .embed-gate { background: url("../assets/logo-mark-white.png") center 38% / 70px no-repeat, linear-gradient(160deg, var(--navy), var(--navy-ink)); justify-content: center; padding-top: 110px; }

/* Cookie policy table */
.cookie-table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: 14px; border: 1px solid rgba(30, 32, 83, .12); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.cookie-table th, .cookie-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(30, 32, 83, .1); }
.cookie-table th { background: var(--aqua-tint); color: var(--navy); font-weight: 700; }
.cookie-table small { color: var(--muted); }
.cookie-table code { font-size: 13px; background: var(--aqua-tint); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 720px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; }
  .cookie-banner-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- iPhone polish ---- */
.wa-float { transition: transform .2s ease, opacity .3s ease, translate .3s ease; }
.wa-float.wa-hide { opacity: 0; translate: 0 20px; pointer-events: none; }
@media (max-width: 720px) {
  .cookie-banner { padding: 14px 14px 12px; gap: 10px; border-radius: 16px; }
  .cookie-banner strong { font-size: 15px; margin-bottom: 2px; }
  .cookie-banner p { font-size: 12.5px; line-height: 1.45; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .cookie-banner-actions .btn { padding: 9px 6px; font-size: 12.5px; }
  .feature-kicker { border-radius: 14px; line-height: 1.4; }
}
.photo-ph span { text-align: center; padding: 0 20px; line-height: 1.5; }

/* ==========================================================
   Hero with team photo + "Conoce nuestras clínicas"
   ========================================================== */
.hero-team {
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(109, 205, 221, .16), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-ink) 100%);
}
.hero-media {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(62%, 1150px);
  display: flex; align-items: center; pointer-events: none;
}
.hero-media picture { width: 100%; }
.hero-media img {
  width: 100%; height: auto; display: block;
  /* soft fade on every edge so the photo melts into the navy background */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
          mask-composite: intersect;
}
.hero-team .hero-inner > * { max-width: min(520px, 38vw); }
.hero-team .hero-title { font-size: clamp(56px, 7vw, 112px); }
.hero-team .hero-sub { font-size: clamp(16px, 1.4vw, 19px); margin: 16px 0 26px; }
.hero-team .scroll-cue { display: none; }

.clinics-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }
.clinic-list { display: grid; gap: 12px; }
.clinic-card {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(15, 16, 48, .55); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.clinic-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.clinic-pin { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(109, 205, 221, .15); }
.clinic-pin svg { width: 18px; height: 18px; fill: var(--aqua); }
.clinic-name { font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.25; }
.clinic-addr { display: inline-block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .78); text-decoration: none; line-height: 1.4; }
.clinic-addr:hover { color: var(--aqua); text-decoration: underline; }
.clinic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.clinic-actions .btn { padding: 10px 16px; font-size: 14px; }

/* entrance animation */
.motion .clinics { opacity: 0; translate: 0 26px; transition: opacity 1s ease, translate 1.1s var(--ease-out); }
.hero-ready .clinics { opacity: 1; translate: 0 0; transition-delay: .7s; }
.motion .hero-media { opacity: 0; scale: 1.04; transition: opacity 1.6s ease .15s, scale 2s var(--ease-out) .15s; }
.hero-ready .hero-media { opacity: 1; scale: 1; }

@media (max-width: 900px) {
  .hero-team { display: block; min-height: 0; padding: var(--header-h) 0 64px; }
  .hero-media { position: relative; width: 100%; display: block; }
  .hero-media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  }
  .hero-team .hero-inner { margin-top: -28px; }
  .hero-team .hero-inner > * { max-width: none; }
}
@media (max-width: 720px) {
  .clinic-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .motion .clinics, .motion .hero-media { opacity: 1 !important; translate: none !important; scale: none !important; }
}

/* ---- Hero: full-bleed team photo (desktop), reference: apaaesthetic.com ---- */
@media (min-width: 901px) {
  .hero-team {
    display: flex; align-items: flex-end;
    min-height: max(100svh, 780px);
    padding: calc(var(--header-h) + 40px) 0 52px;
  }
  .hero-team .hero-media { inset: 0; width: 100%; display: block; }
  .hero-team .hero-media picture, .hero-team .hero-media img { width: 100%; height: 100%; }
  .hero-team .hero-media img {
    object-fit: cover; object-position: center 28%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-team .hero-media::after { /* gradient so the text reads while the team stays visible */
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(15, 16, 48, .55) 0%, rgba(15, 16, 48, 0) 20%, rgba(15, 16, 48, 0) 40%, rgba(21, 22, 61, .72) 64%, rgba(21, 22, 61, .96) 86%, var(--navy-deep) 100%),
      linear-gradient(90deg, rgba(21, 22, 61, .7) 0%, rgba(21, 22, 61, .25) 32%, rgba(21, 22, 61, 0) 50%);
  }
  .hero-team .hero-inner > * { max-width: 460px; }
  .hero-team .hero-inner > .clinics { max-width: none; margin-top: 8px; }
  .hero-team .hero-title { font-size: clamp(52px, 5.6vw, 88px); }
  .hero-team .hero-kicker { font-size: clamp(18px, 1.8vw, 24px); }
  .hero-team .hero-sub { margin: 12px 0 22px; }
  .hero-team .clinic-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-team .clinic-card { background: rgba(15, 16, 48, .62); }
}
@media (min-width: 901px) {
  .hero-team .hero-inner {
    display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 72px); align-items: end;
  }
  .hero-team .hero-inner > * { grid-column: 1; max-width: none; }
  .hero-team .hero-inner > .clinics { grid-column: 2; grid-row: 1 / span 3; margin: 0; justify-self: end; width: min(100%, 560px); }
  .hero-team .clinic-list { grid-template-columns: 1fr; gap: 12px; }
  .hero-team .hero-sub { margin-bottom: 0; }
  .hero-team .hero-media img { object-position: center 18%; }
  .hero-team .hero-media::after {
    background:
      linear-gradient(180deg, rgba(15, 16, 48, .5) 0%, rgba(15, 16, 48, 0) 18%, rgba(15, 16, 48, 0) 50%, rgba(21, 22, 61, .78) 70%, rgba(21, 22, 61, .97) 88%, var(--navy-deep) 100%),
      linear-gradient(90deg, rgba(21, 22, 61, .45) 0%, rgba(21, 22, 61, 0) 40%);
  }
}
@media (min-width: 901px) {
  .hero-team .hero-sub { display: none; } /* shown on phones; keeps the band short so faces stay clear */
  .hero-team .hero-inner > .clinics { width: min(100%, 660px); }
  .hero-team .clinic-list { gap: 10px; }
  .hero-team .clinic-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
  .hero-team .clinic-head { flex: 1; margin: 0; align-items: center; min-width: 0; }
  .hero-team .clinic-name { font-size: 16px; }
  .hero-team .clinic-addr { font-size: 13px; }
  .hero-team .clinic-actions { flex-wrap: nowrap; }
  .hero-team .clinic-actions .btn { padding: 9px 14px; font-size: 13.5px; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .hero-team .clinic-card { flex-wrap: wrap; }
  .hero-team .clinic-actions { width: 100%; }
  .hero-team { min-height: max(100svh, 820px); }
}
@media (min-width: 901px) {
  .hero-team .hero-media img { object-position: center 80%; }
  .hero-team .hero-inner { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); }
  .hero-team .hero-h1-sub { font-size: clamp(18px, 1.75vw, 24px); margin-top: 10px; }
}
@media (min-width: 901px) {
  .hero-team { padding-bottom: 34px; }
  .hero-team .clinic-card { display: block; padding: 12px 14px; }
  .hero-team .clinic-head { margin: 0 0 10px; }
  .hero-team .clinic-head > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .hero-team .clinic-pin { width: 28px; height: 28px; border-radius: 8px; }
  .hero-team .clinic-addr { margin: 0; }
  .hero-team .clinics-label { margin-bottom: 8px; }
}

/* Real photos inside the former placeholders */
.photo-ph.photo-real { display: block; background: var(--navy-ink); }
.photo-ph.photo-real picture, .photo-ph.photo-real img { display: block; width: 100%; height: 100%; max-width: none; opacity: 1; object-fit: cover; object-position: center 22%; }

/* ---------- Google reviews (two clinics + live cards) ---------- */
.reviews { display: block; margin-top: 44px; }
.reviews-clinics { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 22px; }
.reviews-clinics .reviews-summary { background: var(--white); border: 1px solid rgba(21, 22, 61, .1); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 10px 30px rgba(21, 22, 61, .06); }
.g-source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #5f6368; }
.g-source svg { width: 16px; height: 16px; }
.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.reviews-actions .btn { margin-top: 0; }
.btn-outline-navy { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline-navy:hover { background: var(--aqua-tint); }
.reviews-list { margin-top: 34px; align-items: start; }
.g-review { min-height: 0; padding: 22px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 700; }
.review-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-who { display: flex; flex-direction: column; min-width: 0; }
.review-who .review-name { text-decoration: none; }
.review-who a.review-name:hover { text-decoration: underline; }
.review-meta { font-size: 13px; color: var(--muted, #6b6f8a); }
.g-review .stars { margin-top: 12px; font-size: 16px; }
.g-review .review-text { flex: none; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.g-review.open .review-text { -webkit-line-clamp: unset; display: block; }
.review-more { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: underline; }
.reviews-attrib { margin-top: 18px; text-align: center; font-size: 13px; color: #5f6368; }
@media (max-width: 720px) {
  .reviews-clinics { grid-template-columns: 1fr; }
}
.kids-photo.photo-real img { object-position: center 55%; }
.photo-ph.wide.team-photo { aspect-ratio: 16 / 9; }
.photo-ph.wide.team-photo img { object-position: center 40%; }
@media (max-width: 720px) { .photo-ph.wide.team-photo { aspect-ratio: 4 / 3; } }

/* Reviews marquee: cards float sideways in a loop, pause on hover */
.reviews-list.rv-marquee { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; margin-inline: calc(50% - 50vw); padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-row { overflow: hidden; }
.rv-track { display: flex; gap: 18px; width: max-content; align-items: flex-start; animation: rv-scroll var(--rv-duration, 60s) linear infinite; }
.rv-reverse .rv-track { animation-direction: reverse; }
.rv-row:hover .rv-track, .rv-row:focus-within .rv-track { animation-play-state: paused; }
.rv-track .g-review { width: 340px; flex: none; box-shadow: 0 8px 24px rgba(21, 22, 61, .07); }
@keyframes rv-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
@media (max-width: 600px) { .rv-track .g-review { width: 280px; } }
@media (prefers-reduced-motion: reduce) {
  .rv-row { overflow-x: auto; }
  .rv-track { animation: none; }
  .rv-track [aria-hidden="true"] { display: none; }
}
#reviews { overflow-x: clip; }

/* =================== Landing pages =================== */
.lp-page main { padding-top: var(--header-h); }
.lp-hero { background: radial-gradient(circle at 85% 20%, rgba(109, 205, 221, .16), transparent 55%), linear-gradient(160deg, var(--navy), var(--navy-deep)); color: rgba(255, 255, 255, .85); padding: 70px 0 80px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.lp-crumbs { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.lp-crumbs a { color: var(--aqua); text-decoration: none; }
.lp-hero .title { margin-bottom: 18px; }
.lp-lead { font-size: 18px; line-height: 1.6; max-width: 560px; }
.lp-price { display: inline-flex; flex-direction: column; margin: 18px 0 6px; padding: 16px 22px; border-radius: var(--radius); background: rgba(109, 205, 221, .12); border: 1px solid rgba(109, 205, 221, .35); }
.lp-price-num { margin: 0; font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--white); line-height: 1; }
.lp-price-num small { font-size: .42em; font-weight: 600; color: var(--aqua); }
.lp-price-note { margin: 6px 0 0; font-size: 14px; color: var(--aqua); font-weight: 600; }
.lp-bullets { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.lp-bullets li { position: relative; padding-left: 26px; }
.lp-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 800; }
.lp-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btns .btn svg, .lp-clinic-actions .btn svg { width: 18px; height: 18px; fill: currentColor; }
.lp-hero-media { aspect-ratio: 4 / 5; max-width: 440px; justify-self: end; width: 100%; box-shadow: var(--shadow); }
.lp-hero-facade { aspect-ratio: 4 / 3.4; max-width: 560px; }
.lp-hero-facade img { object-position: center 45% !important; }
.lp-sec .title { margin-bottom: 22px; }
.lp-include { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-include li { display: grid; gap: 4px; padding: 18px 20px 18px 54px; position: relative; border-radius: var(--radius); background: var(--aqua-tint); color: var(--text); }
.lp-include li::before { content: "✓"; position: absolute; left: 20px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.lp-include strong { color: var(--navy); font-size: 17px; }
.lp-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
.lp-steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px 20px; color: var(--text); }
.lp-steps strong { color: var(--navy); font-size: 17px; }
.lp-steps p { margin: 4px 0 0; }
.lp-step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--aqua); color: var(--navy-ink); font-weight: 800; display: grid; place-items: center; }
.lp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-card { background: var(--white); border-radius: var(--radius); padding: 22px; color: var(--text); }
.lp-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.lp-card p { margin: 0; font-size: 15px; }
.lp-doc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-doc-photo { aspect-ratio: 4 / 5; }
.lp-doc-name { margin: 0; font-size: 22px; font-weight: 700; color: var(--white); }
.lp-doc-role { margin: 4px 0 16px; color: var(--aqua); }
.lp-doc-extra { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.lp-doc-extra picture, .lp-doc-extra img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 22%; display: block; }
.lp-doc-extra strong { display: block; color: var(--white); }
.lp-doc-extra span { color: var(--aqua); font-size: 14px; }
.lp-ba { margin-top: 30px; }
.lp-loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.lp-info { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0; color: var(--text); }
.lp-info dt { font-weight: 700; color: var(--navy); }
.lp-info dd { margin: 0; }
.lp-info ul { list-style: none; margin: 0; padding: 0; }
.lp-h3 { color: var(--navy); margin: 26px 0 10px; }
.lp-svc-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-svc-links a, .lp-link { color: var(--aqua-dark); font-weight: 600; text-decoration: none; }
.lp-svc-links a:hover, .lp-link:hover { text-decoration: underline; }
.lp-loc-side { display: grid; gap: 20px; }
.lp-loc-side .map { aspect-ratio: 4 / 3; }
.lp-kids { aspect-ratio: 1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
.lp-clinics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.lp-clinic { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lp-clinic h3 { margin: 0 0 8px; font-size: 20px; }
.lp-clinic h3 a { color: var(--white); text-decoration: none; }
.lp-clinic h3 a:hover { color: var(--aqua); }
.lp-clinic p { margin: 0 0 10px; font-size: 15px; }
.lp-clinic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.lp-clinic .lp-link { color: var(--aqua); }
.lp-other { margin-top: 24px; }
.lp-other a { color: var(--aqua); }
@media (max-width: 900px) {
  .lp-hero { padding: 40px 0 60px; }
  .lp-hero-grid, .lp-doc, .lp-loc { grid-template-columns: 1fr; gap: 34px; }
  .lp-hero-media { justify-self: start; max-width: 420px; }
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-clinics { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .lp-cards { grid-template-columns: 1fr; } }
.lp-prices { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(21, 22, 61, .1); }
.lp-prices li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 4px; border-bottom: 1px solid rgba(21, 22, 61, .1); color: var(--text); }
.lp-prices strong { display: block; color: var(--navy); font-size: 17px; }
.lp-prices span { display: block; font-size: 14px; color: var(--muted); }
.lp-prices .lp-link { font-size: 14px; }
.lp-pr-price { margin: 0; flex: none; font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.lp-pr-price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.svc-more { position: relative; z-index: 2; display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--aqua); text-decoration: none; }
.svc-more:hover { text-decoration: underline; }
.svc-prices { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--aqua-dark); text-decoration: none; }
.svc-prices:hover { text-decoration: underline; }
.office-more { margin-top: 22px; line-height: 2; }
.office-more a { color: var(--aqua); font-weight: 600; text-decoration: none; }
.office-more a:hover { text-decoration: underline; }


/* =================== Top navigation (same row as the logo) =================== */
.top-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; padding-inline: 16px; }
.top-nav > a, .tn-drop > summary { color: var(--white); opacity: .9; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; white-space: nowrap; cursor: pointer; transition: background-color .2s, opacity .2s; }
.top-nav > a:hover, .tn-drop > summary:hover, .tn-drop[open] > summary { opacity: 1; background: rgba(255, 255, 255, .12); }
.top-nav > a[aria-current="page"], .tn-drop.is-current > summary { color: var(--aqua); opacity: 1; }
.tn-drop { position: relative; }
.tn-drop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.tn-drop > summary::-webkit-details-marker { display: none; }
.tn-drop > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.tn-drop[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.tn-menu { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 250px; padding: 8px; border-radius: var(--radius); background: var(--navy-deep); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 2px; }
.tn-menu a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; color: var(--white); text-decoration: none; }
.tn-menu a:hover, .tn-menu a[aria-current="page"] { background: rgba(255, 255, 255, .08); }
.tn-menu strong { font-size: 15px; }
.tn-menu span { font-size: 13px; color: var(--aqua); }
@media (max-width: 1440px) { .site-header .header-phone { display: none; } }
@media (max-width: 1060px) { .top-nav { display: none; } }

/* Hero clinics: Plaza Aria (left) + Pueblo Nuevo (right) side by side, so the cards cover less of the team */
.lbl-short { display: none; }
@media (min-width: 901px) {
  .hero-team .clinic-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-team .clinic-card { display: block; padding: 12px 14px; }
  .hero-team .clinic-head { margin: 0 0 10px; align-items: flex-start; }
  .hero-team .clinic-head > div { display: block; }
  .hero-team .clinic-addr { display: block; margin-top: 2px; }
  .hero-team .clinic-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-team .clinic-actions .btn { flex: 1 1 auto; justify-content: center; padding: 9px 12px; }
  .hero-team .wa-num, .hero-team .lbl-long { display: none; }
  .hero-team .lbl-short { display: inline; }
}

/* ==========================================================
   Motion v2 — split text, scroll cue, tilt
   ========================================================== */
.split .sw { display: inline-block; white-space: nowrap; }
/* Hero brand name: letters rise and sharpen one by one */
.motion .hero-title.split-chars { opacity: 1; translate: none; }
.motion .hero-title .sc {
  display: inline-block; opacity: 0; translate: 0 .55em; rotate: 8deg; filter: blur(10px); transform-origin: 0 100%;
  transition: opacity .9s ease, translate 1.2s var(--ease-out), rotate 1.2s var(--ease-out), filter 1s ease;
  transition-delay: calc(.2s + var(--i) * 55ms);
}
.hero-ready .hero-title .sc { opacity: 1; translate: 0 0; rotate: 0deg; filter: blur(0); }
/* Word-by-word: each word rises out of its own mask */
.split-words .sw { overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.split-words .swi { display: inline-block; }
.motion .title-anim.split-words > * { opacity: 1; translate: none; clip-path: none; transition: none; }
.motion .split-words .swi { translate: 0 110%; rotate: 4deg; transition: translate 1.1s var(--ease-out), rotate 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.motion .title-anim.in .swi, .hero-ready .hero-h1-sub .swi { translate: 0 0; rotate: 0deg; }
.motion .hero-h1-sub.split-words { opacity: 1; translate: none; }
.motion .hero-h1-sub .swi { transition-delay: calc(.75s + var(--i) * 70ms); }

/* Scroll-down cue on the home hero */
.hero-team .scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: auto; height: auto; border: 0;
  left: max(24px, calc((100% - 1200px) / 2 + 24px)); translate: none; bottom: 26px; text-decoration: none;
  color: rgba(255, 255, 255, .75); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.hero-team .scroll-cue i { position: relative; display: block; width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.hero-team .scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--aqua); animation: cue-dot 1.8s var(--ease-out) infinite; }
.hero-team .scroll-cue b { display: block; width: 1px; height: 34px; background: linear-gradient(var(--aqua), transparent); transform-origin: top; animation: cue-line 1.8s ease-in-out infinite; }
.hero-team .scroll-cue span { display: none; }
.hero-team .scroll-cue:hover { color: var(--aqua); }
.scroll-cue.gone { opacity: 0 !important; pointer-events: none; transition: opacity .4s ease !important; }
@keyframes cue-dot { 0% { opacity: 0; translate: 0 0; } 25% { opacity: 1; } 80% { opacity: 0; translate: 0 14px; } 100% { opacity: 0; } }
@keyframes cue-line { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 0; transform-origin: bottom; } }
@media (max-width: 900px) { .hero-team .scroll-cue { display: none; } }
@media (max-height: 760px) and (min-width: 901px) { .hero-team .scroll-cue b { display: none; } }

/* Hero photo / content scroll motion (transform set by motion.js) */
.hero-team .hero-media img { will-change: transform; }
.hero-team .hero-inner { will-change: opacity, transform; }

/* Cards: 3D tilt with a soft light that follows the cursor (desktop only) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); }
.tilt:hover { transition: transform .12s linear; }
.tilt::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .14), transparent 45%); }
.tilt:hover::before { opacity: 1; }
.hero .btn, .final-cta .btn, .lp-btns .btn, .header-inner > .btn { transition: transform .35s var(--ease-out), background .2s, color .2s, border-color .2s; }

@media (prefers-reduced-motion: reduce) {
  .hero-team .scroll-cue i::after, .hero-team .scroll-cue b { animation: none; }
  .tilt { transform: none !important; }
}

/* Before & after: one row that slides sideways; every case in the same square frame */
.ba-head { margin-top: 6px; }
.ba-slider { padding: 4px 2px 10px; }
.ba-slider .ba { aspect-ratio: 1 / 1; max-width: none; margin: 0; background: var(--navy-ink); }
.ba-slider .ba-img { overflow: hidden; }
.ba-slider .ba-img::before {
  content: ""; position: absolute; inset: -30px; background: var(--bg, none) center / cover no-repeat;
  filter: blur(22px) saturate(1.1) brightness(.8); transform: scale(1.1);
}
.ba-slider.ba-slider .ba-real .ba-img img, .ba-slider .ba-real .ba-img img { object-fit: contain; z-index: 0; }
.ba-slider .ba-real .ba-before, .ba-slider .ba-real .ba-after { background: var(--navy-ink); }
.ba-slider .ba-card figcaption { max-width: none; margin-inline: 0; }
@media (max-width: 720px) { .ba-slider { grid-auto-columns: 86%; } }

/* Hero: lighter overlay so faces and uniforms stay clear; a soft shade only behind the text */
@media (min-width: 901px) {
  .hero-team .hero-media::after {
    background:
      linear-gradient(180deg, rgba(15, 16, 48, .32) 0%, rgba(15, 16, 48, 0) 14%, rgba(15, 16, 48, 0) 64%, rgba(21, 22, 61, .42) 78%, rgba(21, 22, 61, .82) 92%, var(--navy-deep) 100%),
      radial-gradient(70% 55% at 12% 100%, rgba(21, 22, 61, .55), rgba(21, 22, 61, 0) 70%);
  }
  .hero-team .hero-title, .hero-team .hero-h1-sub, .hero-team .hero-kicker { text-shadow: 0 2px 24px rgba(10, 11, 32, .45); }
  .hero-team .clinic-card { background: rgba(15, 16, 48, .55); }
}

/* ==========================================================
   Prices page: treatment cards grouped by category
   ========================================================== */
.pc-sec .title { margin-bottom: 18px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.pc-chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(21, 22, 61, .14); color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.pc-chips a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pc-featured-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pc-group { margin-bottom: 52px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pc-group-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.pc-group-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.pc-group-title { font-size: clamp(22px, 2.2vw, 28px); color: var(--navy); letter-spacing: -.01em; }
.pc-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--aqua-tint, #e8f7fa); }
.pc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--aqua-dark, #3aa9bc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px; border-radius: 22px;
  background: var(--white); border: 1px solid rgba(21, 22, 61, .09); box-shadow: 0 18px 40px -30px rgba(15, 16, 48, .45);
  transition: box-shadow .4s ease, border-color .4s ease;
}
.pc-card:hover { border-color: rgba(109, 205, 221, .6); box-shadow: 0 26px 50px -30px rgba(15, 16, 48, .55); }
.pc-card h3 { font-size: 19px; color: var(--navy); line-height: 1.25; }
.pc-desc { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; flex: 1; }
.pc-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; font-weight: 600; color: var(--aqua-dark, #2c8fa1); }
.pc-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed rgba(21, 22, 61, .14); }
.pc-price { display: flex; align-items: baseline; gap: 5px; margin: 0; color: var(--navy); }
.pc-price small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pc-price b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pc-ask { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 211, 102, .12); transition: background .2s, transform .2s; }
.pc-ask svg { width: 20px; height: 20px; fill: #1faa55; }
.pc-ask:hover { background: #25d366; transform: scale(1.06); }
.pc-ask:hover svg { fill: var(--white); }
.pc-featured { padding: 30px 28px 24px; color: rgba(255, 255, 255, .82); border: 1px solid rgba(109, 205, 221, .3); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(109, 205, 221, .22), transparent 55%), linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.pc-featured h3 { color: var(--white); font-size: clamp(22px, 2.2vw, 27px); }
.pc-featured .pc-desc { color: rgba(255, 255, 255, .8); }
.pc-featured .pc-note { color: var(--aqua); }
.pc-featured .pc-foot { border-top-color: rgba(255, 255, 255, .16); align-items: center; }
.pc-featured .pc-price { color: var(--white); }
.pc-featured .pc-price small { color: rgba(255, 255, 255, .6); }
.pc-featured .pc-price b { font-size: 28px; }
.pc-tag { margin: 0; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(109, 205, 221, .16); color: var(--aqua); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) {
  .pc-featured-row { grid-template-columns: 1fr; }
  .pc-featured .pc-foot { flex-wrap: wrap; }
}
#results > .container > .title { margin-bottom: 0; }
.pc-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pc-featured .pc-price b { font-size: 24px; }
