/* ============================================
   Clínica Dr. Camilo Bernal — Brand System
   Crema · Negro · Lila
   ============================================ */
:root {
  --cream: #FAF6F1;
  --cream-warm: #F5EFE6;
  --cream-deep: #EDE4D8;
  --wine: #1C1A1B;
  --wine-dark: #0F0E0E;
  --wine-light: #3C383A;
  --wine-glow: rgba(28, 26, 27, 0.12);
  --lilac: #A894C4;
  --lilac-light: #E8E0F2;
  --lilac-dark: #7A6898;
  --lilac-muted: #C9BBDA;
  --text: #2A1E24;
  --text-secondary: #4A3D44;
  --text-muted: #7A6E75;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 12px rgba(15, 14, 14, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 14, 14, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 14, 14, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 80px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--wine-light); }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.container-wide {
  width: min(1400px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-screen {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vh, 4rem) 0;
}

.section-compact {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--lilac);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--wine-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(250, 246, 241, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(168, 148, 196, 0.15);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
  flex-shrink: 0;
  gap: 0.15rem;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--wine-dark);
  letter-spacing: 0.01em;
}

.logo-tag {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--lilac-dark);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.75rem);
  flex-wrap: nowrap;
}

.nav-desktop a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
}

.nav-desktop a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wine);
  transition: width var(--transition);
}

.nav-desktop a:not(.btn):hover::after,
.nav-desktop a:not(.btn).active::after { width: 100%; }

.nav-desktop a:not(.btn):hover { color: var(--wine); }

.nav-desktop .nav-cta,
.nav-desktop a.btn-primary {
  flex-shrink: 0;
  padding: 0.6rem 1.35rem;
  font-size: 0.82rem;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark)) !important;
  box-shadow: 0 4px 16px var(--wine-glow);
  white-space: nowrap;
}

.nav-desktop .nav-cta::after,
.nav-desktop a.btn-primary::after { display: none !important; }

.nav-desktop .nav-cta:hover,
.nav-desktop a.btn-primary:hover {
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: var(--white);
  box-shadow: 0 4px 20px var(--wine-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28, 26, 27, 0.25);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--wine);
  border: 1.5px solid var(--wine);
}

.btn-outline:hover {
  background: var(--wine);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--white) !important;
  border: none;
  margin-top: auto;
}

.btn-sm:hover {
  background: var(--wine-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.link-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wine-dark);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.nav-mobile.open { transform: translateX(0); }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--wine-dark);
  border-bottom: 1px solid var(--cream-deep);
  padding-bottom: 0.75rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg-img {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  /* Consultorio: silla + mesa de instrumental al centro */
  object-position: center 42%;
  /* Blur sutil — la foto base va nítida */
  filter: blur(1.5px) saturate(0.96) brightness(1.03);
  transform: scale(1.03);
}

.hero-bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(250, 246, 241, 0.78) 0%,
    rgba(250, 246, 241, 0.48) 40%,
    rgba(250, 246, 241, 0.18) 65%,
    rgba(250, 246, 241, 0.06) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { animation: fadeUp 1s ease both; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--lilac-light);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lilac-dark);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--wine-dark);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--wine);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--wine);
  line-height: 1;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  min-height: 480px;
  animation: fadeUp 1s 0.2s ease both;
  perspective: 1100px;
  overflow: visible;
}

.hero-doctor-stage {
  position: relative;
  width: min(100%, 560px);
  height: min(86vh, 780px);
  margin-bottom: -2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 2;
}

.hero-doctor-aura {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 78%;
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 70%, rgba(168, 148, 196, 0.35) 0%, rgba(168, 148, 196, 0.08) 45%, transparent 72%),
    radial-gradient(ellipse at 50% 100%, rgba(28, 26, 27, 0.18) 0%, transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: heroAuraPulse 6s ease-in-out infinite;
}

.hero-doctor-figure {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: 50% 100%;
  transform: translateZ(40px) rotateY(-10deg);
  filter:
    drop-shadow(0 32px 52px rgba(15, 14, 14, 0.42))
    drop-shadow(16px 12px 40px rgba(122, 104, 152, 0.22))
    drop-shadow(-8px 4px 20px rgba(28, 26, 27, 0.12));
  animation: heroDoctorFloat 7s ease-in-out infinite;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

.hero-doctor-floor {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 62%;
  height: 36px;
  transform: translateX(-50%) rotateX(68deg);
  background: radial-gradient(ellipse at center, rgba(15, 14, 14, 0.42) 0%, rgba(15, 14, 14, 0.12) 55%, transparent 72%);
  filter: blur(6px);
  z-index: 1;
  animation: heroFloorPulse 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroDoctorFloat {
  0%, 100% {
    transform: translate3d(0, 0, 40px) rotateY(-10deg) rotateX(2deg) scale(1);
  }
  40% {
    transform: translate3d(0, -16px, 56px) rotateY(6deg) rotateX(0deg) scale(1.025);
  }
  70% {
    transform: translate3d(0, -8px, 48px) rotateY(-4deg) rotateX(1deg) scale(1.01);
  }
}

@keyframes heroFloorPulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) rotateX(68deg) scaleX(1); }
  40% { opacity: 0.45; transform: translateX(-50%) rotateX(68deg) scaleX(0.88); }
  70% { opacity: 0.6; transform: translateX(-50%) rotateX(68deg) scaleX(0.94); }
}

@keyframes heroAuraPulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-doctor-figure,
  .hero-doctor-floor,
  .hero-doctor-aura {
    animation: none;
  }
  .hero-doctor-figure {
    transform: translateZ(24px) rotateY(-6deg);
  }
}

.hero-float-card {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  z-index: 3;
  border-left: none;
  border-top: 3px solid var(--wine);
}

.hero-float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wine-dark);
}

.hero-float-card span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

/* ===== NOSOTROS ===== */
.nosotros { background: var(--white); }

.section-head-compact { margin-bottom: 2rem; }

.nosotros-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.nosotros-col {
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(168, 148, 196, 0.15);
  border-top: 3px solid var(--lilac-muted);
  display: flex;
  flex-direction: column;
}

.nosotros-col h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wine-dark);
  margin-bottom: 0.6rem;
}

.nosotros-col p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.nosotros-col-compromiso {
  background: linear-gradient(150deg, var(--lilac-light), var(--cream-warm));
  border-top-color: var(--wine);
}

.commitment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.commitment-chips span {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--white);
  border: 1px solid rgba(28, 26, 27, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--wine);
  line-height: 1.3;
}

.commitment-list.compact li {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.doctor-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  border-radius: var(--radius-md);
  color: var(--cream);
}

.doctor-silhouette {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cream);
  overflow: hidden;
  padding: 0;
}

.doctor-silhouette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(1.15);
}

.doctor-strip-body {
  flex: 1;
  min-width: 0;
}

.doctor-strip h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.doctor-strip p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.doctor-creds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.doctor-cred {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), transform var(--transition);
}

.doctor-cred:hover {
  background: rgba(255,255,255,0.18);
  color: var(--cream);
  transform: translateY(-1px);
}

.doctor-cred img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctor-cred span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.92;
}

.doctor-strip-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.doctor-strip .btn-primary {
  background: var(--cream) !important;
  color: var(--wine-dark) !important;
  box-shadow: none;
}

.doctor-strip .btn-primary:hover {
  background: var(--white) !important;
  color: var(--wine-dark) !important;
}

.doctor-strip .btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.35);
  text-align: center;
}

.doctor-strip .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--cream);
}

.nosotros-grid { display: none; }
.doctor-card { display: none; }

.commitment-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.commitment-list li::before {
  content: '✦';
  color: var(--wine);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--cream-warm); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.service-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.service-compact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(168, 148, 196, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
  transition: all var(--transition);
}

.service-compact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--lilac-muted);
}

.service-compact-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wine);
}

.service-compact-card ul {
  list-style: none;
  flex: 1;
}

.service-compact-card li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.service-compact-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wine);
  font-size: 0.7rem;
}

.servicios-page-inner { padding-top: 0; }
.servicios-page .service-card { scroll-margin-top: calc(var(--header-h) + 1rem); }
.servicios-page .service-card h4,
.servicios-page .service-subgroup h5 { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ===== SERVICIOS CARRUSEL ===== */
.service-stage {
  margin-top: 1.5rem;
  overflow: visible;
  position: relative;
}

.service-stage .service-category {
  height: 480px;
}

.service-marquee {
  height: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.service-marquee.is-manual {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.service-marquee.is-manual::-webkit-scrollbar { display: none; }

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: stretch;
  animation: marquee-scroll 45s linear infinite;
  padding: 0.5rem 0 1rem;
}

.service-marquee:hover .marquee-track,
.service-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.service-marquee.is-manual .marquee-track {
  animation: none;
  transform: none;
}

.marquee-set {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
  height: 100%;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.service-stage-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-shrink: 0;
}

.svc-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--lilac-muted);
  background: var(--white);
  color: var(--wine-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.svc-nav:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.service-photo-card {
  width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168, 148, 196, 0.14);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.service-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.service-photo-card img {
  width: 100%;
  height: 55%;
  object-fit: cover;
  flex-shrink: 0;
}

.spc-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.spc-body h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--wine-dark);
}

.spc-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.spc-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: 0.02em;
}

.service-photo-card:hover .spc-cta { color: var(--wine-light); }

.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.service-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--lilac-muted);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.service-tab:hover,
.service-tab.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.service-category { display: none; }
.service-category.active { display: block; }

.service-group-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--wine-dark);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--lilac-light);
}

.service-cards {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168, 148, 196, 0.12);
  transition: all var(--transition);
}

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

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--wine);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.service-card p:last-child { margin-bottom: 0; }

.service-subgroup {
  margin-bottom: 2.5rem;
}

.service-subgroup h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  margin-bottom: 1.25rem;
}

/* ===== ANTES Y DESPUÉS ===== */
.antes-despues {
  background: var(--wine-dark);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.antes-despues .section-label { color: var(--lilac-muted); }
.antes-despues .section-label::before { background: var(--lilac-muted); }
.antes-despues .section-title { color: var(--cream); }

.ba-section-header {
  padding: 0 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 92vw;
}

.ba-track-wrap {
  position: relative;
  width: 100%;
}

.ba-track {
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem) 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ba-track::-webkit-scrollbar { display: none; }

.ba-slide {
  flex: 0 0 min(78vw, 860px);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 0;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  border-radius: var(--radius-lg);
  background: #1a0c10;
}

@media (min-width: 1024px) {
  .ba-slider {
    min-height: min(46vh, 440px);
  }
}

.ba-slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 2.5rem 2rem 1.75rem;
  background: linear-gradient(0deg, rgba(20,8,12,0.85) 0%, rgba(20,8,12,0.4) 55%, transparent 100%);
  pointer-events: none;
}

.ba-slide-title h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.ba-slide-title span {
  font-size: 0.85rem;
  color: var(--lilac-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-track-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ba-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(250,246,241,0.3);
  background: rgba(250,246,241,0.08);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.ba-nav:hover {
  background: var(--cream);
  color: var(--wine-dark);
  border-color: var(--cream);
}

.antes-despues .ba-hint {
  color: rgba(250,246,241,0.5);
  margin-top: 0.75rem;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.ba-grid { display: none; }
.ba-item { display: none; }
.ba-item-header { display: none; }

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

.ba-slider .ba-after {
  z-index: 1;
}

.ba-slider .ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

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

.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--wine);
  box-shadow: var(--shadow-md);
}

.ba-handle::after {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  letter-spacing: -2px;
  color: var(--wine);
  white-space: nowrap;
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(42, 30, 36, 0.7);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 4;
}

.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

.ba-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== POR QUÉ ELEGIRNOS — asimétrico oscuro ===== */
.por-que {
  background: linear-gradient(160deg, #141213 0%, var(--wine-dark) 55%, #241F21 100%);
  color: var(--cream);
}

.por-que-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 4rem);
}

.por-que-asym {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1rem;
  grid-template-areas:
    "intro intro a b"
    "intro intro e b"
    "c     d     e f";
}

.pq-intro { grid-area: intro; padding-right: 2rem; align-self: center; }
.pq-a { grid-area: a; }
.pq-b { grid-area: b; }
.pq-c { grid-area: c; }
.pq-d { grid-area: d; }
.pq-e { grid-area: e; }
.pq-f { grid-area: f; }

.pq-intro .section-label { color: var(--lilac-muted); }
.pq-intro .section-label::before { background: var(--lilac-muted); }

.pq-intro .section-title {
  color: var(--cream);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-bottom: 1rem;
}

.pq-intro p {
  color: rgba(250, 246, 241, 0.75);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 460px;
}

.por-que-card {
  background: rgba(250, 246, 241, 0.06);
  border: 1px solid rgba(250, 246, 241, 0.14);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.por-que-card:hover {
  transform: translateY(-4px);
  background: rgba(250, 246, 241, 0.11);
  border-color: var(--lilac-muted);
}

.por-que-card.pq-accent {
  background: var(--cream);
  border-color: var(--cream);
}

.por-que-card.pq-accent h4 { color: var(--wine-dark); }
.por-que-card.pq-accent p { color: var(--text-secondary); }
.por-que-card.pq-accent .pq-num { color: var(--wine); }

.por-que-card.pq-lilac {
  background: linear-gradient(150deg, var(--lilac-dark), var(--lilac));
  border-color: var(--lilac);
}

.por-que-card.pq-lilac h4 { color: var(--white); }
.por-que-card.pq-lilac p { color: rgba(255,255,255,0.88); }
.por-que-card.pq-lilac .pq-num { color: rgba(255,255,255,0.55); }

.pq-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--lilac-muted);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.por-que-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.por-que-card p {
  font-size: 0.85rem;
  color: rgba(250, 246, 241, 0.72);
  line-height: 1.6;
}

.por-que-intro { display: none; }
.por-que-grid-3x3 { display: grid; }

/* ===== TESTIMONIOS ===== */
.testimonios { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--lilac-muted);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--wine-dark);
  font-size: 0.9rem;
}

.testimonial-treatment {
  font-size: 0.8rem;
  color: var(--lilac-dark);
}

/* ===== FAQ ===== */
.faq { background: var(--cream); }

.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--wine-dark);
  margin: 1rem 0 1rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-deep);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--wine); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lilac-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--wine);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* ===== CONTACTO ===== */
.contacto {
  background: linear-gradient(135deg, var(--lilac-light) 0%, var(--cream) 50%, var(--cream-warm) 100%);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100%;
}

.contact-info-top {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--wine-dark);
  margin-bottom: 0.75rem;
}

.contact-lead {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.contact-detail:last-child { margin-bottom: 0; }

.contact-detail span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-map {
  margin: 0 0 0.35rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  border: 1px solid rgba(168, 148, 196, 0.18);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 200px;
  height: 100%;
  border: 0;
  filter: grayscale(0.12) contrast(1.02);
}

.contact-map-link {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine);
  background: var(--cream);
  border-top: 1px solid rgba(168, 148, 196, 0.15);
  flex-shrink: 0;
}

.contact-map-link:hover { color: var(--lilac-dark); }

.contact-info-meta {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.25rem;
}

.contact-info-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.contact-info-meta a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.contact-form .form-group-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  min-height: 140px;
}

.contact-form .form-group-message textarea {
  flex: 1;
  min-height: 120px;
  resize: vertical;
}

.contact-form-submit {
  width: 100%;
  margin-top: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lilac);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: var(--wine-dark);
  color: rgba(250, 246, 241, 0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-name { color: var(--cream); font-size: 1.5rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 1rem; line-height: 1.7; }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(250, 246, 241, 0.7);
  margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(250, 246, 241, 0.5);
}

.footer-bottom a {
  color: var(--lilac-muted);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--cream); }

.footer-credit-link {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(
    110deg,
    var(--lilac) 0%,
    var(--lilac-light) 28%,
    #faf8fc 48%,
    var(--lilac-light) 62%,
    var(--lilac-muted) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: credit-shimmer 4.5s ease-in-out infinite;
}

.footer-credit-link:hover {
  animation-duration: 2.2s;
}

@keyframes credit-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  min-height: 80vh;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--wine-dark);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--wine);
  margin: 2rem 0 1rem;
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--lilac-light);
  object-fit: cover;
  width: 100%;
}

.blog-card-body { padding: 1.5rem; }

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--wine-dark);
  margin-bottom: 0.5rem;
}

.blog-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .nav-desktop { gap: 0.9rem; }
  .nav-desktop a:not(.btn) { font-size: 0.8rem; }
}

@media (max-width: 1100px) {
  .nosotros-columns { grid-template-columns: repeat(2, 1fr); }
  .por-que-asym {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "intro intro"
      "a b"
      "c d"
      "e f";
  }
  .pq-intro { padding-right: 0; padding-bottom: 1rem; }
}

@media (max-width: 1280px) and (min-width: 769px) {
  .nav-desktop a[href="#testimonios"],
  .nav-desktop a[href="blog.html"] { display: none; }
}

@media (max-width: 1080px) and (min-width: 769px) {
  .nav-desktop a[href="#faq"],
  .nav-desktop a[href="#por-que"] { display: none; }
}

@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }
  .hero-grid,
  .contacto-grid { grid-template-columns: 1fr; }
  .contacto-grid { align-items: start; }
  .contact-info,
  .contact-form { height: auto; min-height: 0; }
  .contact-map { flex: none; min-height: 0; }
  .contact-map iframe { height: 220px; flex: none; }
  .contact-form .form-group-message { flex: none; min-height: 0; }
  .hero-grid {
    gap: 1.25rem;
    padding-block: 1rem 0.5rem;
    align-items: start;
  }
  .hero-visual {
    order: -1;
    width: 100%;
    max-width: min(420px, 88vw);
    margin: 0 auto;
    min-height: 0;
    height: auto;
  }
  .hero-doctor-stage {
    width: 100%;
    height: clamp(280px, 48svh, 420px);
  }
  .hero-float-card {
    position: static;
    margin: 0.6rem auto 0;
    max-width: 220px;
    left: auto;
    right: auto;
    align-items: center;
    text-align: center;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-strip { flex-wrap: wrap; }
  .doctor-strip-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
  }
  .doctor-strip-actions .btn { flex: 1; }
  .doctor-cred span { display: none; }
  .ba-slide { flex: 0 0 84vw; }
  .ba-track { gap: 1.75rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  .logo-name { font-size: 1.3rem; }
  .logo-tag { font-size: 0.62rem; letter-spacing: 0.02em; max-width: 72vw; }
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.75rem; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .nosotros-columns { grid-template-columns: 1fr; }
  .por-que-asym {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "a" "b" "c" "d" "e" "f";
  }
  .section-screen { min-height: auto; }
  .ba-track {
    gap: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .ba-slide {
    flex: 0 0 calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }
  .ba-slider {
    aspect-ratio: 3 / 2;
    min-height: 0;
    height: auto;
  }
  .ba-slider img {
    object-fit: contain;
    object-position: center center;
  }
  .ba-slide-title {
    padding: 1.75rem 1rem 1.1rem;
  }
  .ba-slide-title h3 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }
  .service-stage .service-category { height: 420px; }
  .service-photo-card { width: 260px; }
  .faq-columns { grid-template-columns: 1fr; gap: 0; }

  /* Carrusel de servicios deslizable con el dedo */
  .service-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 1rem;
  }
  .service-marquee .marquee-track {
    animation: none;
    transform: none;
  }
  .marquee-set:nth-child(2) { display: none; }
  .service-photo-card { scroll-snap-align: center; }
  .service-stage-controls { margin-top: 0.75rem; }

  /* Etiqueta Antes/Después dinámica */
  .ba-label-after { display: none; }
  .ba-slider.mostly-after .ba-label-before { display: none; }
  .ba-slider.mostly-after .ba-label-after { display: inline-block; left: 1rem; right: auto; }

  /* Hero móvil: foto + texto completo, sin recortes */
  .hero {
    min-height: auto;
    padding-bottom: 2.25rem;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-desc { max-width: 28rem; }
  .hero-actions { justify-content: center; margin-bottom: 1.35rem; }
  .hero-visual {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    max-width: min(380px, 86vw);
  }
  .hero-doctor-stage {
    height: clamp(260px, 44svh, 360px);
  }
  .hero-doctor-figure {
    animation: heroDoctorFloatMobile 8s ease-in-out infinite;
  }
  .hero-float-card {
    position: static;
    margin: 0.55rem auto 0.25rem;
    max-width: 220px;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-left: none;
    border-top: 2px solid var(--wine);
    gap: 0.1rem;
    box-shadow: var(--shadow-sm);
    align-items: center;
    text-align: center;
  }
  .hero-float-card strong { font-size: 0.9rem; }
  .hero-float-card span { font-size: 0.68rem; line-height: 1.4; }
  .hero-bg-img {
    object-position: center 38%;
  }
  .hero-bg-veil {
    background: linear-gradient(180deg,
      rgba(250, 246, 241, 0.68) 0%,
      rgba(250, 246, 241, 0.38) 50%,
      rgba(250, 246, 241, 0.2) 100%);
  }
  .stat-num { font-size: 2rem; }
}

@keyframes heroDoctorFloatMobile {
  0%, 100% { transform: translate3d(0, 0, 20px) rotateY(-4deg) scale(1); }
  50% { transform: translate3d(0, -6px, 28px) rotateY(4deg) scale(1.015); }
}

/* ===== PÁGINA DE SERVICIO ===== */
.sp-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--header-h);
}

.sp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,9,9,0.88) 0%, rgba(10,9,9,0.35) 55%, rgba(10,9,9,0.15) 100%);
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 3.5rem;
}

.sp-crumb {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.sp-crumb a { color: var(--lilac-muted); }
.sp-crumb a:hover { color: var(--cream); }

.sp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.08;
  max-width: 800px;
}

.sp-hero .sp-tagline {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: rgba(250,246,241,0.85);
  max-width: 620px;
}

.sp-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.sp-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--wine-dark);
  margin: 2rem 0 0.75rem;
}

.sp-content h2:first-child { margin-top: 0; }

.sp-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.sp-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168,148,196,0.15);
}

.sp-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--wine-dark);
  margin-bottom: 0.75rem;
}

.sp-card ul { list-style: none; }

.sp-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--cream-deep);
}

.sp-card li:last-child { border-bottom: none; }

.sp-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--wine);
  font-size: 0.7rem;
  top: 0.55rem;
}

.sp-cta-card {
  background: linear-gradient(150deg, var(--wine-dark), var(--wine));
  color: var(--cream);
  border: none;
}

.sp-cta-card h3 { color: var(--cream); }
.sp-cta-card p { font-size: 0.875rem; color: rgba(250,246,241,0.8); margin-bottom: 1.25rem; }

.sp-cta-card .btn {
  background: var(--cream);
  color: var(--wine-dark);
  width: 100%;
}

.sp-cta-card .btn:hover { background: var(--white); color: var(--wine-dark); }

.sp-others {
  background: var(--cream-warm);
  padding: clamp(3rem, 6vw, 4rem) 0;
}

.sp-others h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--wine-dark);
  margin-bottom: 1.5rem;
}

.sp-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sp-other-link {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wine-dark);
  border: 1px solid rgba(168,148,196,0.15);
  transition: all var(--transition);
}

.sp-other-link:hover {
  border-color: var(--wine);
  color: var(--wine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 968px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-aside { position: static; }
  .sp-hero { min-height: 48vh; }
}


/* ===== FLOATING SOCIAL + LANGUAGE ===== */
.float-stack {
  position: fixed;
  right: 1.1rem;
  bottom: 4.6rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease;
  border: 2px solid rgba(255,255,255,0.22);
}

.float-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.float-btn:hover,
.float-btn:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 36px rgba(0,0,0,0.34);
  color: #fff;
  outline: none;
}

.float-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.float-btn-wa {
  background: linear-gradient(145deg, #25D366, #128C7E);
}

.float-btn-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.float-btn-tt {
  background: linear-gradient(145deg, #111111, #2a2a2a);
  position: relative;
}

.float-btn-tt svg {
  filter: drop-shadow(1.5px 0 0 #25F4EE) drop-shadow(-1.5px 0 0 #FE2C55);
}

.lang-switch {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1000;
  display: inline-flex;
  background: rgba(42, 31, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: #f4ebe3;
  font-family: var(--font-body, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button.active {
  background: #fff;
  color: #4a1f2b;
}

/* ===== EL DOCTOR PAGE ===== */
.doctor-page {
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
}

.doctor-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.doctor-page-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--wine-dark), var(--wine-light));
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.doctor-page-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doctor-page-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  margin-bottom: 0.75rem;
}

.doctor-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--wine-dark);
  margin-bottom: 0.75rem;
}

.doctor-page-role {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.doctor-page-bio {
  display: grid;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 40rem;
}

.doctor-page-bio p strong {
  color: var(--wine-dark);
  font-weight: 600;
}

.doctor-page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.doctor-mosaic-head {
  margin-bottom: 1.5rem;
}

.doctor-mosaic-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--wine-dark);
  margin-bottom: 0.4rem;
}

.doctor-mosaic-head p {
  color: var(--text-muted);
  max-width: 36rem;
}

.doctor-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.doctor-cert {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid rgba(28, 26, 27, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.doctor-cert:nth-child(4),
.doctor-cert:nth-child(5) {
  grid-column: span 3;
}

.doctor-cert:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doctor-cert-visual {
  background: linear-gradient(160deg, var(--cream), var(--cream-deep));
  padding: 0.85rem;
  border-bottom: 1px solid rgba(28, 26, 27, 0.06);
}

.doctor-cert-visual img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.doctor-cert-body {
  padding: 1rem 1.1rem 1.2rem;
}

.doctor-cert-body .cred-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 0.55rem;
}

.doctor-cert-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--wine-dark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.doctor-cert-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .doctor-page-hero {
    grid-template-columns: 1fr;
  }
  .doctor-page-portrait {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
  }
  .doctor-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .doctor-cert,
  .doctor-cert:nth-child(4),
  .doctor-cert:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .float-stack {
    right: 0.75rem;
    bottom: 4.2rem;
    gap: 0.55rem;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
  .float-btn svg {
    width: 23px;
    height: 23px;
  }
  .lang-switch { right: 0.75rem; bottom: 0.75rem; }
  .doctor-mosaic {
    grid-template-columns: 1fr;
  }
}
