/* ==========================================================================
   LUMINA DENTAL - DESIGN SYSTEM & HERO STYLES (REFINED HORIZONTAL COMPOSITION)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- 1. CSS Custom Properties / Unified Design Tokens --- */
:root {
  /* Unified Warm Amber Accent (Consistent across highlighted word & both buttons) */
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-accent-shadow: rgba(245, 158, 11, 0.35);
  
  /* Text Colors */
  --color-text-white: #ffffff;
  --color-text-white-subtle: rgba(255, 255, 255, 0.88);
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;

  /* Surfaces & Borders */
  --color-bar-bg: #ffffff;
  --color-bar-divider: #e2e8f0;
  --color-input-hover: #f8fafc;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation */
  --shadow-bar: 0 20px 45px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.4);
  --shadow-circle: 0 16px 36px -8px rgba(0, 0, 0, 0.35);
  --text-shadow-strong: 0 2px 14px rgba(0, 0, 0, 0.45);
  --text-shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.5);

  /* Radii */
  --radius-bar: 52px;
  --radius-popover: 24px;
  --radius-pill: 9999px;
  --radius-inner: 16px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-main);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #090e14;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

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

/* --- 3. Fullscreen Luminous Hero Section (100vw / 100vh) --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Background Image Layer: Clean, Welcoming Clinic Interior */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.98) contrast(1.02);
}

/* Contrast Overlay Scrim: Guarantees Crisp Legibility for White Text */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(9, 14, 22, 0.52) 0%, 
      rgba(9, 14, 22, 0.3) 30%, 
      rgba(9, 14, 22, 0.38) 65%, 
      rgba(9, 14, 22, 0.72) 100%
    );
  z-index: 2;
}

/* Content Container */
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: clamp(1.25rem, 2.5vh, 2.25rem) clamp(1.75rem, 4vw, 5rem);
}

/* --- 4. Upper Navigation Bar --- */
.hero-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 20;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.4vw, 1.45rem);
  letter-spacing: -0.02em;
  color: var(--color-text-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-icon-wrapper img,
.brand-icon-wrapper svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Nav Links: Direct on navbar, no box, high contrast */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.8vw, 2.75rem);
  list-style: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: inline-block;
  font-size: clamp(0.9375rem, 1vw, 1.05rem);
  font-weight: 600;
  color: var(--color-text-white-subtle);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  padding: 0.35rem 0.15rem;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, text-shadow 0.2s ease;
  will-change: transform;
}

.nav-link:hover {
  color: var(--color-text-white);
  transform: translateY(4.5px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 255, 255, 0.25);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
  transform: translateY(4.5px);
}

/* CTA Agenda tu Cita (Unified Warm Amber Accent) */
.nav-cta-btn {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: clamp(0.9rem, 1vw, 1rem);
  padding: clamp(0.7rem, 1.2vh, 0.85rem) clamp(1.35rem, 1.6vw, 1.75rem);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--color-accent-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  background-color: var(--color-accent-hover);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.nav-cta-btn:active {
  transform: translateY(0);
}

.nav-cta-btn:focus-visible {
  outline: 2px solid var(--color-text-white);
  outline-offset: 3px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.55rem;
  color: var(--color-text-white);
  cursor: pointer;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* --- 5. Centered Hero Header (Crisp White with Warm Accent) --- */
.hero-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  z-index: 10;
  padding-top: clamp(0.5rem, 1.5vh, 1.5rem);
}

/* 2-Line Headline: Crisp Solid White, Proportional Weight (700-800, not excessive black) */
.hero-title {
  font-size: clamp(3rem, 5.8vw, 5.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-text-white);
  text-shadow: var(--text-shadow-strong);
  margin-bottom: 0.85rem;
}

.hero-title-line {
  display: block;
}

/* Highlighted Keyword "Ideal" in Unified Warm Amber */
.highlight-accent {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

/* Subtitle: Solid White, Maximum Clarity with Subtle Shadow */
.hero-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-white);
  max-width: 640px;
  font-weight: 400;
  text-shadow: var(--text-shadow-medium);
}

/* --- 6. Lower Context Row (Circle Photo, Central Statement & Rating) --- */
.hero-bottom-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 12;
}

.hero-lower-context {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(110px, 9vw, 145px);
  margin-bottom: clamp(1.5rem, 2.5vh, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Left: Circular Photo Card (Decorative Context Detail) - Substantially Enlarged & Pushed to Left Viewport Edge */
.circle-photo-card {
  position: absolute;
  left: clamp(1.5rem, 3.8vw, 4.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(105px, 8.5vw, 140px);
  height: clamp(105px, 8.5vw, 140px);
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.circle-photo-card:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.circle-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Center: Short Value Proposition Statement (Mathematically Centered with generous breathing room) */
.hero-statement-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-text-white);
  font-size: clamp(0.925rem, 1.05vw, 1.05rem);
  font-weight: 500;
  max-width: min(520px, 42vw);
  line-height: 1.5;
  text-shadow: var(--text-shadow-medium);
  padding: 0 1rem;
  margin: 0;
  pointer-events: none;
  z-index: 1;
}

/* Right: Rating Box (Star + 4.9 in same line, volume below) - Substantially Enlarged & Pushed to Right Viewport Edge */
.hero-rating-box {
  position: absolute;
  right: clamp(1.5rem, 3.8vw, 4.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  z-index: 2;
}

.hero-rating-box:hover {
  transform: translateY(calc(-50% - 2px));
}

.rating-top-row {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 0.7vw, 0.85rem);
  justify-content: flex-end;
}

.rating-star-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
}

.rating-star-icon img,
.rating-star-icon svg {
  width: clamp(30px, 2.6vw, 40px);
  height: clamp(30px, 2.6vw, 40px);
  display: block;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

.rating-number {
  font-size: clamp(2.4rem, 3.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-text-white);
  text-shadow: var(--text-shadow-medium);
}

.rating-caption {
  font-size: clamp(0.85rem, 0.95vw, 1.025rem);
  color: var(--color-text-white-subtle);
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  margin-top: 0.35rem;
  white-space: nowrap;
}

/* --- 7. Bottom Horizontal Booking Bar (Sleek Pill Capsule Layout) --- */
.hero-booking-bar {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  background: var(--color-bar-bg);
  border-radius: var(--radius-bar); /* 52px ultra-smooth pill */
  box-shadow: var(--shadow-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem 0.65rem clamp(2.25rem, 2.8vw, 3.25rem);
  position: relative;
  z-index: 30;
}

/* Column Item */
.bar-col {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.5rem;
}

.bar-col-inner {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
}

.bar-col-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  flex-shrink: 0;
}

.bar-col-icon img,
.bar-col-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.bar-col-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.bar-col-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.bar-col-value-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 700;
  color: var(--color-text-dark);
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}

.bar-chevron {
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bar-chevron img,
.bar-chevron svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Vertical Line Divider */
.bar-divider {
  width: 1px;
  height: 38px;
  background-color: var(--color-bar-divider);
  margin: 0 clamp(0.75rem, 1.2vw, 1.35rem);
  flex-shrink: 0;
  opacity: 0.85;
  align-self: center;
}

/* Native Hidden Date Input Layer (Replaced by Custom Calendar) */
.native-date-input {
  display: none;
}

/* --- Custom Calendar Popover & Modal Component --- */
.bar-col-clickable {
  cursor: pointer;
  user-select: none;
}

.bar-col-clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 12px;
}

.calendar-backdrop {
  display: none;
}

.calendar-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: -20px;
  width: 340px;
  background: var(--color-bar-bg);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--radius-popover, 24px);
  box-shadow: 0 22px 50px -10px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  z-index: 100;
  animation: popoverFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.calendar-popover.open {
  display: flex;
}

/* Connecting Arrow Indicator */
.calendar-arrow-indicator {
  position: absolute;
  bottom: -7px;
  left: 55px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.09);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  transform: rotate(45deg);
}

/* Mobile Header (Hidden on Desktop) */
.calendar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-bar-divider);
}

.calendar-mobile-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.calendar-close-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-close-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-dark);
}

.calendar-close-btn img,
.calendar-close-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Month Navigation Bar */
.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-month-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.calendar-nav-btn {
  background: #f8fafc;
  border: 1px solid var(--color-bar-divider);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
  color: #ffffff;
  border-color: var(--color-accent-hover);
}

.calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-nav-btn img,
.calendar-nav-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Weekdays Header */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Days Grid */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  justify-items: center;
  align-items: center;
}

/* Day Cell Button */
.calendar-day-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.calendar-day-btn:hover:not(.day-disabled):not(.day-selected) {
  background: rgba(245, 158, 11, 0.15);
  color: #000000;
}

/* Today Indicator */
.calendar-day-btn.day-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.calendar-day-btn.day-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Selected Day */
.calendar-day-btn.day-selected {
  background: var(--color-accent) !important;
  color: var(--color-text-dark) !important;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--color-accent-shadow);
}

.calendar-day-btn.day-selected::after {
  background: var(--color-text-dark);
}

/* Disabled Past Days */
.calendar-day-btn.day-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
}

/* Day Empty Slot for Grid Offset */
.calendar-day-empty {
  width: 38px;
  height: 38px;
  pointer-events: none;
}

/* Calendar Footer */
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-bar-divider);
  font-size: 0.75rem;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.legend-dot.today-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.calendar-today-btn {
  background: transparent;
  border: none;
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}

.calendar-today-btn:hover {
  background: rgba(245, 158, 11, 0.12);
}

/* Dropdown Menus for Service & Schedule */
.bar-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 260px;
  z-index: 50;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-dropdown-menu.open {
  display: flex;
}

.dropdown-item-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.dropdown-item-btn:hover, .dropdown-item-btn.selected {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-text-dark);
}

.dropdown-item-price {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* Final Button on Far-Right of the Same Bar */
/* Final Button on Far-Right of the Same Bar - Pill Coherent with Bar */
.bar-whatsapp-btn {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.05vw, 1.025rem);
  padding: clamp(0.85rem, 1.2vh, 0.95rem) clamp(1.65rem, 1.8vw, 2.25rem);
  border-radius: var(--radius-pill); /* Pill-shaped concentric button */
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 16px var(--color-accent-shadow);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.bar-whatsapp-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.bar-whatsapp-btn:active {
  transform: translateY(0);
}

.bar-whatsapp-btn:focus-visible {
  outline: 3px solid var(--color-text-dark);
  outline-offset: 3px;
}

.bar-whatsapp-btn img,
.bar-whatsapp-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* Animations */
@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 8. Responsive Layout & Mobile Behavior --- */

/* Laptops & Medium Screens (max-width: 1150px) */
@media (max-width: 1150px) {
  .hero-inner {
    padding: 1.5rem 2rem;
  }

  .hero-booking-bar {
    padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  }

  .bar-divider {
    margin: 0 0.85rem;
  }

  .circle-photo-card {
    left: clamp(1.25rem, 3vw, 3rem);
    width: clamp(90px, 8vw, 115px);
    height: clamp(90px, 8vw, 115px);
  }

  .hero-rating-box {
    right: clamp(1.25rem, 3vw, 3rem);
  }

  .rating-number {
    font-size: clamp(2.1rem, 2.8vw, 2.6rem);
  }

  .rating-star-icon svg {
    width: clamp(26px, 2.4vw, 34px);
    height: clamp(26px, 2.4vw, 34px);
  }

  .hero-statement-center {
    max-width: min(460px, 38vw);
    font-size: 0.9rem;
  }
}

/* Tablets & Mobile (max-width: 950px) */
@media (max-width: 950px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
  }

  .hero-inner {
    padding: 1.25rem 1.25rem 2rem;
    gap: 2rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-cta-btn {
    display: none;
  }

  /* Responsive 2-Row Grid for Lower Context in Mobile/Tablet */
  .hero-lower-context {
    position: static;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "statement statement"
      "circle rating";
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-statement-center {
    grid-area: statement;
    position: static;
    transform: none;
    max-width: 100%;
    text-align: center;
    font-size: clamp(0.875rem, 2vw, 0.975rem);
    line-height: 1.45;
    padding: 0;
    pointer-events: auto;
  }

  .circle-photo-card {
    grid-area: circle;
    position: static;
    transform: none;
    width: clamp(68px, 9vw, 84px);
    height: clamp(68px, 9vw, 84px);
    justify-self: start;
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .circle-photo-card:hover {
    transform: scale(1.05);
  }

  .hero-rating-box {
    grid-area: rating;
    position: static;
    transform: none;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
  }

  .hero-rating-box:hover {
    transform: translateY(-2px);
  }

  .rating-top-row {
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .rating-star-icon img,
  .rating-star-icon svg {
    width: clamp(24px, 3.2vw, 30px);
    height: clamp(24px, 3.2vw, 30px);
    display: block;
  }

  .rating-number {
    font-size: clamp(1.85rem, 3.8vw, 2.25rem);
  }

  .rating-caption {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    margin-top: 0.2rem;
  }

  /* Booking bar stacks vertically in mobile - Spaced & Rounded */
  .hero-booking-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.35rem;
    border-radius: 30px;
    gap: 0.85rem;
  }

  .bar-divider {
    width: 100%;
    height: 1px;
    margin: 0.25rem 0;
  }

  .bar-col {
    padding: 0.45rem 0.5rem;
    width: 100%;
  }

  .bar-whatsapp-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 0.65rem;
    justify-content: center;
    padding: 1.05rem 1.5rem;
    border-radius: var(--radius-pill);
  }

  .bar-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  /* Mobile Calendar Modal */
  .calendar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .calendar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .calendar-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    width: 92%;
    max-width: 375px;
    z-index: 999;
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .calendar-popover.open {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .calendar-arrow-indicator {
    display: none;
  }

  .calendar-mobile-header {
    display: flex;
  }

  .calendar-day-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .calendar-day-empty {
    width: 44px;
    height: 44px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 0.975rem;
  }

  .hero-lower-context {
    gap: 0.75rem 0.5rem;
    padding: 0 0.25rem;
    margin-bottom: 1.25rem;
  }

  .circle-photo-card {
    width: 62px;
    height: 62px;
    border-width: 2.5px;
  }

  .rating-number {
    font-size: 1.75rem;
  }

  .rating-star-icon svg {
    width: 22px;
    height: 22px;
  }

  .rating-caption {
    font-size: 0.7rem;
  }

  .hero-statement-center {
    font-size: 0.825rem;
  }
}

/* ==========================================================================
   --- 9. NUESTROS SERVICIOS SECTION ---
   ========================================================================== */

.services-section {
  width: 100%;
  background-color: #f8fafc;
  padding: clamp(4.5rem, 8vh, 7.5rem) clamp(1.5rem, 3.5vw, 4.5rem);
  position: relative;
  color: var(--color-text-dark);
}

.services-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

/* Header (Aligned to Left) */
.services-header {
  text-align: left;
  margin-bottom: clamp(2.5rem, 4.5vh, 3.5rem);
}

.services-eyebrow {
  display: inline-block;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.services-title {
  font-size: clamp(2.25rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  margin-bottom: 1.15rem;
}

.services-title span {
  display: block;
}

.services-subtitle {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

/* Outer Grouping Container for 4 Cards & Bottom Banner */
.services-panel {
  background: #eef2f6;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
}

/* 2x2 Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 1.8vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 1.8vw, 1.75rem);
}

/* Individual Service Card (Horizontal: Image 40% / Content 60%) */
.service-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

/* Left Image (Approx. 40% width) */
.service-card-media {
  width: 40%;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

/* Right Content Area (Remaining ~60%) */
.service-card-body {
  flex: 1;
  padding: clamp(1.25rem, 1.8vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.service-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.service-card:hover .service-icon-badge {
  transform: scale(1.08);
  background: rgba(245, 158, 11, 0.16);
}

.service-icon-badge img {
  width: 20px;
  height: 20px;
  display: block;
}

.service-card-main {
  flex: 1;
}

.service-name {
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.service-description {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

/* Link: Conocer tratamiento → */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  align-self: flex-start;
}

.service-link:hover {
  color: var(--color-accent-hover);
  gap: 0.65rem;
}

.service-link-arrow {
  display: block;
  transition: transform 0.2s ease;
}

.service-link:hover .service-link-arrow {
  transform: translateX(3px);
}

/* Bottom Banner */
.services-banner {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: clamp(1rem, 1.4vw, 1.35rem) clamp(1.25rem, 2vw, 1.85rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.services-banner-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.services-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-banner-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.services-banner-text-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.services-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  white-space: nowrap;
}

.services-banner-divider {
  width: 1px;
  height: 20px;
  background-color: #cbd5e1;
  flex-shrink: 0;
}

.services-banner-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.services-banner-btn {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--color-accent-shadow);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.services-banner-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

/* Responsive Media Queries for Services Section */
@media (max-width: 950px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .services-banner-text-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .services-banner-divider {
    display: none;
  }

  .services-banner-title {
    white-space: normal;
  }

  .services-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem;
  }
}

@media (max-width: 640px) {
  .service-card {
    flex-direction: column;
  }

  .service-card-media {
    width: 100%;
    min-height: 180px;
    height: 180px;
  }

  .services-panel {
    padding: 1rem;
    border-radius: 24px;
  }

  .services-header .services-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   --- 10. NUESTROS DOCTORES SECTION ---
   ========================================================================== */

.doctors-section {
  width: 100%;
  background-color: #ffffff;
  padding: clamp(4.5rem, 8vh, 7.5rem) clamp(1.5rem, 3.5vw, 4.5rem);
  position: relative;
  color: var(--color-text-dark);
}

.doctors-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

/* Header Row: Title & Subtitle on left + Highlight Block on right */
.doctors-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.75rem, 3.5vw, 4rem);
  margin-bottom: clamp(2.75rem, 4.5vh, 3.75rem);
}

.doctors-header {
  text-align: left;
  flex: 1.15;
  max-width: 620px;
}

.doctors-eyebrow {
  display: inline-block;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.doctors-title {
  font-size: clamp(2.25rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  margin-bottom: 1.15rem;
}

.doctors-title span {
  display: block;
}

.doctors-subtitle {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

/* Highlight Block to the right of Header (aligned vertically centered) */
.doctors-highlight-card {
  flex: 0.95;
  max-width: 480px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: clamp(1.25rem, 2vw, 1.65rem) clamp(1.35rem, 2.2vw, 1.85rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctors-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.doctors-highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctors-highlight-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.doctors-highlight-content {
  flex: 1;
}

.doctors-highlight-title {
  display: block;
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.doctors-highlight-desc {
  font-size: 0.885rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 4-Column Doctor Cards Grid (Single row of 4 columns in desktop) */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.15rem, 1.6vw, 1.65rem);
  margin-bottom: clamp(2rem, 3.5vh, 2.75rem);
}

/* Individual Doctor Card */
.doctor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px -6px rgba(15, 23, 42, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

/* Doctor Portrait Photo Wrap (Vertical portrait ratio) */
.doctor-card-photo-wrap {
  position: relative;
  width: 100%;
  padding-top: 112%; /* Vertical portrait aspect ratio */
  overflow: hidden;
  background-color: #f1f5f9;
}

.doctor-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover .doctor-photo {
  transform: scale(1.05);
}

/* Badge overlay in bottom-right corner of photo */
.doctor-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doctor-card:hover .doctor-badge {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.doctor-badge img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Doctor Card Body */
.doctor-card-body {
  padding: clamp(1.2rem, 1.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-name {
  font-size: clamp(1.125rem, 1.25vw, 1.25rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.doctor-specialty {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.doctor-bio {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.52;
  margin: 0 0 1.25rem 0;
  flex: 1; /* Pushes credentials to bottom */
}

/* Academic Credentials Line */
.doctor-academic {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.785rem;
  color: var(--color-text-muted);
}

.doctor-academic-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.doctor-academic-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.doctor-academic-sep {
  color: #cbd5e1;
  font-weight: 300;
}

.doctor-experience {
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Doctores Bottom Banner (Consistent with Services Banner) */
.doctors-banner {
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: clamp(1rem, 1.4vw, 1.35rem) clamp(1.25rem, 2vw, 1.85rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.doctors-banner-info {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  min-width: 0;
}

.doctors-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctors-banner-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.doctors-banner-text-wrap {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  min-width: 0;
}

.doctors-banner-title-block {
  display: flex;
  flex-direction: column;
}

.doctors-banner-title-line {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
  white-space: nowrap;
}

.doctors-banner-divider {
  width: 1px;
  height: 24px;
  background-color: #cbd5e1;
  flex-shrink: 0;
}

.doctors-banner-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.doctors-banner-btn {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--color-accent-shadow);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.doctors-banner-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

/* Responsive Media Queries for Doctores Section */
@media (max-width: 1024px) {
  .doctors-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .doctors-header {
    max-width: 100%;
  }

  .doctors-highlight-card {
    max-width: 100%;
    width: 100%;
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 950px) {
  .doctors-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .doctors-banner-text-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .doctors-banner-divider {
    display: none;
  }

  .doctors-banner-title-line {
    white-space: normal;
  }

  .doctors-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem;
  }
}

@media (max-width: 640px) {
  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .doctors-header .doctors-title {
    font-size: 2rem;
  }

  .doctor-card-photo-wrap {
    padding-top: 100%;
  }

  .doctors-highlight-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
}

/* ==========================================================================
   --- 11. CONTACTO SECTION ---
   ========================================================================== */

.contact-section {
  width: 100%;
  background-color: #f8fafc;
  padding: clamp(4.5rem, 8vh, 7.5rem) clamp(1.5rem, 3.5vw, 4.5rem);
  position: relative;
  color: var(--color-text-dark);
}

.contact-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: stretch; /* both columns fill the same height */
}

/* ─── LEFT COLUMN ─────────────────────────────────────────────── */

.contact-left {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vh, 1.75rem); /* tighter gap now there are only 2 blocks */
}

/* Header */
.contact-header {
  text-align: left;
}

.contact-eyebrow {
  display: inline-block;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.contact-title {
  font-size: clamp(2.25rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  margin-bottom: 1.1rem;
}

.contact-title span {
  display: block;
}

.contact-title-dot {
  color: var(--color-accent);
}

.contact-subtitle {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
  font-weight: 400;
}

/* 4-Card Contact Info Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.3vw, 1.35rem);
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(1.1rem, 1.5vw, 1.5rem) clamp(1rem, 1.3vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
  border-color: rgba(245, 158, 11, 0.3);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.contact-card-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
  margin-top: 0.1rem;
}

.contact-card-value--sm {
  font-size: 0.9rem;
}

.contact-card-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 0.05rem;
}

/* Map Block */
.contact-map-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  flex: 1;        /* grow to fill remaining height in .contact-left */
  min-height: 0;  /* allow the flex item to shrink below its content */
}

/* Map Visual (iframe embed) */
.contact-map-visual {
  position: relative;
  min-height: 240px;
  height: 100%;   /* stretch to fill all the grid row height */
  background: #e2e8f0;
  overflow: hidden;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: none;
  display: block;
  filter: saturate(0.7) hue-rotate(10deg);
}

.contact-map-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
}

/* Map Info (Right side of map block) */
.contact-map-info {
  padding: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.contact-map-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
}

.contact-map-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-map-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.contact-map-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.contact-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-dark);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.2s ease, gap 0.2s ease, transform 0.2s ease;
}

.contact-map-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  gap: 0.75rem;
  transform: translateY(-1px);
}

.contact-map-btn img {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-map-btn:hover img {
  transform: translateX(2px);
}

/* ─── RIGHT COLUMN ────────────────────────────────────────────── */

.contact-right {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px -6px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  /* fill the full column height so it matches the left column */
  height: 100%;
}

/* Clinic Photo */
.contact-photo-wrap {
  width: 100%;
  height: 340px; /* taller photo to visually balance with shorter left column */
  overflow: hidden;
  flex-shrink: 0;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-right:hover .contact-photo {
  transform: scale(1.04);
}

/* Quick-Action List */
.contact-actions {
  display: flex;
  flex-direction: column;
  flex: 1; /* fill all remaining height so rows expand evenly */
  padding: 0.5rem 0;
}

.contact-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.35rem; /* taller rows to fill remaining vertical space */
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
  cursor: pointer;
  flex: 1; /* distribute remaining height equally across all 4 rows */
}

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

.contact-action-row:hover {
  background: #f8fafc;
}

.contact-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-action-row:hover .contact-action-icon {
  background: rgba(245, 158, 11, 0.17);
  transform: scale(1.06);
}

.contact-action-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-action-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.contact-action-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.contact-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease;
}

.contact-action-row:hover .contact-action-arrow {
  transform: translateX(3px);
  background: rgba(245, 158, 11, 0.12);
}

.contact-action-arrow img {
  width: 18px;
  height: 18px;
  display: block;
}

/* ─── RESPONSIVE BREAKPOINTS ──────────────────────────────────── */

/* Tablet: stacked columns, auto height */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start; /* columns are stacked — no need to stretch */
  }

  .contact-right {
    height: auto; /* reset — stacked layout, no stretching needed */
    max-width: 640px;
  }

  .contact-action-row {
    flex: none; /* reset flex growth — fixed padding instead */
  }
}

/* Small Tablet / Large Mobile: stack map block */
@media (max-width: 768px) {
  .contact-map-block {
    grid-template-columns: 1fr;
  }

  .contact-map-visual {
    min-height: 200px;
  }

  .contact-map-iframe {
    min-height: 200px;
  }

  .contact-map-info {
    padding: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .contact-right {
    height: auto;
    max-width: 100%;
  }

  .contact-photo-wrap {
    height: 220px;
  }

  .contact-title {
    font-size: 2rem;
  }
}


