/* ============================================================================
 * ESTILOS — Plantilla Premium PDE Odontología
 * ============================================================================
 * Este archivo NO se edita al adaptar a un cliente.
 * Para cambiar colores: css/tokens.css
 * Para cambiar contenido: js/config.js
 * Para cambiar imágenes: assets/
 * ============================================================================ */

/* ── Reset + Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

html.smooth-scroll {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── Tipografía fluid ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  line-height: 1.7;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 2.5rem;
  }
}

/* ── Section base ──────────────────────────────────────────────── */
section {
  position: relative;
  overflow: hidden;
}

.section-padding {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-block: 8.5rem;
  }
}

/* ── Section headings ──────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-600);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--text);
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 0.875rem 2rem;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-fast);
  background: rgba(255, 255, 255, 0.15);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-whatsapp {
  background: #128C7E;
  /* WhatsApp dark green — mejor contraste que #25D366 */
  color: #fff;
  box-shadow: var(--shadow-btn-whatsapp);
  text-shadow: none;
}

.btn-whatsapp:hover {
  background: #0d6e63;
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.45);
  transform: translateY(-1px);
}

/* Footer CTA con fondo aún más oscuro para máximo contraste WCAG AAA */
.footer .btn-whatsapp {
  background: #0d6e63;
}

.footer .btn-whatsapp:hover {
  background: #0a5a51;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 75, 165, 0.3);
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--brand-600);
  color: var(--brand-600);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(107, 106, 106, 0.3);
}

.btn-accent:hover {
  background: var(--accent-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ── Icon inline ───────────────────────────────────────────────── */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ============================================================================
 * HEADER
 * ============================================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-bottom: none;
}

/* Top Bar */
.header-top {
  background: var(--brand-600);
  color: #fff;
  font-size: 0.8125rem;
  transition: all var(--duration-normal) var(--ease-out);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.5rem;
}

.header-top-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.info-item svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent-400);
}

.info-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.header-top-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-top-social a {
  color: var(--brand-300);
  transition: color var(--duration-fast);
  display: flex;
}

.header-top-social a:hover {
  color: var(--accent-300);
}

.header-top-social svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 767px) {
  .header-top {
    display: none;
  }
}

/* Main Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.3rem;
  transition: padding var(--duration-normal) var(--ease-out);
}

.header.scrolled .header-inner {
  padding-block: 0rem;
}

/* CTA del header un poco más grande */
.header-cta.btn-sm {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--brand-800);
  transition: opacity var(--duration-fast);
}

/* Logo imagen (completo: isotipo + nombre + tagline) — header */
.logo-img {
  border-radius: var(--radius-md);
  object-fit: contain;
  background: transparent;
  padding: 4px;
}

/* Logo completo apaisado (verde + texto + tagline) */
.logo-full {
  height: 6rem;
  width: auto;
  max-width: 320px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* Estado no-scrolled: logo flotante transparente sin fondo blanco */
.header:not(.scrolled) .logo-full {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.15));
}

@media (max-width: 480px) {
  .logo-full {
    height: 4rem;
    max-width: 240px;
  }
}

.header:not(.scrolled) .header-logo {
  color: #ffffff;
}

.header-logo:hover {
  opacity: 0.85;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 75, 165, 0.3);
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--duration-fast);
  position: relative;
}

.header:not(.scrolled) .header-nav a {
  color: var(--brand-900);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-500);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

.header-nav a:hover {
  color: var(--brand-600);
}

.header:not(.scrolled) .header-nav a:hover {
  color: var(--brand-600);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  color: var(--brand-700);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.header:not(.scrolled) .mobile-toggle {
  color: var(--brand-900);
}

.mobile-toggle:hover {
  background: var(--brand-50);
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .mobile-toggle {
    display: none;
  }
}

/* ── Mobile menu ───────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 380px);
  height: 100vh;
  background: #fff;
  z-index: 200;
  padding: 2rem 1.5rem;
  transition: right var(--duration-slow) var(--ease-out);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  align-self: flex-end;
  margin-bottom: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.mobile-menu-close:hover {
  background: var(--brand-50);
  color: var(--brand-600);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mobile-menu nav a {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--duration-fast);
}

.mobile-menu nav a:hover {
  background: var(--brand-50);
  color: var(--brand-600);
}

.mobile-menu .btn {
  margin-top: auto;
}

/* ============================================================================
 * HERO
 * ============================================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-main {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

/* ── Imagen de fondo a pantalla completa ────────────────────────── */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

/* Overlay para legibilidad — gradiente blanca superior para proteger el logo oscuro */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.7) 15%,
      rgba(255, 255, 255, 0) 35%),
    linear-gradient(105deg,
      rgba(0, 30, 70, 0.65) 0%,
      rgba(0, 30, 70, 0.45) 35%,
      rgba(0, 30, 70, 0.15) 60%,
      rgba(0, 30, 70, 0) 100%);
}

@media (max-width: 768px) {
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 12%,
        rgba(255, 255, 255, 0) 25%),
      linear-gradient(180deg,
        rgba(0, 30, 70, 0.3) 25%,
        rgba(0, 30, 70, 0.65) 60%,
        rgba(0, 30, 70, 0.75) 100%);
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(85vh - 12rem);
}

/* ── Tarjeta de cristal (glassmorphism) ─────────────────────────── */
.hero-glass-card {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow:
    0 24px 64px rgba(0, 30, 70, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: fadeInScale 0.8s var(--ease-out) 0.15s both;
}

@media (min-width: 768px) {
  .hero-glass-card {
    padding: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero-glass-card {
    padding: 2rem 1.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge — adaptado para glass */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-600);
  backdrop-filter: blur(8px);
  border: 1px solid var(--brand-400);
  border-radius: var(--radius-full);
  padding: 0.375rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1.5rem;
  cursor: pointer;
  position: relative;
  animation: fadeInDown 0.6s var(--ease-out) both, badgePulse 2.4s ease-in-out 1s infinite;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 75, 165, 0.7);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 75, 165, 0);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 75, 165, 0);
    transform: scale(1);
  }
}

.hero-badge:hover {
  background: var(--brand-700);
  transform: scale(1.04);
  transition: background 0.2s, transform 0.2s;
}

.hero-badge .badge-icon {
  color: var(--accent-300);
  font-size: 1rem;
  line-height: 1;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent-300);
}

/* Título — texto blanco sobre glass */
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

/* Subrayado premium: gradient smooth + animación al cargar */
.hero-highlight {
  position: relative;
  color: var(--brand-600);
  font-style: italic;
  white-space: nowrap;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: -0.08em;
  left: 0;
  width: 100%;
  height: 0.12em;
  background: linear-gradient(90deg,
      rgba(0, 75, 165, 0) 0%,
      rgba(0, 75, 165, 0.65) 12%,
      rgba(0, 75, 165, 0.95) 50%,
      rgba(0, 75, 165, 0.65) 88%,
      rgba(0, 75, 165, 0) 100%);
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 1s var(--ease-out) 0.7s forwards;
}

@keyframes underlineGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-description {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  line-height: 1.65;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

/* Botón outline adaptado para glass (fondo transparente sobre tarjeta) */
.hero-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}

.trust-avatars {
  display: flex;
  align-items: center;
}

/* Trust avatars — sin superposición fea del "+N" */
.trust-avatars img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  margin-left: -0.875rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.trust-avatars img:first-child {
  margin-left: 0;
}

.trust-avatar-more {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

/* Trust text: sin truncation, mejor overflow en mobile */
.trust-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.trust-text .stars {
  color: #FBBC05;
  font-size: 0.875rem;
  letter-spacing: 2px;
  line-height: 1.2;
}

.trust-text span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Stats bar */
.hero-bottom {
  background: var(--surface);
  padding-bottom: 4rem;
}

.hero-stats {
  position: relative;
  z-index: 10;
  margin-top: -4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-600);
  line-height: 1;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Trust Logos */
.hero-trust-logos {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.trust-logos-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2rem;
}

.trust-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0.7;
  filter: grayscale(40%);
  transition: all var(--duration-normal);
}

.trust-logos-grid:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.trust-logo {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
}

.trust-logo span {
  font-weight: 800;
  color: var(--text);
}

@media (min-width: 1024px) {
  .hero-trust-logos {
    margin-top: 3rem;
  }
}

/* ============================================================================
 * WAVE DIVIDER
 * ============================================================================ */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-divider.flip svg {
  top: 0;
  bottom: auto;
  transform: rotate(180deg);
}

/* ============================================================================
 * SERVICES
 * ============================================================================ */
.services {
  background: var(--surface-muted);
  padding-top: 4rem;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  padding-top: 2.25rem;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-200);
}

.service-card.featured {
  border-color: var(--accent-300);
  background: linear-gradient(135deg, var(--accent-50) 0%, #fff 100%);
  box-shadow: var(--shadow-md);
}

.service-card .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  background: var(--accent-500);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(107, 106, 106, 0.3);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: all var(--duration-normal);
}

.service-card:hover .service-icon {
  background: var(--brand-600);
  color: #fff;
}

.service-card.featured .service-icon {
  background: var(--accent-100);
  color: var(--accent-500);
}

.service-card.featured:hover .service-icon {
  background: var(--accent-500);
  color: #fff;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.service-card .card-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-600);
  transition: gap var(--duration-normal);
}

.service-card:hover .card-link {
  gap: 0.5rem;
}

.service-card .card-link svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================================================
 * ABOUT
 * ============================================================================ */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image-col {
  position: relative;
  order: 2;
}

@media (min-width: 1024px) {
  .about-image-col {
    order: 1;
  }

  .about-content-col {
    order: 2;
  }
}

.about-image-wrapper {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-image-wrapper img {
    height: 540px;
  }
}

.about-experience-badge {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-2xl);
  text-align: center;
  border: 4px solid #fff;
}

@media (min-width: 768px) {
  .about-experience-badge {
    right: -1.5rem;
  }
}

.about-experience-badge .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-experience-badge .text {
  font-size: 0.6875rem;
  opacity: 0.85;
  line-height: 1.3;
  margin-top: 0.125rem;
}

.about-content-col .section-eyebrow {
  margin-bottom: 0.75rem;
}

.about-content-col h2 {
  margin-bottom: 1.25rem;
}

.about-description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-doctor-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--surface-soft);
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}

.about-doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-doctor-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-200);
}

.about-doctor-info {
  display: flex;
  flex-direction: column;
}

.about-doctor-info strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand-700);
}

.about-doctor-info span {
  font-size: 0.875rem;
  color: var(--accent-600);
  font-weight: 600;
}

.about-doctor-info .about-doctor-exp {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.35rem;
}

.about-team-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-300);
}

.differentials-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.differential-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  transition: all var(--duration-normal);
}

.differential-item:hover {
  background: var(--brand-50);
}

.differential-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-600);
  color: #fff;
  flex-shrink: 0;
}

.differential-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.differential-item h3 {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.differential-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================================
 * BEFORE / AFTER
 * ============================================================================ */
.before-after {
  background: var(--surface-muted);
}

.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ba-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--duration-normal);
  background: #fff;
  color: var(--text-muted);
}

.ba-tab:hover {
  background: var(--brand-50);
  color: var(--brand-600);
}

.ba-tab.active {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.ba-slider-wrapper {
  max-width: 720px;
  margin-inline: auto;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3/2;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

.ba-label.before {
  left: 1rem;
  background: var(--text);
}

.ba-label.after {
  right: 1rem;
  background: var(--brand-600);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
}

.ba-handle-circle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ba-info {
  text-align: center;
  margin-top: 1.25rem;
}

.ba-treatment-badge {
  display: inline-block;
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.ba-description {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================================
 * DOCTORS
 * ============================================================================ */
.doctors {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%);
  color: #fff;
}

.doctors .section-eyebrow {
  color: var(--accent-300);
}

.doctors .section-title {
  color: #fff;
}

.doctors .section-subtitle {
  color: var(--brand-200);
}

.doctors-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin-inline: auto;
  }
}

.doctor-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow-xl);
  transition: transform var(--duration-normal) var(--ease-out);
}

.doctor-card:hover {
  transform: translateY(-4px);
}

.doctor-card-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.doctor-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.doctor-card:hover .doctor-card-image img {
  transform: scale(1.03);
}

.doctor-card-body {
  padding: 1.25rem;
}

.doctor-card-body h3 {
  font-size: 1.125rem;
}

.doctor-card-body .specialty {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-600);
  margin-top: 0.25rem;
}

.doctor-card-body .credentials {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.doctor-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--brand-100);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.doctor-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.doctor-card-meta svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ============================================================================
 * FINANCING
 * ============================================================================ */
.financing {
  background: #fff;
}

.finance-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .finance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.finance-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  padding-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: visible;
}

.finance-card:hover {
  box-shadow: var(--shadow-lg);
}

.finance-card.highlighted {
  border-color: var(--accent-300);
  background: linear-gradient(180deg, var(--accent-50) 0%, #fff 100%);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
  .finance-card.highlighted {
    transform: translateY(-1rem);
  }
}

.finance-card .card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.finance-card.highlighted .card-badge {
  display: inline-flex;
  align-self: center;
  background: var(--accent-500);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  animation: badgeGlow 2s var(--ease-in-out) infinite;
}

.finance-card .amount {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brand-600);
}

.finance-card .period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.finance-card .card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.finance-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.finance-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.finance-features li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent-600);
}

.finance-footer-text {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.finance-footer-text a {
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.finance-footer-text a:hover {
  color: var(--accent-600);
}

/* ============================================================================
 * TESTIMONIALS
 * ============================================================================ */
.testimonials {
  background: var(--surface-muted);
}

.testimonial-container {
  max-width: 720px;
  margin-inline: auto;
}

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.testimonial-quote-icon {
  color: var(--accent-500);
  opacity: 0.6;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--accent-500);
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--accent-500);
}

.testimonial-text {
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

@media (min-width: 768px) {
  .testimonial-text {
    font-size: 1.1875rem;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-author .name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.testimonial-author .detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.testimonial-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  transition: all var(--duration-normal);
}

.testimonial-btn:hover {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}

.testimonial-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--brand-300);
  transition: all var(--duration-normal);
}

.testimonial-dot.active {
  width: 2rem;
  background: var(--brand-600);
}

.testimonial-progress {
  height: 3px;
  background: var(--brand-100);
  border-radius: var(--radius-full);
  margin-top: 1.5rem;
  overflow: hidden;
}

.testimonial-progress-bar {
  height: 100%;
  background: var(--brand-600);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 50ms linear;
}

/* ============================================================================
 * LOCATION
 * ============================================================================ */
.location {
  background: #fff;
}

.location-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.location-map {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 400px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card {
  background: var(--surface-muted);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.location-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.location-card-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-600);
}

.location-card-header h3 {
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.location-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hours-list li .time {
  font-weight: 600;
  color: var(--text);
}

.location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.location-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  color: #fff;
  transition: transform var(--duration-normal);
  text-decoration: none;
}

.location-action-card:hover {
  transform: scale(1.02);
}

.location-action-card.parking {
  background: var(--brand-600);
}

.location-action-card.phone {
  background: var(--accent-500);
  color: #ffffff;
}

.location-action-card.phone:hover {
  background: var(--accent-600);
}

.location-action-card svg {
  width: 1.25rem;
  height: 1.25rem;
}

.location-action-card .action-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.location-action-card .action-detail {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ============================================================================
 * CONTACT
 * ============================================================================ */
.contact {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%);
  color: #fff;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: -5%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--accent-500) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-left .section-eyebrow {
  color: var(--accent-300);
}

.contact-left h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.contact-left p {
  font-size: 1.0625rem;
  color: var(--brand-100);
  margin-bottom: 2rem;
}

.contact-left .free-label {
  font-weight: 700;
  color: var(--accent-300);
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: var(--text);
  box-shadow: var(--shadow-2xl);
}

.contact-form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.contact-form-card .form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-light);
}

.form-input-wrapper input,
.form-input-wrapper select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: all var(--duration-fast);
}

.form-input-wrapper select {
  padding-left: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.form-input-wrapper input:focus,
.form-input-wrapper select:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.form-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ============================================================================
 * FOOTER
 * ============================================================================ */
.footer {
  background: var(--brand-950);
  color: #fff;
  padding-block: 3.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal);
}

.footer-social a:hover {
  background: var(--accent-500);
  color: var(--text);
}

.footer-social a svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--accent-300);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.75rem;
}

.footer-contact li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent-300);
}

.footer-contact a {
  transition: color var(--duration-fast);
}

.footer-contact a:hover {
  color: var(--accent-300);
}

.footer-cta p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom .shield {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-bottom svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ============================================================================
 * FLOATING WHATSAPP
 * ============================================================================ */
.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--duration-normal) var(--ease-spring);
}

@media (min-width: 768px) {
  .floating-wa {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
  }
}

.floating-wa:hover {
  transform: scale(1.1);
}

.floating-wa svg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 768px) {
  .floating-wa svg {
    width: 2rem;
    height: 2rem;
  }
}

.floating-wa .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: #25D366;
  animation: pulse-ring 2s var(--ease-out) infinite;
}

/* ============================================================================
 * ANIMATIONS
 * ============================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Scroll reveal (applied by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.07s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.14s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.21s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.28s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.35s;
}

.stagger-children.visible>*:nth-child(7) {
  transition-delay: 0.42s;
}

.stagger-children.visible>*:nth-child(8) {
  transition-delay: 0.49s;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .stagger-children>* {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
 * V2 — ELEVACIONES PREMIUM (agregado en elevación a nivel top mundial)
 * ============================================================================ */

/* ── Mejoras tipográficas premium ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
.font-display {
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.025em;
}

.hero h1 {
  letter-spacing: -0.03em;
  font-weight: 600;
}

/* ── Hero: Mejor contraste y dramatismo ───────────────────────────────────── */
.hero-bg-image {
  transform-origin: center;
}

/* Parallax automático en hover (sutil) */
/* Trust logos controlado por config (ON/OFF). Default OCULTO. */
.hero-trust-logos {
  display: none;
}

.hero-trust-logos.show {
  display: block;
}

@media (min-width: 1024px) {
  .hero:hover .hero-bg-image {
    /* parallax sutil solo desktop */
  }
}

/* ── Hero Eyebrow — dorado premium con pulso sutil ─────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 75, 165, 0.18), rgba(0, 75, 165, 0.12));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 75, 165, 0.45);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--accent-300);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s var(--ease-out) both;
  text-transform: none;
  box-shadow: 0 2px 12px rgba(0, 75, 165, 0.15);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 0 rgba(0, 75, 165, 0.7);
  animation: eyebrowDotPulse 2.2s var(--ease-in-out) infinite;
  flex-shrink: 0;
}

@keyframes eyebrowDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 75, 165, 0.7);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(0, 75, 165, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 75, 165, 0);
  }
}

.hero-eyebrow strong {
  color: var(--accent-100);
  font-weight: 800;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 0.4375rem 0.9375rem;
  }
}

/* ── Glass card elevation ─────────────────────────────────────────────────── */
.hero-glass-card {
  position: relative;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Stats grid refinamiento ──────────────────────────────────────────────── */
.stats-grid {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(1.3);
}

.stat-item {
  padding: 0.5rem 0;
}

.stat-value {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Botón enhancements — ripple effect listo ─────────────────────────────── */
.btn {
  transform: translateZ(0);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-btn-primary), var(--focus-ring);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Service cards: hover más dramático ───────────────────────────────────── */
.service-card {
  border: 1px solid var(--brand-100);
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ── Sticky Mobile CTA Bar (aparece al hacer scroll profundo) ─────────────── */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky-cta);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(0, 40, 92, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 40, 92, 0.12);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-spring);
  display: flex;
  gap: 0.75rem;
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
}

.sticky-mobile-cta .btn {
  flex: 1;
  padding: 0.875rem 1rem;
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none;
  }
}

/* ── Scarcity badge (cupos disponibles) ───────────────────────────────────── */
.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  animation: scarcityPulse 2.5s var(--ease-out) infinite;
}

.scarcity-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes scarcityPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(107, 106, 106, 0.2);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(107, 106, 106, 0.1);
  }
}

/* ── Google Rating badge en header top ────────────────────────────────────── */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.google-rating-badge .stars {
  color: #fbbf24;
  letter-spacing: -0.05em;
}

/* ── Testimonial card elevación ──────────────────────────────────────────── */
.testimonial-card {
  border: 1px solid var(--brand-100);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 10rem;
  line-height: 1;
  color: var(--accent-100);
  pointer-events: none;
  font-weight: 700;
}

/* ── Finance card highlighted — gradient border ──────────────────────────── */
.finance-card.highlighted {
  position: relative;
}

.finance-card.highlighted::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Form focus refinado ─────────────────────────────────────────────────── */
.form-input-wrapper input:focus,
.form-input-wrapper select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100), var(--shadow-sm);
}

/* ── Mejoras en imagen de About ──────────────────────────────────────────── */
.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* ── Footer refinado ─────────────────────────────────────────────────────── */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-400), transparent);
}

/* ── Floating WhatsApp: versión mejorada ─────────────────────────────────── */
.floating-wa {
  background: linear-gradient(135deg, #25D366, #1ebe5d);
}

@media (max-width: 767px) {
  .floating-wa {
    bottom: calc(4.5rem + 0.75rem);
    /* Espacio para sticky CTA */
  }
}

/* ── Performance: reducir repaint en scroll ─────────────────────────────── */
.stats-grid,
.hero-glass-card,
.testimonial-card,
.finance-card {
  contain: layout style paint;
}

/* ── Sección de servicios con fondo dinámico ────────────────────────────── */
.services {
  background-image: radial-gradient(circle at 0% 0%, rgba(0, 75, 165, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(0, 75, 165, 0.04) 0%, transparent 40%);
}

/* ── Doctor card hover dramático ─────────────────────────────────────────── */
.doctor-card {
  transition: transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-out);
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* ── Mejor print / PDF-ready ────────────────────────────────────────────── */
@media print {

  .floating-wa,
  .sticky-mobile-cta,
  .mobile-menu,
  .header {
    display: none !important;
  }

  .hero-main {
    min-height: auto;
    padding: 2rem 0;
  }
}
/* ═══ Ajuste header/logo — visibilidad + tamaño (11-Sep, solicitud Jorge) ═══ */
:root { --logo-h: 3.3rem; --logo-h-m: 2.6rem; }
.header-logo .logo-icon { height: auto !important; width: auto !important; }
.header-logo .logo-icon img { height: var(--logo-h) !important; width: auto !important; }
@media (max-width: 768px) { .header-logo .logo-icon img { height: var(--logo-h-m) !important; } }
