:root {
/* PRIMARIO — Azul */
--color-primary: #2C6DBE;
--color-primary-700: #1C477D;
--color-primary-600: #245A9E;
--color-primary-300: #7FA8DA;
--color-primary-100: #DCE9F7;

/* SECUNDARIO — Gris azulado */
--color-secondary: #5B6B7B;
--color-secondary-700: #3B4753;
--color-secondary-600: #4A5865;
--color-secondary-300: #A3AEB8;
--color-secondary-100: #EDEFF2;

/* ACENTO — Ámbar */
--color-accent: #E0A000;
--color-accent-600: #C78E00;
--color-accent-100: #FBEECB;

/* NEUTROS */
--color-ink: #1F2933;
--color-ink-soft: #52616B;
--color-border: #E4E7EB;
--color-surface: #F7F9FB;
--color-bg: #FFFFFF;

/* TIPOGRAFÍA */
--font-heading: "Poppins", "Inter", sans-serif;
--font-base: "Inter", system-ui, sans-serif;

/* RADIOS Y SOMBRAS */
--radius-sm: 6px;
--radius-md: 12px;
--radius-lg: 20px;
--shadow-sm: 0 1px 3px rgba(31,41,51,.08);
--shadow-md: 0 6px 20px rgba(31,41,51,.10);

--container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--color-ink); line-height: 1.6; background: var(--color-bg); }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; text-decoration-thickness: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h2.accent { color: var(--color-primary); font-size: 31px; margin-bottom: 16px; }
h2.center { margin-bottom: 8px; }
.kicker { color: var(--color-secondary); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.kicker.center { text-align: center; }
p { color: var(--color-ink-soft); margin-bottom: 16px; }

/* Botones */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 600; font-size: 15px; transition: .25s; cursor: pointer; border: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-600); }
.btn-secondary { background: var(--color-secondary-100); color: var(--color-secondary-700); }
.btn-secondary:hover { background: var(--color-secondary-300); }
.btn-accent { background: var(--color-accent); color: var(--color-ink); }
.btn-accent:hover { background: var(--color-accent-600); }

/* Header */
.site-header { position: sticky; top: 0; background: #fff; box-shadow: var(--shadow-sm); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }

/* LOGO EN TEXTO */
.brand { display: inline-flex; align-items: flex-start; font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.5px; text-decoration: none; }
.brand-a { color: var(--color-accent); }
.brand-b { color: var(--color-primary); }
.brand-b.light { color: #fff; }
.brand-tm { font-size: 12px; font-weight: 600; color: var(--color-primary); border: 2px solid var(--color-primary); border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin-left: 3px; margin-top: 2px; line-height: 1; }
.brand-footer { font-size: 26px; margin-bottom: 12px; }
.brand-footer .brand-tm { color: #fff; border-color: #fff; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--color-ink); }
.main-nav a:not(.btn):hover { color: var(--color-primary); }

/* HERO */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: none;
  filter: blur(0px);
  transform: scale(1.05);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,109,190,.60) 0%, rgba(28,71,125,.30) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  background: rgba(255, 255, 255, .92);
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(2px);
}
.hero-content .hero-cta { margin-top: 32px; }

/* Grids */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Placeholder de imagen */
.media-box { background: repeating-linear-gradient(45deg, var(--color-surface), var(--color-surface) 12px, var(--color-secondary-100) 12px, var(--color-secondary-100) 24px); border: 1px dashed var(--color-secondary-300); border-radius: var(--radius-md); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.media-box span { color: var(--color-secondary); font-size: 14px; letter-spacing: 1px; }
.smile { background: var(--color-surface); }

/* Pilares — 4 degradados azules distintos + icono en círculo blanco */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.pillar { color: #fff; padding: 32px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); transition: transform .2s; }
.pillar:hover { transform: translateY(-4px); }
.pillar h3 { color: #fff; margin: 4px 0 12px; letter-spacing: 1px; }
.pillar p { color: rgba(255,255,255,.9); font-size: 15px; margin-bottom: 16px; }
.link-more { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #fff; border-bottom: 2px solid var(--color-accent); }
.pillar-1 { background: linear-gradient(150deg, #7FA8DA 0%, #4E86CB 100%); }
.pillar-2 { background: linear-gradient(150deg, #4E86CB 0%, #2C6DBE 100%); }
.pillar-3 { background: linear-gradient(150deg, #2C6DBE 0%, #245A9E 100%); }
.pillar-4 { background: linear-gradient(150deg, #245A9E 0%, #1C477D 100%); }
.pillar-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #fff; border-radius: 50%; margin-bottom: 18px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.pillar-icon svg { width: 30px; height: 30px; }

/* Equipo — CARRUSEL (hasta 15) */
.team { background: var(--color-surface); }
.team-carousel { position: relative; margin-top: 32px; }
.team-track {
display: flex;
gap: 24px;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
padding: 8px 4px 20px;
scrollbar-width: thin;
scrollbar-color: var(--color-primary-300) transparent;
}
.team-track::-webkit-scrollbar { height: 8px; }
.team-track::-webkit-scrollbar-thumb { background: var(--color-primary-300); border-radius: 8px; }
.team-track::-webkit-scrollbar-track { background: transparent; }
.team-card {
flex: 0 0 300px;
scroll-snap-align: start;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
.team-photo { height: 240px; background: var(--color-primary-100); display: flex; align-items: center; justify-content: center; }
.team-photo span { color: var(--color-primary); opacity: .7; font-size: 14px; }
.team-info { padding: 24px; }
.team-role { font-size: 12px; letter-spacing: 1px; color: var(--color-secondary); text-transform: uppercase; }
.team-card h3 { color: var(--color-primary); margin: 8px 0 10px; }
.team-info p { font-size: 15px; }
.team-empty { opacity: .55; border-style: dashed; }
.team-empty .team-photo { background: var(--color-secondary-100); }
.team-empty .team-photo span { color: var(--color-secondary); }

/* Flechas del carrusel */
.team-nav {
position: absolute; top: 40%; transform: translateY(-50%);
width: 44px; height: 44px; border-radius: 50%;
background: #fff; border: 1px solid var(--color-border);
color: var(--color-primary); font-size: 18px; cursor: pointer;
box-shadow: var(--shadow-md); z-index: 5; display: flex;
align-items: center; justify-content: center; transition: background .2s;
}
.team-nav:hover { background: var(--color-primary); color: #fff; }
.team-nav.prev { left: -10px; }
.team-nav.next { right: -10px; }

/* Testimonios / Reseñas */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.t-card { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-sm); }
.stars { color: var(--color-accent); font-size: 16px; letter-spacing: 2px; }
.t-card p { margin: 12px 0; color: var(--color-ink); }
.t-card cite { font-size: 14px; color: var(--color-secondary); font-style: normal; }

/* Cabecera resumen de Google */
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 8px; flex-wrap: wrap; }
.reviews-summary strong { font-family: var(--font-heading); font-size: 22px; color: var(--color-ink); }
.reviews-summary a { color: var(--color-secondary); font-size: 14px; }
.g-logo { font-family: var(--font-heading); font-weight: 700; font-size: 20px;
background: conic-gradient(from -45deg, #4285F4 0 90deg, #34A853 90deg 180deg, #FBBC05 180deg 270deg, #EA4335 270deg 360deg);
-webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cabecera de cada reseña */
.t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-head cite { display: block; font-style: normal; font-weight: 600; color: var(--color-ink); font-size: 15px; }
.t-date { font-size: 13px; color: var(--color-secondary); }
.g-badge { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 13px;
background: conic-gradient(from -45deg, #4285F4 0 90deg, #34A853 90deg 180deg, #FBBC05 180deg 270deg, #EA4335 270deg 360deg);
-webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botón Leer más de reseñas */
.t-text { color: var(--color-ink); }
.t-toggle { display: inline-block; margin-top: 8px; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--color-primary); }
.t-toggle:hover { text-decoration: underline; }

/* Nota bajo el botón de reseñas */
.reviews-hint { margin-top: 10px; font-size: 13px; color: var(--color-secondary); }

/* CTA band */
.cta-band { background: var(--color-primary); color: #fff; padding: 36px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner span { font-family: var(--font-heading); font-size: 20px; font-weight: 600; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.card { margin: 0; overflow: hidden; border-radius: var(--radius-md); cursor: pointer; background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.card img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.card:hover img { transform: scale(1.06); }
.card figcaption { padding: 12px 16px; font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--color-primary); }
.card.placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--color-secondary-300); }
.card.placeholder span { color: var(--color-secondary); font-size: 14px; }

/* Footer */
.site-footer { background: var(--color-secondary-700); color: #fff; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; margin: 18px 0 8px; letter-spacing: 1px; }
.footer-col p { color: var(--color-secondary-300); font-size: 15px; }
.footer-col.map { background: var(--color-secondary-600); border-radius: var(--radius-md); min-height: 260px; display: flex; align-items: center; justify-content: center; }
.footer-col.map span { color: #fff; opacity: .8; }
.footer-bottom { background: var(--color-secondary-700); border-top: 1px solid var(--color-secondary-600); padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-secondary-300); flex-wrap: wrap; gap: 8px; }

/* WhatsApp flotante */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 200; transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37,211,102,.45); }
.wa-float svg { width: 34px; height: 34px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(31,41,51,.92); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: var(--radius-md); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; }
.lb-close { top: 20px; right: 30px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Overlays residuales */
.modal, .overlay, .popup, .menu-overlay,
[class*="overlay"]:not([class^="tc-"]):not([class*=" tc-"]) { display: none !important; }

/* ===== Tratamientos — tarjetas con imagen + texto + Leer más ===== */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.treat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.treat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.treat-media { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--color-secondary-100); overflow: hidden; }
.treat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.treat-media:hover img { transform: scale(1.05); }
.treat-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.treat-body h3 { color: var(--color-primary); font-size: 17px; letter-spacing: .3px; margin-bottom: 10px; }
.treat-body p { color: var(--color-ink-soft); font-size: 15px; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.treat-more { margin-top: auto; align-self: flex-start; font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }
.treat-more:hover { color: var(--color-accent-600); border-color: var(--color-accent-600); }

/* ===== Página de detalle de tratamiento ===== */
.treatment-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.treatment-hero .media-box { min-height: 340px; }
.treatment-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.treatment-detail h1 { color: var(--color-primary); font-size: 34px; margin-bottom: 16px; }

/* Casos de éxito dentro de la página */
.success-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.success-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.success-media { aspect-ratio: 4 / 3; background: var(--color-secondary-100); }
.success-media img { width: 100%; height: 100%; object-fit: cover; }
.success-card figcaption { padding: 12px 16px; font-size: 14px; color: var(--color-secondary); }

/* ===== Carrusel "resto de tratamientos" (imagen + overlay azul) ===== */
.tc-carousel { position: relative; margin-top: 32px; }
.tc-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 20px; scrollbar-width: thin; scrollbar-color: var(--color-primary-300) transparent; }
.tc-track::-webkit-scrollbar { height: 8px; }
.tc-track::-webkit-scrollbar-thumb { background: var(--color-primary-300); border-radius: 8px; }
.tc-track::-webkit-scrollbar-track { background: transparent; }

.tc-item { position: relative; flex: 0 0 300px; scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); background: var(--color-secondary-100); }
.tc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }

/* Capa azul semitransparente con el nombre encima */
.tc-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(44, 109, 190, .72);
  transition: opacity .3s ease;
}
.tc-name {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* Al pasar el ratón (o al enfocar con teclado): imagen limpia */
.tc-item:hover .tc-overlay,
.tc-item:focus-visible .tc-overlay { opacity: 0; }
.tc-item:hover img { transform: scale(1.06); }

.tc-nav { position: absolute; top: 45%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); color: var(--color-primary); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-md); z-index: 5; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.tc-nav:hover { background: var(--color-primary); color: #fff; }
.tc-nav.prev { left: -10px; }
.tc-nav.next { right: -10px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-content { margin: 0 24px; padding: 32px 28px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.1rem); }
.welcome-grid, .footer-grid { grid-template-columns: 1fr; }
.pillars { grid-template-columns: repeat(2, 1fr); }
.testimonial-grid { grid-template-columns: 1fr; }
.main-nav a:not(.btn) { display: none; }
.hero h1 { font-size: 33px; }
.brand { font-size: 24px; }
.team-card { flex: 0 0 300px; }
.team-nav.prev { left: 0; }
.team-nav.next { right: 0; }
.treatments-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
.treatments-grid { grid-template-columns: 1fr; }
}
/* ===== Icono junto a un título de sección ===== */
.section-icon { display: block; width: 96px; height: 96px; margin: 0 auto 16px; object-fit: cover; border-radius: 50%; }
.section-icon svg { width: 100%; height: 100%; }

/* ===== Comparador Antes / Después (arrastrable) ===== */
.ba { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; background: var(--color-secondary-100); cursor: ew-resize; --ba-w: 100%; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before-wrap .ba-before { position: absolute; top: 0; left: 0; height: 100%; width: var(--ba-w); max-width: none; object-fit: cover; }

/* Marca de agua repetida sobre la imagen */
.ba-watermark {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35);
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; text-transform: lowercase;
  transform: rotate(-24deg);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* Capa transparente que dificulta guardar la imagen con clic derecho */
.ba-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }

/* Etiquetas Antes / Después (se ocultan según la barra) */
.ba-label { position: absolute; top: 12px; padding: 4px 10px; font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: #fff; background: rgba(31,41,51,.6); border-radius: var(--radius-sm); letter-spacing: .5px; pointer-events: none; z-index: 3; transition: opacity .2s ease; }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

.ba-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 100%; background: none; border: none; cursor: ew-resize; padding: 0; z-index: 4; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); }
.ba-arrows { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--color-primary); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: -2px; }
.ba-handle:focus-visible .ba-arrows { outline: 3px solid var(--color-accent); outline-offset: 2px; }
/* La imagen "antes" debe medir lo mismo que el contenedor completo */
.ba-before-wrap .ba-before { position: absolute; top: 0; left: 0; height: 100%; }
.ba .ba-before-wrap .ba-before { width: 100vw; max-width: none; }

.ba-label { position: absolute; top: 12px; padding: 4px 10px; font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: #fff; background: rgba(31,41,51,.6); border-radius: var(--radius-sm); letter-spacing: .5px; pointer-events: none; }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

.ba-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 100%; background: none; border: none; cursor: ew-resize; padding: 0; z-index: 3; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); }
.ba-arrows { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--color-primary); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: -2px; }
.ba-handle:focus-visible .ba-arrows { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ===== Barra superior de contacto ===== */
.topbar { background: var(--color-primary-700); color: #fff; font-size: 14px; }
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 500; }
.topbar-item svg { flex-shrink: 0; opacity: .9; }
.topbar-item:hover { color: var(--color-accent); }

@media (max-width: 900px) {
  .topbar { font-size: 13px; }
  .topbar-inner { gap: 6px 18px; padding: 8px 16px; }
}

/* Treatment card spotlight effect */
.treat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.treat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(127, 168, 218, .42) 0%,
    rgba(44, 109, 190, .17) 38%,
    rgba(224, 160, 0, .10) 62%,
    transparent 76%
  );
  transition: opacity .24s ease;
}
.treat-card:hover::after,
.treat-card:focus-within::after {
  opacity: 1;
}
.treat-card > * {
  position: relative;
  z-index: 1;
}
@media (hover: none) {
  .treat-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .treat-card,
  .treat-card::after { transition: none; }
}

/* TEAM_DOCTORS_CAROUSEL_START */
/* Doctor portrait carousel. Add portraits at images/equipo/lilianne-cruz.jpg, fatima-cerdan.jpg, and andres-cruz.jpg. */
.team { background: var(--color-surface); }
.team-doctors-carousel {
  position: relative;
  max-width: 1080px;
  height: 560px;
  margin: 32px auto 0;
  overflow: hidden;
  touch-action: pan-y;
  outline: none;
}
.team-doctors-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.team-doctor-card {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 310px;
  height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--color-primary-300), var(--color-primary-700));
  box-shadow: 0 18px 42px rgba(31,41,51,.24);
  transform-origin: center center;
  transition: transform .55s ease, opacity .42s ease, filter .42s ease;
  will-change: transform, opacity, filter;
}
.team-doctor-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28,71,125,.04) 28%, rgba(31,41,51,.87) 100%);
}
.team-doctor-card.is-active {
  z-index: 4;
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) scale(1);
}
.team-doctor-card.is-before {
  z-index: 2;
  opacity: .34;
  filter: blur(5px) saturate(.75);
  transform: translateX(calc(-50% - 250px)) scale(.9);
}
.team-doctor-card.is-after {
  z-index: 2;
  opacity: .34;
  filter: blur(5px) saturate(.75);
  transform: translateX(calc(-50% + 250px)) scale(.9);
}
.team-doctor-card.is-hidden {
  z-index: 1;
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-50%) scale(.82);
  pointer-events: none;
}
.team-doctor-card.is-changing .team-doctor-info,
.team-doctor-card.is-changing .team-doctor-photo { animation: team-doctors-dissolve .46s ease both; }
@keyframes team-doctors-dissolve {
  0% { opacity: .15; transform: scale(.985); }
  100% { opacity: 1; transform: scale(1); }
}
.team-doctor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-100);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.team-doctor-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary-300), var(--color-primary-700));
}
.team-doctor-photo.is-placeholder span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.team-doctor-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 80px 28px 28px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(31,41,51,.9));
}
.team-doctor-role {
  display: block;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.team-doctor-info h3 { margin: 7px 0 8px; color: #fff; font-size: 23px; }
.team-doctor-info p { margin: 0; color: rgba(255,255,255,.87); font-size: 13px; line-height: 1.45; }
.team-doctors-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--color-primary);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.team-doctors-nav:hover,
.team-doctors-nav:focus-visible {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.team-doctors-prev { left: 28px; }
.team-doctors-next { right: 28px; }
@media (max-width: 700px) {
  .team-doctors-carousel { height: 500px; }
  .team-doctor-card { top: 18px; width: 250px; height: 410px; }
  .team-doctor-card.is-before { transform: translateX(calc(-50% - 178px)) scale(.82); }
  .team-doctor-card.is-after { transform: translateX(calc(-50% + 178px)) scale(.82); }
  .team-doctors-nav { width: 44px; height: 44px; font-size: 25px; }
  .team-doctors-prev { left: 8px; }
  .team-doctors-next { right: 8px; }
  .team-doctor-info { padding: 68px 20px 20px; }
  .team-doctor-info h3 { font-size: 19px; }
  .team-doctor-info p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-doctor-card,
  .team-doctors-nav { transition: none; }
  .team-doctor-card.is-changing .team-doctor-info,
  .team-doctor-card.is-changing .team-doctor-photo { animation: none; }
}
/* TEAM_DOCTORS_CAROUSEL_END */
/* TREATMENT_GLOW_CLEAN_START */
/* Cursor-following treatment card border in clinic blue and amber. */
.treat-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: visible;
}
.treat-card::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 10;
  padding: 3px;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    125px circle at var(--spot-x) var(--spot-y),
    #ffffff 0%,
    #e0a000 16%,
    #2c6dbe 42%,
    rgba(127,168,218,.32) 62%,
    transparent 76%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 7px rgba(44,109,190,.7)) drop-shadow(0 0 13px rgba(224,160,0,.36));
  transition: opacity .12s linear;
}
.treat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    190px circle at var(--spot-x) var(--spot-y),
    rgba(127,168,218,.19) 0%,
    rgba(44,109,190,.08) 40%,
    transparent 72%
  );
  transition: opacity .12s linear;
}
.treat-card.is-spotlight::before,
.treat-card.is-spotlight::after,
.treat-card:focus-within::before,
.treat-card:focus-within::after { opacity: 1; }
.treat-card.is-spotlight,
.treat-card:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(28,71,125,.22);
}
.treat-card > * { position: relative; z-index: 2; }
@media (hover: none) {
  .treat-card { overflow: hidden; }
  .treat-card::before,
  .treat-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .treat-card::before,
  .treat-card::after { transition: none; }
}
/* TREATMENT_GLOW_CLEAN_END */
/* DOCTOR_PROFILE_PAGES_START */
.doctor-profile { background: var(--color-surface); }
.doctor-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.doctor-profile-media {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  box-shadow: var(--shadow-md);
}
.doctor-profile-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.doctor-profile-kicker,
.doctor-profile-role {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.doctor-profile-content h1 { margin: 0 0 10px; }
.doctor-profile-content h2 { margin-top: 30px; }
.doctor-profile-list { padding-left: 22px; }
.doctor-profile-list li { margin-bottom: 10px; }
.doctor-profile-back { display: inline-flex; margin-top: 18px; }
@media (max-width: 760px) {
  .doctor-profile-grid { grid-template-columns: 1fr; }
  .doctor-profile-media { max-width: 460px; }
}
/* DOCTOR_PROFILE_PAGES_END */
/* TEAM_DOCTOR_PROFILE_LINK_START */
.team-doctor-profile-link {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.team-doctor-profile-link:hover,
.team-doctor-profile-link:focus-visible {
  background: #fff;
  color: var(--color-primary-700);
  transform: translateY(-1px);
  outline: none;
}
.team-doctor-card:not(.is-active) .team-doctor-profile-link {
  pointer-events: none;
}
@media (max-width: 700px) {
  .team-doctor-profile-link { margin-top: 11px; padding: 8px 11px; font-size: 11px; }
}
/* TEAM_DOCTOR_PROFILE_LINK_END */
/* SUPPORT_TEAM_START */
.support-team { background: var(--color-bg); }
.support-team-intro { max-width: 560px; margin: 0 auto 32px; color: var(--color-ink-soft); text-align: center; }
.support-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.support-team-card { position: relative; min-height: 260px; overflow: hidden; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-primary-100); box-shadow: var(--shadow-sm); }
.support-team-photo { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 260px; background: linear-gradient(145deg, var(--color-primary-100), var(--color-secondary-100)); }
.support-team-photo span { padding: 8px 12px; border: 1px solid var(--color-secondary-300); border-radius: 999px; color: var(--color-secondary); font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.support-team-info { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.85); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(31,41,51,.12); text-align: center; }
.support-team-info h3 { margin: 0 0 3px; color: var(--color-ink); font-size: 16px; }
.support-team-info p { margin: 0; color: var(--color-secondary); font-size: 12px; line-height: 1.35; }
@media (max-width: 800px) { .support-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .support-team-grid { grid-template-columns: 1fr; } .support-team-card, .support-team-photo { min-height: 300px; } }
/* SUPPORT_TEAM_END */

/* TEAM_HEADING_SPACING_START */
.team-doctors-subtitle { margin-bottom: 8px; }
.support-team #support-team-title { margin-bottom: 38px; }
/* TEAM_HEADING_SPACING_END */
