/* ==========================================================================
   CLÍNICA DENTAL LIBE BERASATEGUI - DESIGN SYSTEM & LUXURY EDITORIAL CSS
   Odontología de autor y alta tecnología - Gernika-Lumo (Bizkaia)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette: Quiet Luxury / Organic Minerals */
  --bg-main: #FBFBFA;
  --bg-surface: #FFFFFF;
  --bg-warm: #F5F4EF;
  --bg-ivory: #FAF8F5;
  --bg-slate-dark: #121314;
  --bg-slate-card: #181A1B;

  --text-primary: #141517;
  --text-secondary: #585C62;
  --text-muted: #82878E;
  --text-inverse: #F8F9FA;

  --gold-accent: #B89258;
  --gold-hover: #9E7942;
  --gold-light: #D8B780;
  --gold-glow: rgba(184, 146, 88, 0.15);
  --gold-border: rgba(184, 146, 88, 0.28);

  --sage-accent: #6C7E6F;
  --sage-light: #EEF3EF;

  --border-hairline: rgba(20, 21, 23, 0.07);
  --border-light: rgba(20, 21, 23, 0.12);
  --glass-bg: rgba(251, 251, 250, 0.82);
  --glass-border: rgba(255, 255, 255, 0.65);

  --shadow-subtle: 0 4px 20px -2px rgba(20, 21, 23, 0.04);
  --shadow-card: 0 16px 36px -8px rgba(20, 21, 23, 0.06), 0 0 1px rgba(20, 21, 23, 0.08);
  --shadow-elevated: 0 24px 48px -12px rgba(20, 21, 23, 0.09), 0 0 1px rgba(184, 146, 88, 0.2);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --header-height: 118px;
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

.text-gold {
  color: var(--gold-accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  /* text-transform: sentence-case per GEMINI.md */
  letter-spacing: 0.18em;
  color: var(--gold-accent);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--gold-accent);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Luxury Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -6px rgba(20, 21, 23, 0.25);
}

.btn-primary:hover {
  background-color: var(--gold-accent);
  color: #FFFFFF;
  box-shadow: 0 12px 28px -6px rgba(184, 146, 88, 0.4);
  transform: translateY(-2px);
}

.btn-call {
  background: linear-gradient(135deg, #1C1E20 0%, #292C30 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25);
}

.btn-call:hover {
  background: linear-gradient(135deg, #B89258 0%, #A27D45 100%);
  color: #FFFFFF;
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--gold-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 22px -4px rgba(184, 146, 88, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(184, 146, 88, 0.5);
  filter: brightness(1.05);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  background-color: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   TOP BAR & NAVIGATION (Glassmorphism Sticky)
   ========================================================================== */
.top-announcement {
  background-color: var(--bg-slate-dark);
  color: #E2E4E8;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.top-info-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-info-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #B2B6BE;
  font-size: 0.78rem;
}

.top-info-link:hover {
  color: var(--gold-light);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-btn {
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: #B5B9BF;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background-color: var(--gold-accent);
  color: #FFFFFF;
}

.lang-btn:not(.active):hover {
  color: #FFFFFF;
}

/* Header Sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(20, 21, 23, 0.09);
  border: 1.5px solid rgba(184, 146, 88, 0.4);
  background-color: #FAF8F5;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.brand:hover .brand-logo-img {
  transform: scale(1.04);
  border-color: var(--gold-accent);
  box-shadow: 0 8px 22px rgba(184, 146, 88, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.05;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  /* text-transform: sentence-case per GEMINI.md */
  color: var(--gold-accent);
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.15vw, 1.4rem);
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--gold-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  background-color: var(--bg-warm);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone-cta span {
  white-space: nowrap;
  display: inline-block;
}

.header-phone-cta:hover {
  background-color: #FFFFFF;
  border-color: var(--gold-accent);
  color: var(--gold-hover);
}

.phone-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

.menu-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION (High-Impact & Immediate CRO)
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background: radial-gradient(circle at 80% 20%, rgba(245, 237, 224, 0.45) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(238, 243, 239, 0.5) 0%, transparent 60%),
              var(--bg-main);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.google-stars {
  display: flex;
  gap: 2px;
  color: #F8B84E;
}

.trust-text strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.trust-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Hero Media Showcase */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  aspect-ratio: 4 / 3;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual:hover .hero-image-frame img {
  transform: scale(1.03);
}

/* Floating Badges */
.floating-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.floating-card-1 {
  bottom: -1.25rem;
  left: -1.5rem;
}

.floating-card-2 {
  top: 1.5rem;
  right: -1rem;
}

.card-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--gold-glow);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-text-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.card-text-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NOVELTY SHOWCASE: SIGNATURE TREATMENTS
   (Prioritizing Aesthetic Dentistry & Invisible Orthodontics first)
   ========================================================================== */
.treatments-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-surface);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.treatment-card {
  background: var(--bg-main);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--gold-border);
}

.treatment-card.highlight {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
  border-color: var(--gold-border);
}

.treatment-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(20, 21, 23, 0.85);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  /* text-transform: sentence-case per GEMINI.md */
}

.treatment-badge.badge-gold {
  background: var(--gold-accent);
  color: #FFFFFF;
}

.treatment-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-warm);
}

.treatment-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.treatment-card:hover .treatment-img-box img {
  transform: scale(1.05);
}

.treatment-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.treatment-title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.treatment-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.treatment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.treatment-action {
  margin-top: 1rem;
}

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER SMILE GALLERY
   ========================================================================== */
.smile-gallery-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-warm);
  position: relative;
}

.ba-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.ba-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  user-select: none;
  cursor: ew-resize;
  background-color: #000;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.ba-before {
  z-index: 2;
  width: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.ba-before img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #FFFFFF;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.ba-tag {
  position: absolute;
  bottom: 1.25rem;
  z-index: 4;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  /* text-transform: sentence-case per GEMINI.md */
}

.ba-tag-before {
  left: 1.25rem;
}

.ba-tag-after {
  right: 1.25rem;
}

.ba-info-box {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}

.ba-case-title {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.ba-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-accent);
}

.ba-details-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.ba-details-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.check-icon {
  color: var(--gold-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   THE DOCTOR & HUMAN CONNECTION (El Método Libe Berasategui)
   ========================================================================== */
.doctor-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-surface);
  position: relative;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.doctor-media {
  position: relative;
}

.doctor-portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  aspect-ratio: 3 / 4;
}

.doctor-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-experience-tag {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--bg-slate-dark);
  color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.doctor-experience-tag strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}

.doctor-experience-tag span {
  font-size: 0.78rem;
  color: #B2B6BF;
  /* text-transform: sentence-case per GEMINI.md */
  letter-spacing: 0.05em;
}

.doctor-narrative h2 {
  margin-bottom: 1.25rem;
}

.doctor-narrative p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.method-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pillar-item {
  background-color: var(--bg-main);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.pillar-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   TECHNOLOGY & SANCTUARY (Instalaciones & Bienestar)
   ========================================================================== */
.sanctuary-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background: var(--bg-slate-dark);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.sanctuary-section h2, 
.sanctuary-section h3 {
  color: #FFFFFF;
}

.sanctuary-section p {
  color: #A0A5AE;
}

.sanctuary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.tech-feature-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.tech-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-accent);
}

.tech-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(184, 146, 88, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-feature-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.tech-feature-desc {
  font-size: 0.88rem;
  color: #9AA0AA;
  line-height: 1.55;
  margin: 0;
}

.sanctuary-images-stack {
  position: relative;
}

.sanctuary-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sanctuary-main-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ==========================================================================
   PATIENT TESTIMONIALS & TRUST (Social Proof)
   ========================================================================== */
.testimonials-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-main);
}

.reviews-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.55rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid rgba(248, 184, 78, 0.45);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-border);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  color: #F8B84E;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-warm);
  color: var(--gold-hover);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.author-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONVERSION & LOCATION SECTION (Direct Call & Smart Booking)
   ========================================================================== */
.booking-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-warm);
  position: relative;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-hairline);
}

.booking-direct-call {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #18191B 0%, #202326 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-direct-call h2, 
.booking-direct-call h3 {
  color: #FFFFFF;
}

.booking-direct-call p {
  color: #B5B9C2;
}

.direct-call-highlight {
  margin: 2.25rem 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.phone-large-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin: 0.5rem 0;
  transition: var(--transition-smooth);
}

.phone-large-link:hover {
  color: #FFFFFF;
  transform: scale(1.02);
}

.call-notice {
  font-size: 0.82rem;
  color: #9297A2;
}

.call-channels-row {
  display: flex;
  gap: 1rem;
}

/* Location & Practical Info */
.booking-location-info {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.location-item {
  display: flex;
  gap: 1rem;
}

.loc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-content strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.loc-content span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.map-embed-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  position: relative;
  background-color: var(--bg-warm);
  border: 1px solid var(--border-hairline);
}

.map-embed-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   FOOTER (Quiet Luxury & Legal Architecture)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-slate-dark);
  color: #989EA8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-title {
  color: #FFFFFF;
}

.footer-brand p {
  color: #8C929C;
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  /* text-transform: sentence-case per GEMINI.md */
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: #8C929C;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #6C727D;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   FLOATING CONTACT SUITE & MOBILE APP BAR
   ========================================================================== */
.floating-contact-suite {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.suite-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.floating-contact-suite.open .suite-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.suite-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-hairline);
  transition: var(--transition-smooth);
}

.suite-btn.whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.suite-btn.call-suite {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

.suite-btn:hover {
  transform: scale(1.04);
}

.suite-main-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--gold-hover) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(184, 146, 88, 0.45);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.suite-main-trigger:hover {
  transform: scale(1.06) rotate(5deg);
}

/* Mobile Bottom Bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-hairline);
  padding: 0.65rem 1rem;
  z-index: 950;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

/* ==========================================================================
   MODAL: QUICK APPOINTMENT ASSISTANT & TREATMENT DRAWER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 19, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

.modal-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background-color: var(--border-light);
  transition: var(--transition-smooth);
}

.step-dot.active {
  background-color: var(--gold-accent);
}

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

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-main);
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.treatment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-option {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-main);
  transition: var(--transition-smooth);
}

.chip-option.selected {
  background: var(--gold-accent);
  color: #FFFFFF;
  border-color: var(--gold-accent);
}

/* ==========================================================================
/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE-FIRST & SMARTPHONE OPTIMIZED)
   Conforme a GEMINI.md: Visualización perfecta en cualquier smartphone
   ========================================================================== */

.header-mobile-lang {
  display: none;
}

.mobile-only-item {
  display: none;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .ba-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1240px) {
  .header-inner {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }

  .brand-logo-img {
    width: 90px;
    height: 90px;
  }

  .brand-title {
    font-size: 1.32rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .nav-menu {
    gap: clamp(0.35rem, 0.85vw, 0.85rem);
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-phone-cta {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .header-book-desktop {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 88px;
  }

  .brand-logo-img {
    width: 80px;
    height: 80px;
  }

  .top-announcement {
    display: none;
  }

  .header-mobile-lang {
    display: inline-flex;
  }

  .mobile-only-item {
    display: block;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-hairline);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.25rem;
    gap: 1.15rem;
    border-bottom: 1px solid var(--border-hairline);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.4rem 0;
    display: inline-block;
    width: 100%;
  }

  .menu-toggle-btn {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-warm);
  }

  .header-actions .header-phone-cta {
    display: none;
  }

  .header-book-desktop {
    display: none;
  }

  .container {
    padding: 0 1.15rem;
  }

  .treatments-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .method-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Form & inputs: prevent iOS auto-zoom */
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
    min-height: 48px;
  }

  /* Modal on smartphones */
  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-window {
    padding: 1.5rem 1.15rem;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 0.75rem;
    right: 0.75rem;
  }

  /* Before / After Slider Touch Optimization */
  .ba-slider-wrapper {
    touch-action: pan-y;
  }

  .ba-handle-circle {
    width: 48px;
    height: 48px;
  }

  .ba-info-box {
    padding: 1.5rem 1.25rem;
  }

  /* Mobile Bottom Quick-Action Bar */
  .mobile-action-bar {
    display: block;
    padding-top: 0.65rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .floating-contact-suite {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px) + 8px);
    right: 14px;
  }
}

/* Specific Smartphone optimizations (< 540px) */
@media (max-width: 540px) {
  :root {
    --header-height: 82px;
  }

  .brand-logo-img {
    width: 72px;
    height: 72px;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .header-inner {
    padding: 0.5rem 1rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  /* Hero floating cards stacked cleanly on small screens */
  .floating-glass-card {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
    box-shadow: var(--shadow-subtle);
  }

  .floating-card-1,
  .floating-card-2 {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }

  .doctor-experience-tag {
    position: static;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  .call-channels-row {
    flex-direction: column;
  }

  .call-channels-row .btn {
    width: 100%;
  }

  .booking-direct-call,
  .booking-location-info {
    padding: 1.75rem 1.25rem;
  }
}
