/* ============================================================
   MB Odontología — Design System v3
   Paleta: navy azul profundo + cian de marca + blanco clínico
   Sin negro puro — se usa navy como color base
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Cian de marca */
  --cyan:       #0BE9F4;
  --cyan-dark:  #00C4CE;
  --cyan-deep:  #007A84;
  --cyan-tint:  #F0FEFF;
  --cyan-tint2: #DFFBFD;
  --cyan-mid:   #5DD8E0;

  /* Azul profundo — reemplaza al negro */
  --navy:       #0A1940;
  --navy-mid:   #102460;
  --navy-light: #1A3580;
  --navy-tint:  #EDF1FA;

  /* Neutros claros */
  --ink:    #1C2B3A;
  --slate:  #3D5166;
  --muted:  #607080;
  --border: #C8EEF1;
  --ghost:  #F5FBFF;
  --white:  #FFFFFF;

  /* Tipografía */
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 30px;

  /* Sombras (sin negro puro) */
  --shadow-sm:  0 4px 16px rgba(10,25,64,.08);
  --shadow:     0 16px 48px rgba(10,25,64,.12);
  --shadow-lg:  0 32px 80px rgba(10,25,64,.18);
  --cyan-glow:  0 0 40px rgba(11,233,244,.22);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  overflow-x: hidden;
}
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────────── */
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
section { padding: 80px 0; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  overflow: visible;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid rgba(11,233,244,.15);
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: 0 4px 24px rgba(10,25,64,.10);
}
.nav {
  min-height: 118px;
  height: auto;
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  overflow: visible;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 150px; flex-shrink: 0; padding: 8px 0; overflow: visible; }
.brand img { width: 112px; height: auto; max-height: none; object-fit: contain; }
.brand span { display: none; }  /* logo ya incluye texto Odontología */
.menu {
  display: flex; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 600;
}
.menu a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--slate); font-weight: 600;
  transition: color .18s ease, background .18s ease, transform .15s ease;
  position: relative;
}
.menu a:hover {
  color: var(--navy);
  background: rgba(10,25,64,.08);
  transform: translateY(-1px);
}
.menu a.active {
  color: var(--cyan-deep);
  background: var(--cyan-tint2);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(11,233,244,.35);
}

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  background: var(--cyan); color: var(--navy);
  box-shadow: 0 6px 20px rgba(11,233,244,.32);
  transition: .2s ease; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--cyan-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11,233,244,.38); }
.btn.secondary {
  background: transparent; color: var(--navy);
  border-color: rgba(10,25,64,.25); box-shadow: none;
}
.btn.secondary:hover { background: var(--navy-tint); border-color: var(--navy); }
.btn.navy {
  background: var(--navy); color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(10,25,64,.28);
}
.btn.navy:hover { background: var(--navy-mid); box-shadow: 0 10px 28px rgba(10,25,64,.35); }
.btn.whatsapp {
  background: #25D366; color: white; border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37,211,102,.28);
}
.btn.whatsapp:hover { background: #1ebe5e; }
.btn.lg { min-height: 54px; padding: 14px 30px; font-size: 15px; }

/* ── Menú celulares ───────────────────────────────────────────── */
.mobile-toggle {
  display: none; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--navy) !important;
  border-radius: 10px;
  background: var(--navy) !important;
  padding: 10px; cursor: pointer; flex-shrink: 0;
  -webkit-appearance: none; appearance: none;
}
.mobile-toggle span {
  display: block !important;
  height: 2px !important;
  width: 100% !important;
  background: white !important;
  margin: 3px 0 !important;
  border-radius: 2px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  padding: 14px 0 20px; background: rgba(255,255,255,.97);
}
.mobile-menu a {
  display: block; padding: 14px 12px;
  font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 2px;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover, .mobile-menu a:active {
  background: var(--cyan-tint2);
  color: var(--cyan-deep);
  padding-left: 20px;
}
.mobile-menu.is-open { display: block; }

/* ── Kicker ───────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(11,233,244,.10); border: 1px solid rgba(11,233,244,.30);
  font-size: 11px; font-weight: 800;
  color: var(--cyan-deep); text-transform: uppercase; letter-spacing: .09em;
}
.kicker.navy-kicker {
  background: rgba(10,25,64,.08); border-color: rgba(10,25,64,.18);
  color: var(--navy-light);
}

/* ── Tipografía ───────────────────────────────────────────── */
h1 {
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: .96; letter-spacing: -.055em;
  color: var(--navy); margin: 16px 0 20px; font-weight: 800;
}
h1 span, .accent { color: var(--cyan-dark); }
h2 {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.03; letter-spacing: -.045em;
  color: var(--navy); margin: 14px 0 16px; font-weight: 800;
}
h3 {
  font-size: 20px; line-height: 1.15;
  letter-spacing: -.02em; color: var(--navy); margin: 0 0 10px; font-weight: 700;
}
.lead {
  font-size: 19px; line-height: 1.58;
  color: var(--slate); max-width: 660px; margin: 0 0 28px;
}
p { color: var(--muted); line-height: 1.65; }

.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { font-size: 17px; }
.center { text-align: center; margin-inline: auto; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(ellipse 55% 70% at 95% 0%, rgba(11,233,244,.14), transparent 52%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(10,25,64,.06), transparent 40%),
    linear-gradient(168deg, #fff 0%, var(--ghost) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.proof-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.proof {
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.proof b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 3px; font-weight: 700; }
.proof span { font-size: 13px; color: var(--muted); }

/* ── Visual card (navy) ───────────────────────────────────── */
.visual-card {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 34px; color: white; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.visual-card::before {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(11,233,244,.18);
}
.visual-card::after {
  content: ""; position: absolute; left: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(11,233,244,.08);
}
.visual-card img { width: 120px; margin-bottom: 20px; position: relative; z-index: 1; }
.visual-card h2 { font-size: clamp(24px,2.8vw,32px); color: white; margin: 0 0 12px; position: relative; z-index: 1; }
.visual-card p { color: #9BB5D8; position: relative; z-index: 1; }
.info-box {
  margin-top: 22px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px; position: relative; z-index: 1;
}
.info-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.info-line:last-child { border-bottom: 0; }
.info-line span { color: #7A9BC0; font-size: 13px; }
.info-line strong { color: var(--cyan); font-size: 13px; text-align: right; }

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  padding: 66px 0 58px;
  background: linear-gradient(168deg, #fff 0%, var(--ghost) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { margin-bottom: 0; }

/* ── Cards ────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.card {
  background: white;
  border: 1.5px solid rgba(10,25,64,.12);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 4px 16px rgba(10,25,64,.08), 0 1px 3px rgba(10,25,64,.06);
  min-height: 210px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  cursor: default;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(10,25,64,.14), 0 4px 12px rgba(10,25,64,.08);
  border-color: var(--cyan-dark);
  background: linear-gradient(160deg, #fff 60%, var(--cyan-tint) 100%);
}
.card:hover h3 { color: var(--cyan-deep); }
.card h3 { font-size: 19px; transition: color .18s; }
.card p { margin: 0 0 18px; font-size: 15px; }
.card a { font-weight: 700; color: var(--cyan-deep); font-size: 14px; }
.card a:hover { color: var(--navy); }
.card.compact { min-height: 0; }

/* ── Split sections ───────────────────────────────────────── */
.split { background: var(--cyan-tint); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Panel navy (reemplaza negro) */
.panel {
  border-radius: var(--radius-lg); padding: 36px;
  background: var(--navy); color: white; box-shadow: var(--shadow);
}
.panel .large {
  font-size: clamp(26px,3.2vw,38px); line-height: 1.06;
  letter-spacing: -.04em; font-weight: 800; color: white;
}
.panel p { color: #8AAFCC; margin-top: 14px; }

/* Panel azul medio */
.panel.blue-mid {
  background: var(--navy-mid);
}
.panel.cyan-panel {
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan-deep));
  color: var(--navy);
}
.panel.cyan-panel .large, .panel.cyan-panel p { color: var(--navy); }

.list { display: grid; gap: 12px; margin-top: 20px; }
.list-item {
  padding: 15px 18px; border-radius: 14px;
  background: white; border: 1.5px solid rgba(10,25,64,.10);
  box-shadow: 0 2px 8px rgba(10,25,64,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(10,25,64,.10);
  border-color: var(--cyan-dark);
}
.list-item b { display: block; color: var(--navy); margin-bottom: 3px; font-size: 15px; font-weight: 700; }
.list-item span { color: var(--muted); font-size: 14px; }

/* ── Location cards ───────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.location-card {
  border: 1.5px solid rgba(10,25,64,.12); border-radius: var(--radius);
  padding: 30px; background: linear-gradient(155deg, white, var(--ghost));
  box-shadow: 0 4px 16px rgba(10,25,64,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(10,25,64,.14);
  border-color: var(--cyan-dark);
}
.location-card h3 { font-size: 24px; margin: 0 0 6px; }
.location-card p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.mini-list { display: grid; gap: 8px; margin: 0 0 22px; }
.mini-list span {
  padding: 10px 14px; border-radius: 10px;
  background: white; border: 1px solid var(--border);
  color: var(--slate); font-size: 14px;
}

/* ── Formulario ───────────────────────────────────────────── */
.form-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.form-card h2 { margin-top: 0; font-size: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 13px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--ghost); transition: .18s; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--cyan-dark); background: white;
  box-shadow: 0 0 0 3px rgba(11,233,244,.12);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ── WhatsApp CTA strip ───────────────────────────────────── */
.wa-strip {
  background: var(--navy); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.wa-strip-text b { display: block; font-size: 18px; color: white; margin-bottom: 3px; font-weight: 700; }
.wa-strip-text span { color: #7A9BC0; font-size: 13px; }
.wa-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Team grid ────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.team-card {
  border: 1.5px solid rgba(10,25,64,.12); border-radius: var(--radius);
  padding: 28px 22px; background: white;
  box-shadow: 0 4px 16px rgba(10,25,64,.08);
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(10,25,64,.14);
  border-color: var(--cyan-dark);
  background: linear-gradient(160deg, #fff 60%, var(--cyan-tint) 100%);
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy-tint); border: 2px solid var(--border);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--navy);
}
.team-card h3 { font-size: 17px; }
.team-role { font-size: 12px; color: var(--cyan-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.team-card p { font-size: 14px; margin: 0 0 16px; }

/* ── Sección equipo profesional ───────────────────────────── */
.team-section {
  background: var(--white);
}

@media (max-width: 600px) {
  .team-section {
    background: var(--white) !important;
  }
}

/* ── CTA final ────────────────────────────────────────────── */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white; text-align: center; padding: 90px 0; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 60%; height: 200%; border-radius: 50%;
  background: rgba(11,233,244,.06);
}
.final-cta h2 { color: white; position: relative; }
.final-cta p { color: #8AAFCC; font-size: 18px; max-width: 580px; margin: 0 auto 28px; position: relative; }
.final-cta .kicker { margin-bottom: 16px; display: inline-flex; position: relative;
  background: rgba(11,233,244,.12); border-color: rgba(11,233,244,.30); color: var(--cyan); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  padding: 44px 0 32px;
  background: var(--navy);
  border-top: 1px solid rgba(11,233,244,.12);
}
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-grid img { width: 88px; margin-bottom: 10px; }
.footer-brand p { color: #5A7EA0; font-size: 14px; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.footer-links a { color: #8AAFCC; transition: .18s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 13px; color: #3D5A78;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #3D5A78; }
.footer-bottom a:hover { color: var(--cyan); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .menu { display: none; }
  .mobile-toggle { display: flex; }
  .nav { min-height: 108px; height: auto; padding: 14px 0; }
  .hero { padding: 60px 0; }
  .hero-grid, .split-grid, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .proof-row { grid-template-columns: 1fr 1fr; }
  .cards, .team-grid { grid-template-columns: 1fr 1fr; }
  .visual-card { padding: 28px; }
  .footer-grid { flex-direction: column; gap: 18px; }
  .brand img { width: 116px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand span { display: none; }
  .brand { min-width: 130px; padding: 6px 0; }
  .brand img { width: 112px; }
  .nav > .btn { padding: 10px 16px; font-size: 13px; min-height: 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .proof-row { grid-template-columns: 1fr; }
  .cards, .team-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .page-hero { padding: 46px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .wa-strip { flex-direction: column; align-items: flex-start; }
  .final-cta { padding: 64px 0; }
}

/* ── Teléfono en header ───────────────────────────────────── */
.header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--slate);
  white-space: nowrap; text-decoration: none;
  transition: color .18s;
}
.header-phone:hover { color: var(--navy); }
.header-phone svg { flex-shrink: 0; }
@media (max-width: 960px) { .header-phone { display: none; } }

/* ── Sticky CTA mobile (páginas de tratamiento) ───────────── */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 20px 16px;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(10,25,64,.10);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  min-height: 50px; border-radius: 999px;
  background: #25D366; color: white; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 20px rgba(37,211,102,.30);
  text-decoration: none;
}
@media (max-width: 600px) { .sticky-cta { display: block; } }

/* Compensate body bottom so sticky CTA doesn't cover content */
@media (max-width: 600px) { body { padding-bottom: 80px; } }

/* ── WhatsApp flotante ────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 36px rgba(37,211,102,.52);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }
/* On mobile: float sits above sticky CTA */
@media (max-width: 600px) {
  .wa-float { bottom: 86px; right: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ── Accesibilidad ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Hero equipo (imagen de fondo) ───────────────────────── */
.hero-equipo {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--navy);
}

/* Imagen de fondo */
.hero-equipo::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/hero-equipo.webp') center center / cover no-repeat;
  opacity: .38;
  z-index: 0;
}

/* Overlay degradado: navy opaco a la izq → transparente a la der */
/* Refuerza legibilidad del texto y respeta el gradiente propio de la foto */
.hero-equipo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,25,64,.92) 0%,
    rgba(10,25,64,.75) 45%,
    rgba(10,25,64,.20) 75%,
    transparent 100%
  );
  z-index: 1;
}

.hero-equipo .container { position: relative; z-index: 2; }

.hero-equipo-content {
  max-width: 580px;
}

.hero-equipo-content .kicker {
  background: rgba(11,233,244,.15);
  border-color: rgba(11,233,244,.40);
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero-equipo-content h1 {
  color: white;
  margin-bottom: 18px;
}

.hero-equipo-content h1 span {
  color: var(--cyan);
}

.hero-equipo-content .lead {
  color: rgba(255,255,255,.78);
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .hero-equipo { min-height: 340px; padding: 60px 0; }
  .hero-equipo::before { opacity: .48; }
  .hero-equipo::after {
    background: linear-gradient(
      180deg,
      rgba(10,25,64,.72) 0%,
      rgba(10,25,64,.52) 60%,
      rgba(10,25,64,.34) 100%
    );
  }
}

/* ── Hero sedes (foto fachada San Bernardo) ──────────────── */
.hero-sedes {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--navy);
}
.hero-sedes::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/hero-sedes.webp') center 40% / cover no-repeat;
  opacity: .40;
  z-index: 0;
}
.hero-sedes::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,25,64,.94) 0%,
    rgba(10,25,64,.78) 42%,
    rgba(10,25,64,.22) 72%,
    transparent 100%
  );
  z-index: 1;
}
.hero-sedes .container { position: relative; z-index: 2; }

@media (max-width: 600px) {
  .hero-sedes { min-height: 340px; padding: 60px 0; }
  .hero-sedes::before { opacity: .50; }
  .hero-sedes::after {
    background: linear-gradient(
      180deg,
      rgba(10,25,64,.72) 0%,
      rgba(10,25,64,.54) 60%,
      rgba(10,25,64,.36) 100%
    );
  }
}

/* ── Hero tratamientos (foto clínica real) ───────────────── */
.hero-tratamientos {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--navy);
}
.hero-tratamientos::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/hero-tratamientos.webp') center 30% / cover no-repeat;
  opacity: .38;
  z-index: 0;
}
.hero-tratamientos::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,25,64,.95) 0%,
    rgba(10,25,64,.80) 40%,
    rgba(10,25,64,.20) 70%,
    transparent 100%
  );
  z-index: 1;
}
.hero-tratamientos .container { position: relative; z-index: 2; }

@media (min-width: 961px) {
  .hero-tratamientos .hero-equipo-content {
    max-width: 760px;
  }
}

@media (max-width: 600px) {
  .hero-tratamientos { min-height: 340px; padding: 60px 0; }
  .hero-tratamientos::before { opacity: .48; }
  .hero-tratamientos::after {
    background: linear-gradient(
      180deg,
      rgba(10,25,64,.74) 0%,
      rgba(10,25,64,.54) 60%,
      rgba(10,25,64,.36) 100%
    );
  }
}

/* hamburger defined in base rules above */

/* site-header transparency defined in base rule */

/* cards contrast handled in base rule */

/* ── Social icons footer ─────────────────────────────────── */
.footer-social {
  display: flex; gap: 12px; margin-top: 14px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: .18s ease;
}
.footer-social a:hover {
  background: rgba(11,233,244,.15);
  border-color: rgba(11,233,244,.35);
}
.footer-social svg { width: 18px; height: 18px; fill: #8AAFCC; transition: .18s; display: block; }
.footer-social a:hover svg { fill: var(--cyan); }

/* ── Logo en fondos oscuros (visual-card, footer) ───────── */
.visual-card img,
.footer-brand img {
  width: 110px; height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* ============================================================
   Reestructura v1 — Header simplificado + hero con carrusel
   ============================================================ */
.nav > .btn { display: none; }
.menu { margin-left: auto; gap: 6px; }
.menu a { font-size: 14px; }

.hero-home-carousel {
  padding: 82px 0 76px;
  background:
    radial-gradient(ellipse 55% 70% at 95% 0%, rgba(11,233,244,.14), transparent 52%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(10,25,64,.06), transparent 40%),
    linear-gradient(168deg, #fff 0%, var(--ghost) 100%);
}
.hero-carousel-grid {
  grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
  gap: 46px;
}
.hero-copy { min-width: 0; }
.hero-carousel {
  position: relative;
  min-height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,64,0) 52%, rgba(10,25,64,.42) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  z-index: 1;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-dots {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.58);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.is-active {
  width: 28px;
  background: var(--cyan);
}

@media (max-width: 960px) {
  .hero-carousel-grid { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 360px; }
}
@media (max-width: 600px) {
  .hero-home-carousel { padding: 52px 0 56px; }
  .hero-carousel { min-height: 260px; border-radius: 22px; }
  .carousel-dots { left: 18px; bottom: 16px; }
}

/* ── Servicios con foto ───────────────────────────────────── */
.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-photo-card {
  background: white;
  border: 1.5px solid rgba(10,25,64,.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10,25,64,.08), 0 1px 3px rgba(10,25,64,.06);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(10,25,64,.14), 0 4px 12px rgba(10,25,64,.08);
  border-color: var(--cyan-dark);
}
.service-photo-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.service-photo-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.service-photo-card-body h3 {
  margin: 0;
  color: var(--navy);
}
.service-photo-card-body p {
  margin: 0;
  font-size: 15px;
}
.service-photo-card-body a {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan-deep);
}
@media (max-width: 920px) {
  .service-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-photo-grid { grid-template-columns: 1fr; }
  .service-photo-card img { height: 190px; }
}

.footer-address { color: #8AAFCC !important; font-size: 14px; margin-top: 6px; }

/* ── Fix v7: eliminar franja blanca bajo footer en móviles ── */
@media (max-width: 600px) {
  html,
  body {
    background: var(--navy);
  }

  body {
    padding-bottom: 0 !important;
  }

  footer {
    margin-bottom: 0 !important;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .sticky-cta {
    display: none !important;
  }

  .wa-float {
    bottom: 18px;
  }
}

/* ============================================================
   Fix hero index — carrusel de fondo completo, texto fijo
   ============================================================ */
.hero-home-carousel {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 88px 0 44px;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.hero-home-carousel .container {
  position: relative;
  z-index: 3;
}

.hero-bg-carousel,
.hero-bg-slide {
  position: absolute;
  inset: 0;
}

.hero-bg-carousel {
  z-index: 0;
  background: var(--navy);
}

.hero-bg-slide {
  opacity: 0;
  transition: opacity .9s ease;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-home-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(10,25,64,.94) 0%,
      rgba(10,25,64,.78) 30%,
      rgba(0,196,206,.42) 50%,
      rgba(10,25,64,.08) 72%,
      rgba(10,25,64,.00) 100%
    );
}

.hero-home-carousel .hero-carousel-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px);
  gap: 0;
  align-items: center;
}

.hero-home-carousel .hero-copy {
  max-width: 650px;
}

.hero-home-carousel .kicker {
  background: rgba(11,233,244,.15);
  border-color: rgba(11,233,244,.40);
  color: var(--cyan);
}

.hero-home-carousel h1 {
  color: var(--white);
  text-shadow: 0 8px 30px rgba(10,25,64,.25);
}

.hero-home-carousel h1 span {
  color: var(--cyan);
}

.hero-home-carousel .hero-actions {
  margin-top: 44px;
  margin-bottom: 0;
}

.hero-home-carousel .lead {
  color: rgba(255,255,255,.84);
  text-shadow: 0 4px 18px rgba(10,25,64,.20);
}

.hero-home-carousel .btn.secondary {
  color: var(--white);
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-home-carousel .btn.secondary:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.72);
}

.hero-home-carousel .proof {
  background: rgba(255,255,255,.92);
  border-color: rgba(200,238,241,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 960px) {
  .hero-home-carousel {
    min-height: 500px;
    padding: 68px 0 24px;
  }

  .hero-home-carousel .hero-carousel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-home-carousel {
    min-height: auto;
    padding: 20px 0 20px;
    align-items: flex-start;
  }

  .hero-bg-slide img {
    object-position: 68% center;
  }

  .hero-home-carousel .hero-actions {
    margin-top: 46px;
    gap: 18px;
  }

  .hero-home-carousel::after {
    background:
      linear-gradient(
        180deg,
        rgba(10,25,64,.94) 0%,
        rgba(10,25,64,.82) 44%,
        rgba(0,196,206,.38) 72%,
        rgba(10,25,64,.25) 100%
      );
  }
}

/* ============================================================
   Home — propósito y carrusel de servicios
   ============================================================ */
.purpose-section {
  padding: 72px 0 36px;
  background: linear-gradient(180deg, var(--white) 0%, var(--cyan-tint) 100%);
}

.purpose-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 62%, var(--cyan-deep) 100%);
  box-shadow: var(--shadow-lg);
}

.purpose-panel::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(11,233,244,.14);
}

.purpose-panel::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.purpose-panel .kicker,
.purpose-panel h2,
.purpose-panel p {
  position: relative;
  z-index: 1;
}

.purpose-panel .kicker {
  background: rgba(11,233,244,.12);
  border-color: rgba(11,233,244,.38);
  color: var(--cyan);
}

.purpose-panel h2 {
  color: var(--white);
  margin-top: 18px;
}

.purpose-panel p {
  max-width: 900px;
  color: #B9D2EA;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.72;
}

.home-services-carousel-section {
  padding: 44px 0 84px;
  background: var(--cyan-tint);
}

.home-service-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  background: var(--white);
  border: 1.5px solid rgba(10,25,64,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.home-service-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.home-service-slide h3 {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 20px 22px;
  margin: 0;
  color: var(--navy);
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-services-grid .home-service-slide:nth-child(n+5) {
    display: none;
  }
  .home-services-grid .home-service-slide img {
    aspect-ratio: 3 / 2;
  }
  .home-services-grid .home-service-slide h3 {
    font-size: 15px;
    min-height: 56px;
    padding: 14px 14px;
  }
}

.home-services-grid .home-service-slide img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 960px) {
  .purpose-section { padding: 56px 0 28px; }
  .home-services-carousel-section { padding: 36px 0 64px; }
  .home-service-slide { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 600px) {
  .purpose-section { padding: 42px 0 22px; }
  .purpose-panel { padding: 28px 22px; }
  .home-services-carousel-section { padding: 30px 0 54px; }
  .home-service-slide {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .home-service-slide h3 {
    min-height: 70px;
    padding: 18px;
    font-size: 18px;
  }
}

.purpose-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--cyan-tint) 100%) !important;
}

.purpose-panel {
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--ghost) 100%) !important;
  border: 1.5px solid rgba(11,233,244,.34);
  box-shadow: 0 18px 54px rgba(10,25,64,.10) !important;
}

.purpose-panel::before {
  background: rgba(11,233,244,.12) !important;
}

.purpose-panel::after {
  background: rgba(10,25,64,.035) !important;
}

.purpose-panel .kicker {
  margin-inline: auto;
  color: var(--cyan-deep) !important;
  background: rgba(11,233,244,.12) !important;
  border-color: rgba(11,233,244,.36) !important;
}

.purpose-panel h2 {
  color: var(--navy) !important;
}

.purpose-panel p {
  max-width: 920px;
  margin-inline: auto;
  color: var(--slate) !important;
}

.home-service-slide {
  border: 1.8px solid rgba(10,25,64,.18) !important;
  box-shadow: 0 10px 28px rgba(10,25,64,.12) !important;
  background: linear-gradient(180deg, #fff 0%, var(--ghost) 100%) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.home-service-slide:hover,
.home-service-slide:active,
.home-service-slide:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0,196,206,.70) !important;
  box-shadow: 0 18px 40px rgba(10,25,64,.16) !important;
  background: linear-gradient(180deg, #fff 0%, var(--cyan-tint) 100%) !important;
}

.home-service-slide h3 {
  color: var(--navy) !important;
}

@media (max-width: 600px) {

  .home-service-slide {
    flex: 0 0 100% !important;
    scroll-snap-align: none !important;
  }
}

.home-final-cta {
  background: linear-gradient(180deg, var(--white) 0%, var(--cyan-tint) 100%) !important;
  color: var(--navy) !important;
  border-top: 1px solid rgba(10,25,64,.12);
  border-bottom: 1px solid rgba(10,25,64,.12);
}

.home-final-cta::before {
  background: rgba(11,233,244,.10) !important;
}

.home-final-cta .kicker {
  color: var(--cyan-deep) !important;
  background: rgba(11,233,244,.12) !important;
  border-color: rgba(11,233,244,.34) !important;
}

.home-final-cta h2 {
  color: var(--navy) !important;
}

.home-final-cta p {
  color: var(--slate) !important;
}

.final-cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-final-cta .btn.secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(10,25,64,.20);
}

.home-final-cta .btn.secondary:hover,
.home-final-cta .btn.secondary:active {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

@media (max-width: 600px) {
  .final-cta-actions {
    flex-direction: column;
  }

  .final-cta-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   Ajustes finales — breadcrumbs, contraste hero y accesos home
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan-deep);
  letter-spacing: .01em;
}

.breadcrumbs a {
  color: inherit;
  transition: color .18s ease, opacity .18s ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:active {
  color: var(--navy);
}

.breadcrumbs span {
  color: var(--muted);
}

.breadcrumbs-on-dark {
  color: var(--cyan);
  text-shadow: 0 4px 18px rgba(10,25,64,.28);
}

.breadcrumbs-on-dark a:hover,
.breadcrumbs-on-dark a:active {
  color: var(--white);
}

.breadcrumbs-on-dark span {
  color: rgba(255,255,255,.68);
}

.hero-bg-slide img {
  filter: brightness(.68) saturate(1.04);
}

.hero-home-carousel::after {
  background:
    linear-gradient(
      90deg,
      rgba(10,25,64,.96) 0%,
      rgba(10,25,64,.84) 32%,
      rgba(0,196,206,.44) 52%,
      rgba(10,25,64,.28) 76%,
      rgba(10,25,64,.18) 100%
    ) !important;
}

/* ── Reviews ── */
.home-reviews-section {
  padding: 64px 0;
  background: var(--ghost);
  border-top: 1px solid rgba(10,25,64,.08);
  border-bottom: 1px solid rgba(10,25,64,.08);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.review-card {
  background: var(--white);
  border: 1.5px solid rgba(10,25,64,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-stars {
  color: #F4B400;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card blockquote {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.review-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .review-card {
    padding: 22px 18px;
  }
}

.home-quick-links-section {
  padding: 24px 0 30px;
  background: var(--white);
}

.home-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-quick-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid rgba(10,25,64,.22);
  box-shadow: 0 14px 38px rgba(10,25,64,.14), 0 1px 0 rgba(11,233,244,.32) inset;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.home-quick-card .home-quick-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
}

.home-quick-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--cyan-deep);
  background: var(--cyan-tint2);
  border: 1.5px solid rgba(11,233,244,.48);
  box-shadow: 0 8px 20px rgba(11,233,244,.12);
}

.home-quick-icon svg {
  width: 23px;
  height: 23px;
}

.home-quick-card strong {
  color: var(--cyan-deep);
  font-size: 14px;
  font-weight: 800;
}

.home-quick-card:hover,
.home-quick-card:active,
.home-quick-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(0,196,206,.82);
  box-shadow: 0 22px 54px rgba(10,25,64,.20), 0 0 0 3px rgba(11,233,244,.10);
  background: linear-gradient(180deg, var(--white) 0%, var(--cyan-tint) 100%);
}

.home-dental-home-block {
  padding: 18px 0 58px;
  background: var(--white);
}

.home-dental-home-block p {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 28px;
  text-align: center;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.04em;
  border: 1.5px solid rgba(11,233,244,.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white) 0%, var(--ghost) 100%);
  box-shadow: 0 16px 42px rgba(10,25,64,.10);
}

@media (max-width: 960px) {
  .home-quick-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .breadcrumbs {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .hero-bg-slide img {
    filter: brightness(.62) saturate(1.04);
  }

  .home-quick-links-section {
    padding: 20px 0 26px;
  }

  .home-quick-card {
    min-height: 118px;
    padding: 22px;
  }

  .home-quick-card .home-quick-title {
    font-size: 22px;
  }

  .home-quick-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .home-quick-icon svg {
    width: 21px;
    height: 21px;
  }

  .home-dental-home-block {
    padding: 14px 0 44px;
  }
}

/* ── Home ubicación + Google Maps ─────────────────────────── */
.home-location-section {
  background: var(--white);
  padding: 64px 0 72px;
}

.home-location-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 24px;
  align-items: stretch;
}

.home-location-card {
  background: linear-gradient(155deg, #ffffff 0%, var(--ghost) 100%);
  border: 1.5px solid rgba(10,25,64,.16);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 34px rgba(10,25,64,.11);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-location-card h3 {
  margin-bottom: 14px;
}

.home-location-card p {
  margin-bottom: 10px;
  color: var(--slate);
}

.home-location-card strong {
  color: var(--navy);
}

.home-location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.home-map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(10,25,64,.16);
  box-shadow: 0 12px 34px rgba(10,25,64,.11);
  min-height: 360px;
  background: var(--ghost);
}

.home-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

@media (max-width: 860px) {
  .home-location-section {
    padding: 52px 0 58px;
  }

  .home-location-grid {
    grid-template-columns: 1fr;
  }

  .home-location-actions .btn {
    width: 100%;
  }

  .home-map-embed,
  .home-map-embed iframe {
    min-height: 320px;
  }
}

/* Footer matriz text */
.footer-matriz {
  max-width: 360px;
  color: #8AAFCC !important;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
}

/* Equipo CTA actions */
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero agendamiento — imagen calendario aprobada */
.hero-agendar {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10,25,64,.94) 0%, rgba(10,25,64,.86) 34%, rgba(10,25,64,.58) 58%, rgba(10,25,64,.24) 100%),
    linear-gradient(0deg, rgba(10,25,64,.18), rgba(10,25,64,.18)),
    url('../img/hero-agendar-calendario.webp') center center / cover no-repeat;
  border-bottom: 1px solid rgba(11,233,244,.22);
}

.hero-agendar .container {
  position: relative;
  z-index: 1;
}

.hero-agendar h1 {
  color: var(--white);
  max-width: 720px;
}

.hero-agendar .lead {
  color: rgba(255,255,255,.84);
  max-width: 620px;
}

.hero-agendar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-agendar-actions .btn {
  box-shadow: 0 12px 34px rgba(37,211,102,.28);
}

.hero-agendar .kicker {
  background: rgba(11,233,244,.14);
  border-color: rgba(11,233,244,.40);
  color: var(--cyan);
}

@media (max-width: 600px) {
  .hero-agendar {
    min-height: 520px;
    padding: 58px 0 52px;
    background-position: 64% center;
  }
}

/* Agendar: iframe Dental Soft */
.dentalsoft-section {
  background: var(--ghost);
  padding: 64px 0 56px;
}

.dentalsoft-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.dentalsoft-embed iframe {
  display: block;
  min-height: 700px;
}

@media (max-width: 600px) {
  .dentalsoft-embed iframe {
    min-height: 820px;
  }
}

/* Agendar: layout simplificado con formulario y CTA WhatsApp */
.agendar-contact-section {
  background: var(--white);
  padding: 72px 0 52px;
}

.agendar-contact-layout {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.agendar-contact-head {
  max-width: 760px;
  margin-bottom: 0;
}

.agendar-contact-head h2 {
  margin-bottom: 14px;
}

.agendar-main-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.agendar-form-card {
  width: min(100%, 760px);
}

.agendar-form-card .form-submit-btn {
  width: 100%;
}

@media (max-width: 600px) {
  .agendar-contact-section {
    padding: 52px 0 42px;
  }

  .hero-agendar-actions,
  .hero-agendar-actions .btn {
    width: 100%;
  }

  .agendar-main-action,
  .agendar-main-action .btn {
    width: 100%;
  }

  .agendar-form-card {
    padding: 24px 18px;
  }
}

/* Corrección final — fondo claro en grillas y botón visible en CTA azul */
.services-list-section,
.team-section {
  background: var(--white) !important;
}

.services-list-section .section-head h2,
.services-list-section .section-head p,
.team-section .section-head h2,
.team-section .section-head p {
  color: inherit;
}

.services-list-section .section-head p,
.team-section .section-head p {
  color: var(--slate) !important;
}

@media (max-width: 960px) {
  .services-list-section,
  .team-section {
    background: var(--white) !important;
  }
}

@media (max-width: 640px) {
  .services-list-section,
  .team-section {
    background: var(--white) !important;
    padding-top: 56px;
  }
}

.final-cta .final-cta-actions .btn.secondary,
.final-cta .btn.secondary {
  color: var(--white) !important;
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.10) !important;
  box-shadow: 0 8px 24px rgba(10,25,64,.22) !important;
}

.final-cta .final-cta-actions .btn.secondary:hover,
.final-cta .final-cta-actions .btn.secondary:active,
.final-cta .btn.secondary:hover,
.final-cta .btn.secondary:active {
  color: var(--navy) !important;
  background: var(--white) !important;
  border-color: var(--white) !important;
}

/* === CTA final buttons color correction ===
   Home/light CTA: keep agendamiento text blue.
   Navy CTA blocks: use cyan button with navy text for agendamiento buttons.
*/
.home-final-cta .final-cta-actions .btn.secondary,
.home-final-cta .btn.secondary {
  color: var(--navy) !important;
  background: rgba(11, 233, 244, .16) !important;
  border-color: rgba(0, 196, 206, .52) !important;
  box-shadow: 0 8px 24px rgba(10, 25, 64, .10) !important;
}

.home-final-cta .final-cta-actions .btn.secondary:hover,
.home-final-cta .final-cta-actions .btn.secondary:active,
.home-final-cta .btn.secondary:hover,
.home-final-cta .btn.secondary:active {
  color: var(--navy) !important;
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 10px 28px rgba(11, 233, 244, .30) !important;
}

.final-cta:not(.home-final-cta) .final-cta-actions .btn:not(.whatsapp),
.final-cta:not(.home-final-cta) .btn.secondary {
  color: var(--navy) !important;
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 8px 24px rgba(11, 233, 244, .28) !important;
}

.final-cta:not(.home-final-cta) .final-cta-actions .btn:not(.whatsapp):hover,
.final-cta:not(.home-final-cta) .final-cta-actions .btn:not(.whatsapp):active,
.final-cta:not(.home-final-cta) .btn.secondary:hover,
.final-cta:not(.home-final-cta) .btn.secondary:active {
  color: var(--navy) !important;
  background: var(--cyan-dark) !important;
  border-color: var(--cyan-dark) !important;
  box-shadow: 0 10px 28px rgba(11, 233, 244, .36) !important;
}

/* === Hero CTA buttons consistency === */
.hero-home-carousel .btn.whatsapp,
.hero-equipo-content .btn.whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .32) !important;
}

.hero-home-carousel .btn.whatsapp:hover,
.hero-home-carousel .btn.whatsapp:active,
.hero-equipo-content .btn.whatsapp:hover,
.hero-equipo-content .btn.whatsapp:active {
  background: #1ebe5e !important;
  border-color: #1ebe5e !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .40) !important;
}

.hero-equipo-content .hero-dark-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 0;
}

.hero-equipo-content .hero-cyan-btn {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 8px 24px rgba(11, 233, 244, .28) !important;
}

.hero-equipo-content .hero-cyan-btn:hover,
.hero-equipo-content .hero-cyan-btn:active {
  background: var(--cyan-dark) !important;
  border-color: var(--cyan-dark) !important;
  color: var(--navy) !important;
  box-shadow: 0 10px 28px rgba(11, 233, 244, .36) !important;
}

@media (max-width: 600px) {
  .hero-equipo-content .hero-dark-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-equipo-content .hero-dark-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Header — destacar Agendar
   ============================================================ */
.site-header .menu a.nav-agendar {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--cyan) !important;
  box-shadow: 0 8px 24px rgba(11,233,244,.32);
  font-weight: 800;
  padding-inline: 18px;
}
.site-header .menu a.nav-agendar:hover,
.site-header .menu a.nav-agendar.active {
  background: var(--cyan-dark) !important;
  color: var(--navy) !important;
  border-color: var(--cyan-dark) !important;
  box-shadow: 0 12px 30px rgba(11,233,244,.40);
  transform: translateY(-1px);
}
.mobile-menu a.nav-agendar {
  background: var(--cyan-tint2);
  color: var(--navy) !important;
  border: 1.5px solid rgba(11,233,244,.55);
  font-weight: 800;
}

/* ── Fade-in progresivo para tarjetas ───────────────────────
   Se activa por JS solo cuando existe IntersectionObserver.
   No afecta hero/header ni deja contenido oculto si JS falla.
*/
.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s ease, transform .58s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  will-change: opacity, transform;
}
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* Formspree contact form feedback */
.form-honeypot {
  display: none !important;
}
.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.form-status.is-success {
  color: var(--cyan-deep);
}
.form-status.is-error {
  color: #B42318;
}
.form-submit-btn:disabled {
  opacity: .75;
  cursor: wait;
  transform: none;
}

/* Footer compacto v2 — navegación, contacto y redes */
footer {
  padding: 32px 0 24px !important;
  background: var(--navy);
}
.footer-grid.footer-grid-compact {
  display: grid !important;
  grid-template-columns: 1.35fr .85fr 1.05fr .75fr;
  gap: 28px;
  align-items: start;
}
.footer-col h3 {
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.footer-brand img {
  width: 86px !important;
  margin-bottom: 10px;
}
.footer-brand p,
.footer-contact-col p {
  color: #8AAFCC;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.footer-matriz {
  max-width: 360px;
  color: #6F91B5 !important;
}
.footer-contact-col a,
.footer-bottom a {
  color: #8AAFCC;
  transition: color .18s ease;
}
.footer-contact-col a:hover,
.footer-bottom a:hover {
  color: var(--cyan);
}
.footer-links {
  display: grid !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 700;
}
.footer-links a {
  color: #8AAFCC;
  width: fit-content;
}
.footer-links a.nav-agendar {
  color: var(--cyan) !important;
}
.footer-social {
  margin-top: 0 !important;
}
.footer-agendar {
  min-height: 38px;
  padding: 8px 16px;
  margin-top: 6px;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(11,233,244,.22);
}
.footer-bottom {
  margin-top: 24px !important;
  padding-top: 16px !important;
  font-size: 12px !important;
}
@media (max-width: 960px) {
  .footer-grid.footer-grid-compact {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  footer {
    padding-top: 28px !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }
  .footer-grid.footer-grid-compact {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .footer-brand img {
    width: 82px !important;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 18px !important;
  }
  .footer-bottom {
    margin-top: 20px !important;
  }
}

/* Ajuste: mayor contraste en botón Agendar del footer */
.footer-agendar {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  border-color: var(--cyan) !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  text-shadow: none !important;
}
.footer-agendar:hover,
.footer-agendar:active {
  background: var(--cyan-dark) !important;
  color: var(--navy) !important;
  border-color: var(--cyan-dark) !important;
}

/* Rotación de textos — Nuestro propósito */
.purpose-text-rotator {
  position: relative;
  z-index: 1;
  max-width: 920px;
  min-height: 7.4em;
  margin: 0 auto;
}

.purpose-text-rotator .purpose-text-item {
  position: absolute !important;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  margin: 0 auto !important;
  color: var(--slate) !important;
  pointer-events: none;
  animation: purposeTextCycle 14s infinite;
  will-change: opacity, transform;
}

.purpose-text-rotator .purpose-text-item:nth-child(2) {
  animation-delay: 7s;
}

@keyframes purposeTextCycle {
  0% { opacity: 0; transform: translateY(10px); }
  8% { opacity: 1; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(0); }
  53% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 700px) {
  .purpose-text-rotator {
    min-height: 11.8em;
  }
}

@media (max-width: 430px) {
  .purpose-text-rotator {
    min-height: 14.8em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purpose-text-rotator .purpose-text-item {
    animation: none !important;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .purpose-text-rotator .purpose-text-item + .purpose-text-item {
    display: none !important;
  }
}

/* ============================================================
   Campañas — landing page
   Migrado desde CSS inline de campanas.html para mantener estilos centralizados
   ============================================================ */
.campaign-hero {
      position: relative;
      min-height: 420px;
      display: flex;
      align-items: center;
      overflow: hidden;
      padding: 86px 0 76px;
      background-color: var(--navy);
      color: var(--white);
    }
    .campaign-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url('../img/hero-campanas-consulta.webp') center center / cover no-repeat;
      opacity: .34;
      filter: brightness(.74);
      z-index: 0;
      pointer-events: none;
    }
    .campaign-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        100deg,
        rgba(10,25,64,.95) 0%,
        rgba(10,25,64,.82) 42%,
        rgba(10,25,64,.28) 72%,
        rgba(10,25,64,.06) 100%
      );
      z-index: 1;
      pointer-events: none;
    }
    .campaign-hero .container { position: relative; z-index: 2; }
    .campaign-hero h1 { color: var(--white); max-width: 920px; }
    .campaign-hero .lead { color: #A9BFDC; max-width: 720px; }
    .campaign-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
    .campaign-intro {
      background: var(--white);
      padding-bottom: 42px;
    }
    .campaign-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }
    .campaign-card {
      min-height: 100%;
      overflow: hidden;
      padding: 0;
    }
    .campaign-card img {
      width: 100%;
      height: 210px;
      object-fit: cover;
    }
    .campaign-card-body {
      padding: 24px;
      display: grid;
      gap: 12px;
    }
    .campaign-card-body p { margin: 0; }
    .campaign-tag {
      display: inline-flex;
      width: fit-content;
      padding: 5px 11px;
      border-radius: 999px;
      background: var(--cyan-tint2);
      color: var(--cyan-deep);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
    }
    .campaign-disclaimer {
      margin-top: 22px;
      padding: 16px 18px;
      border-radius: var(--radius-sm);
      background: var(--cyan-tint);
      border: 1px solid var(--border);
      color: var(--slate);
      font-size: 14px;
      text-align: center;
    }
    .campaign-form-section {
      background: linear-gradient(168deg, var(--ghost) 0%, var(--white) 100%);
      padding-top: 64px;
    }
    .campaign-form-layout {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 28px;
      align-items: center;
    }
    .campaign-form-copy {
      padding: 30px;
      border-radius: var(--radius-lg);
      background: var(--navy);
      box-shadow: var(--shadow);
    }
    .campaign-form-copy h2 { color: var(--white); margin-top: 0; }
    .campaign-form-copy p { color: #A9BFDC; }
    .campaign-form-copy .mini-list { margin-top: 24px; }
    .campaign-form-copy .mini-list span { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #C4D7EE; }
    @media (max-width: 960px) {
      .campaign-grid,
      .campaign-form-layout { grid-template-columns: 1fr; }
      .campaign-card img { height: 240px; }
      .campaign-hero { min-height: 360px; padding: 64px 0; }
    }
    @media (max-width: 600px) {
      .campaign-hero { min-height: 320px; padding: 52px 0 56px; }
      .campaign-hero::before { opacity: .44; }
      .campaign-hero::after {
        background: linear-gradient(
          180deg,
          rgba(10,25,64,.74) 0%,
          rgba(10,25,64,.56) 62%,
          rgba(10,25,64,.36) 100%
        );
      }
      .campaign-hero-actions .btn { width: 100%; }
      .campaign-card img { height: 205px; }
      .campaign-form-copy { padding: 24px; }
    }

/* ============================================================
   Ajuste solicitado — Hero index en mobile
   Muestra preferentemente la mitad derecha de la foto y oscurece
   el fondo para asegurar contraste del texto flotante.
   ============================================================ */
@media (max-width: 600px) {
  main > .hero.hero-home-carousel {
    min-height: 540px !important;
    padding-top: 54px !important;
    padding-bottom: 54px !important;
    align-items: center !important;
  }

  main > .hero.hero-home-carousel .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-home-carousel .hero-bg-slide img {
    object-position: 76% center !important;
    filter: brightness(.68) saturate(1.04) !important;
  }

  .hero-home-carousel::after {
    background:
      linear-gradient(
        90deg,
        rgba(10,25,64,.88) 0%,
        rgba(10,25,64,.72) 42%,
        rgba(10,25,64,.44) 66%,
        rgba(10,25,64,.18) 100%
      ),
      linear-gradient(
        180deg,
        rgba(10,25,64,.18) 0%,
        rgba(10,25,64,.06) 48%,
        rgba(10,25,64,.22) 100%
      ) !important;
  }
}

/* Campañas: campo de vigencia en tarjetas de promoción */
.campaign-validity {
  margin: 2px 0 0 !important;
  color: var(--navy) !important;
  font-size: 14px;
}
.campaign-validity strong {
  font-weight: 800;
}

/* ============================================================
   Reviews — Social proof
   ============================================================ */
.home-reviews-section {
  padding: 72px 0 80px;
  background: var(--cyan-tint);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.review-card {
  background: var(--white);
  border: 1.5px solid rgba(10,25,64,.10);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(10,25,64,.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,25,64,.12);
  border-color: var(--cyan-dark);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-meta strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.review-stars {
  color: #F5A623;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-text {
  font-size: 14px;
  line-height: 1.68;
  color: var(--slate);
  margin: 0;
  flex: 1;
}

@media (max-width: 600px) {
  .home-reviews-section { padding: 52px 0 60px; }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Equipo — foto profesional en tarjetas */
.team-avatar.team-avatar-photo {
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  background: var(--cyan-tint);
  border: 3px solid rgba(11,233,244,.45);
  box-shadow: 0 12px 28px rgba(10,25,64,.14);
}

.team-avatar.team-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

@media (max-width: 960px) {
  .team-avatar.team-avatar-photo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .team-avatar.team-avatar-photo {
    width: 108px;
    height: 108px;
  }
}

/* Equipo — modal de foto ampliada */
.team-avatar.team-avatar-photo.team-photo-trigger {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.team-avatar.team-avatar-photo.team-photo-trigger:hover,
.team-avatar.team-avatar-photo.team-photo-trigger:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(0,196,206,.82);
  box-shadow: 0 16px 36px rgba(10,25,64,.18), 0 0 0 4px rgba(11,233,244,.12);
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-modal.is-open {
  display: flex;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10,25,64,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.photo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  max-height: min(88vh, 760px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(10,25,64,.42);
  border: 1px solid rgba(255,255,255,.72);
}

.photo-modal-dialog img {
  width: 100%;
  max-height: min(88vh, 760px);
  display: block;
  object-fit: contain;
  background: var(--cyan-tint);
}

.photo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  background: rgba(10,25,64,.78);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(10,25,64,.28);
}

.photo-modal-close:hover,
.photo-modal-close:focus-visible {
  background: var(--cyan);
  color: var(--navy);
}

body.photo-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .photo-modal {
    padding: 14px;
  }

  .photo-modal-dialog {
    width: min(94vw, 460px);
    border-radius: 22px;
  }

  .photo-modal-close {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
}

/* Ajuste modal equipo — foto completa + nombre y especialidad */
.photo-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(92vw, 560px);
  max-height: min(90vh, 820px);
}

.photo-modal-dialog img {
  width: 100%;
  height: auto;
  max-height: calc(min(90vh, 820px) - 92px);
  object-fit: contain;
  object-position: center center;
  background: var(--cyan-tint);
}

.photo-modal-caption {
  padding: 16px 22px 18px;
  background: var(--white);
  border-top: 1px solid rgba(10,25,64,.10);
  text-align: center;
}

.photo-modal-caption strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

.photo-modal-caption span {
  display: block;
  margin-top: 4px;
  color: var(--cyan-deep);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
}

@media (max-width: 600px) {
  .photo-modal-dialog {
    width: min(94vw, 460px);
    max-height: 88vh;
  }

  .photo-modal-dialog img {
    max-height: calc(88vh - 88px);
  }

  .photo-modal-caption {
    padding: 14px 18px 16px;
  }

  .photo-modal-caption strong {
    font-size: 17px;
  }

  .photo-modal-caption span {
    font-size: 12px;
  }
}

/* Fix modal equipo — asegurar visibilidad de nombre y especialidad */
.photo-modal-dialog {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
}

.photo-modal-dialog > img[data-photo-modal-img] {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.photo-modal-caption {
  flex: none !important;
  display: block !important;
  position: relative !important;
  z-index: 3 !important;
  background: var(--white) !important;
  color: var(--navy) !important;
}

.photo-modal-caption strong,
.photo-modal-caption span {
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 600px) {
  .photo-modal-dialog {
    max-height: calc(100vh - 28px) !important;
  }
}

/* ── Horarios de atención ─────────────────────────────────── */
.schedule-list {
  margin: 16px 0 0;
  border-top: 1px solid rgba(10,25,64,.10);
  padding-top: 14px;
  display: grid;
  gap: 0;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(10,25,64,.07);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  min-width: 110px;
}

.schedule-row dd {
  font-size: 13px;
  color: var(--slate);
  text-align: right;
}

/* Footer: horario compacto */
.footer-schedule-compact {
  color: #8AAFCC;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 8px;
  white-space: pre-line;
}

/* Final CTA: horario inline */
.final-cta-schedule {
  font-size: 13px;
  opacity: .72;
  margin-top: -8px;
  margin-bottom: 4px;
  letter-spacing: .01em;
}

@media (max-width: 480px) {
  .schedule-row {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }

  .schedule-row dd {
    text-align: left;
    color: var(--muted);
  }
}

/* ── Hero H1/lead constrained — responsive fix ───────────── */
.hero-h1-constrained,
.hero-lead-constrained {
  width: min(700px, 100%);
}

/* ── Reserva confirmada ──────────────────────────────────── */
.confirm-section {
  padding: 80px 0 96px;
  background: var(--white);
}

.confirm-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}

.confirm-icon svg {
  width: 100%;
  height: 100%;
}

.confirm-layout h1 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.confirm-layout .lead {
  color: var(--muted);
  margin-bottom: 36px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.confirm-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.confirm-info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--teal);
}

@media (max-width: 480px) {
  .confirm-actions {
    flex-direction: column;
    width: 100%;
  }

  .confirm-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
