/* ==========================================================================
   Dr. Zamora Bariatric Surgery - Clinical Premium Theme (2026)
   Enhanced with Dedicated Manga Gástrica Subpage & Deep Medical Features
   ========================================================================== */

:root {
  /* Official Brand Palette (OBESITY NOT 4 ME & Dr. Zamora) */
  --brand-blue: #0272c4;            /* Obesity Not 4 Me Royal Blue */
  --brand-blue-dark: #00569e;       /* Deep Royal Blue for hover */
  --brand-blue-light: #e8f4fd;      /* Soft Blue tint for cards/badges */
  --brand-orange: #f15a24;          /* Obesity Not 4 Me Figure Orange */
  --brand-orange-hover: #d94917;    /* Deeper Orange for hover */
  --brand-orange-soft: #fff3ec;     /* Warm Peach/Orange background */
  
  --medical-navy: #0a1f33;          /* Dr. Zamora Signature Deep Navy */
  --medical-navy-deep: #061524;     /* Darkest Navy for footers */
  --medical-slate: #1c3654;         /* Mid Navy for subheaders */
  --medical-teal: #0272c4;          /* Replaced teal with brand blue */
  --medical-teal-dark: #00569e;     /* Replaced dark teal */
  --medical-teal-light: #e8f4fd;    /* Light sky surface */
  --medical-cyan: #0272c4;          /* Brand primary */
  --medical-cyan-soft: #f0f7ff;
  
  --warm-gold: #f15a24;             /* Brand energetic CTA orange */
  --warm-gold-hover: #d94917;
  --warm-sand: #f8fafc;             /* Crisp modern light clinical surface */
  --warm-cream: #f1f6fa;            /* Light clinical cool tint */
  --warm-surface: #f4f8fb;

  --pure-white: #ffffff;
  --border-subtle: #e2e8f0;
  --border-card: #e5e9f0;
  
  --text-headline: #0a1f33;
  --text-body: #3e5066;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Typography */
  --font-serif: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-signature: 'Caveat', cursive;
  --font-brand: 'Outfit', 'Montserrat', sans-serif;

  /* Shadow & Elevation */
  --shadow-editorial: 0 4px 20px -2px rgba(10, 31, 51, 0.06);
  --shadow-hover: 0 16px 32px -4px rgba(2, 114, 196, 0.14);
  --shadow-card: 0 2px 12px rgba(10, 31, 51, 0.04);
  --shadow-elevated: 0 20px 40px -10px rgba(2, 114, 196, 0.2);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-smooth: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--pure-white);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   TOP BAR
   ========================================================================== */
:root {
  --topbar-height: 44px;
}

.clinical-topbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--medical-navy);
  color: #c9d8e8;
  font-size: 0.84rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clinical-topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-badge {
  background: rgba(2, 114, 196, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-link {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--warm-gold);
}

.topbar-lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 4px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.header-lang-toggle {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 2px 4px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.header-lang-toggle .lang-btn {
  color: var(--text-muted);
}

.header-lang-toggle .lang-btn.active {
  background: var(--brand-blue);
  color: var(--pure-white);
  box-shadow: 0 2px 6px rgba(2, 114, 196, 0.25);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-smooth);
}

.lang-btn.active {
  background: var(--pure-white);
  color: var(--medical-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 44px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.2s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-dual-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-img.logo-obesity {
  height: 53px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.brand-logo-img.logo-zamora {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-divider {
  width: 1.5px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
}

.brand-doctor-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-signature-text {
  font-family: var(--font-signature);
  font-size: 2.1rem;
  color: var(--medical-navy);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: block;
}

.brand-doctor-cert {
  font-family: var(--font-brand);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

/* Eyebrow & Badges Brand Integration */
.editorial-eyebrow-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  border: 1px solid rgba(2, 114, 196, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-brand-pill strong {
  color: var(--brand-blue);
}

.doctor-signature-seal {
  margin-top: 18px;
  display: flex;
  align-items: center;
}

.doctor-signature-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--text-headline);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Default desktop behavior: Hide dropdown menu and chevron outside of procedure pages */
@media (min-width: 992px) {
  .nav-dropdown {
    display: none;
  }
  .nav-dropdown-toggle .dropdown-chevron {
    display: none;
  }

  /* When on procedure pages (.page-procedure), enable desktop dropdown with hover */
  .page-procedure .nav-item-dropdown {
    position: relative;
    padding-bottom: 8px; /* bridge hover area */
    margin-bottom: -8px;
  }

  .page-procedure .nav-dropdown-toggle .dropdown-chevron {
    display: inline-block !important;
    font-size: 0.72rem;
    margin-left: 6px;
    color: var(--medical-teal);
    transition: transform 0.25s ease;
  }

  .page-procedure .nav-item-dropdown:hover .nav-dropdown-toggle .dropdown-chevron {
    transform: rotate(180deg);
  }

  .page-procedure .nav-dropdown {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px rgba(10, 31, 51, 0.12), 0 2px 6px rgba(10, 31, 51, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.22s ease;
    z-index: 1050;
  }

  .page-procedure .nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .page-procedure .nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.90rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-headline);
    text-decoration: none;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .page-procedure .nav-dropdown-item:last-child {
    border-bottom: none;
  }

  .page-procedure .nav-dropdown-item:hover {
    background: #f8fafc;
    color: var(--medical-teal-dark);
  }
}

.nav-item:hover, .nav-item.active {
  color: var(--medical-teal);
}

.nav-item.highlight-manga {
  color: var(--medical-teal-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--medical-navy);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: background 0.2s ease;
}

.mobile-nav-btn:hover {
  background: #f1f5f9;
}

.btn-clinical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-teal {
  background: var(--brand-blue);
  color: var(--pure-white);
  box-shadow: 0 4px 14px rgba(2, 114, 196, 0.25);
}

.btn-teal:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 114, 196, 0.35);
}

.btn-gold {
  background: var(--brand-orange);
  color: var(--pure-white);
  box-shadow: 0 4px 14px rgba(241, 90, 36, 0.3);
}

.btn-gold:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(241, 90, 36, 0.4);
}

.btn-outline-navy {
  border-color: var(--border-card);
  color: var(--medical-navy);
  background: var(--pure-white);
}

.btn-outline-navy:hover {
  border-color: var(--medical-navy);
  background: var(--warm-sand);
}

/* ==========================================================================
   EDITORIAL HERO SECTION
   ========================================================================== */
.hero-editorial {
  background: var(--warm-sand);
  padding: 70px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-editorial-copy {
  max-width: 620px;
}

.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--medical-teal-dark);
  margin-bottom: 18px;
}

.editorial-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--medical-teal);
}

.editorial-headline {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.15;
  color: var(--medical-navy);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 24px;
}

.editorial-headline em {
  font-style: italic;
  color: var(--medical-teal);
  font-weight: 600;
}

.editorial-subhead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.credentials-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid #e7ded0;
}

.cred-metric h5 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--medical-navy);
  font-weight: 700;
  line-height: 1;
}

.cred-metric p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Hero Portrait */
.hero-portrait-frame {
  position: relative;
}

.portrait-canvas {
  background: transparent;
  padding: 0;
  border-radius: var(--radius-md);
  box-shadow: none;
  border: none;
}

.portrait-canvas img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-editorial);
}

.clinical-badge-floating {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--medical-navy);
  color: var(--pure-white);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 270px;
}

.clinical-badge-floating h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.clinical-badge-floating p {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==========================================================================
   QUICK ACTION CLINIC BAR
   ========================================================================== */
.quick-clinic-features {
  margin-top: -45px;
  position: relative;
  z-index: 10;
  margin-bottom: 70px;
}

.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quick-feature-box {
  padding: 38px 34px;
  color: var(--pure-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.quick-feature-box.box-navy {
  background: var(--medical-navy);
}

.quick-feature-box.box-teal {
  background: var(--medical-teal-dark);
}

.quick-feature-box.box-gold {
  background: var(--warm-gold);
}

.quick-feature-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quick-feature-content h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.quick-feature-content p {
  font-size: 0.92rem;
  opacity: 0.90;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.quick-feature-content a {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pure-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  margin-top: auto;
}

.quick-feature-content a:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION COMMON STYLING
   ========================================================================== */
.section-pad {
  padding: 90px 0;
}

.section-warm-surface {
  background: var(--warm-surface);
}

.section-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--medical-teal);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--medical-navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ==========================================================================
   PROCEDURES - CLINICAL CARDS
   ========================================================================== */
.procedures-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.clinical-card {
  background: var(--pure-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 36px 28px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.clinical-card:hover {
  transform: translateY(-8px);
  border-color: var(--medical-teal);
  box-shadow: var(--shadow-hover);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 18px;
}

.clinical-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--medical-teal-light);
  color: var(--medical-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.clinical-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--medical-navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.clinical-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.clinical-card-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--medical-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clinical-card-cta i {
  transition: transform var(--transition-smooth);
}

.clinical-card:hover .clinical-card-cta i {
  transform: translateX(5px);
}

/* ==========================================================================
   SPECIAL DEDICATED MANGA GÁSTRICA SECTION
   ========================================================================== */
.manga-special-section {
  background: var(--medical-navy) url('../images/bg_mg.jpg') center center / cover no-repeat;
  background-blend-mode: multiply;
  color: var(--pure-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Centered Header */
.manga-section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px auto;
}

.manga-section-header h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--pure-white);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 24px;
}

.manga-lead-text {
  font-size: 1.12rem;
  color: #e2e8f0;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}

/* 2-Column Cards Grid */
.manga-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
  margin-bottom: 40px;
}

.clinical-specs-table {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 32px 30px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-item i {
  color: #38bdf8;
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.spec-item span {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.55;
  flex: 1;
}

.hospital-guarantee-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 34px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand-orange);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hospital-guarantee-card h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--pure-white);
  margin-bottom: 14px;
  font-weight: 700;
}

.hospital-guarantee-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 26px;
}

.guarantee-stats-row {
  display: flex;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.stat-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 28px;
}

.stat-highlight {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-highlight-gold {
  color: var(--brand-orange);
}

.stat-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

/* Centered Actions */
.manga-actions-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Clean White Section Divider Line */
.packages-section-divider {
  width: 100%;
  max-width: 820px;
  height: 1px;
  margin: 48px auto;
  background: rgba(255, 255, 255, 0.22);
}

.btn-orange {
  background: var(--brand-orange);
  color: var(--pure-white);
  box-shadow: 0 4px 14px rgba(241, 90, 36, 0.3);
}

.btn-orange:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(241, 90, 36, 0.4);
}

/* ==========================================================================
   MANGA GÁSTRICA DETAILED CLINICAL MATRIX (Benefits, Timeline & Eligibility)
   ========================================================================== */
.manga-detail-matrix {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.matrix-header h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--pure-white);
  margin-bottom: 12px;
}

.matrix-header p {
  color: #cbd5e1;
  font-size: 1rem;
}

.benefits-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.benefits-cards-grid.benefits-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.benefit-card-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  transition: all var(--transition-smooth);
}

.benefit-card-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #38bdf8;
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 16px;
}

.benefit-card-box h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--pure-white);
  margin-bottom: 10px;
}

.benefit-card-box p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Step by Step Journey */
.journey-timeline-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 50px;
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.timeline-step {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(94, 234, 212, 0.3);
}

.timeline-step .t-badge {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warm-gold);
  margin-bottom: 8px;
}

.timeline-step h5 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--pure-white);
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   TRANSPARENT PACKAGES & PRICING
   ========================================================================== */
.pricing-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 45px;
}

.package-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.package-tab-btn.active {
  background: var(--medical-teal);
  color: var(--pure-white);
  border-color: var(--medical-teal);
  box-shadow: 0 4px 16px rgba(2, 132, 118, 0.4);
}

.packages-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
}

.pricing-clinical-card {
  background: var(--pure-white);
  color: var(--text-headline);
  border-radius: var(--radius-sm);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-hover);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-clinical-card.featured-plan {
  border: 2px solid var(--warm-gold);
}

.pricing-badge-gold {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--warm-gold);
  color: var(--pure-white);
  padding: 3px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.plan-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--medical-navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-target {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.price-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.price-val {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 1.2;
}

.price-curr {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.plan-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.plan-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-body);
}

.plan-check-item i {
  color: var(--medical-teal);
  margin-top: 2px;
  font-size: 0.85rem;
}

/* ==========================================================================
   DOCTOR SPOTLIGHT & CERTIFICATIONS
   ========================================================================== */
.doctor-editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 65px;
  align-items: center;
}

.doctor-media-box {
  position: relative;
}

.doctor-media-box > img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-card);
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.doctor-credentials-card {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--pure-white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(10, 31, 51, 0.16);
  border: 1px solid var(--border-card);
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.doctor-cert-zoom-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.doctor-cert-zoom-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.18);
}

.doctor-credentials-card .doctor-credentials-cert-thumb {
  width: 96px;
  height: 68px;
  max-width: 96px;
  max-height: 68px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: block;
  padding: 2px;
  transition: filter 0.2s ease;
}

.cert-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 6px;
}

.doctor-cert-zoom-btn:hover .cert-zoom-overlay {
  opacity: 1;
}

/* ==========================================================================
   CERTIFICATE LIGHTBOX MODAL
   ========================================================================== */
.cert-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.cert-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cert-lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cert-lightbox-modal.active .cert-lightbox-dialog {
  transform: scale(1) translateY(0);
}

.cert-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.cert-lightbox-close:hover {
  background: #dc2626;
  transform: rotate(90deg);
  border-color: transparent;
}

.cert-lightbox-body {
  padding: 24px 24px 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
  overflow: auto;
}

.cert-lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.cert-lightbox-caption {
  padding: 16px 24px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.cert-lightbox-caption h5 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--medical-navy);
  margin-bottom: 4px;
}

.cert-lightbox-caption p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.doctor-credentials-card-info {
  flex: 1;
}

.doctor-credentials-card h6 {
  font-size: 0.96rem;
  color: var(--medical-navy);
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-headline);
  line-height: 1.25;
}

.doctor-credentials-card p {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.doctor-narrative h2 {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  color: var(--medical-navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.doctor-narrative p.lead {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}

.doctor-bullets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-surface);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.bullet-item i {
  color: var(--medical-teal);
  font-size: 1.2rem;
}

.bullet-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--medical-navy);
}

.doctor-quote-block {
  border-left: 3px solid var(--warm-gold);
  padding: 16px 24px;
  background: var(--warm-sand);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--medical-navy);
}

/* ==========================================================================
   INTERACTIVE BMI CALCULATOR
   ========================================================================== */
.bmi-clinical-container {
  background: var(--warm-sand);
  border: 1px solid #e7ded0;
  border-radius: var(--radius-md);
  padding: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.bmi-calc-copy h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--medical-navy);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.bmi-system-switches {
  display: flex;
  gap: 24px;
  margin: 20px 0;
}

.bmi-system-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--medical-navy);
}

.bmi-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid #cbd5e1;
  background: var(--pure-white);
  font-size: 1rem;
  outline: none;
}

.field-group input:focus {
  border-color: var(--medical-teal);
  box-shadow: 0 0 0 3px rgba(2, 132, 118, 0.15);
}

.bmi-output-box {
  background: var(--pure-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-editorial);
}

.bmi-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--medical-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--warm-sand);
}

.bmi-ring-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--medical-navy);
  line-height: 1;
}

.bmi-ring-caption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bmi-status-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--medical-teal-dark);
  margin-bottom: 8px;
}

.bmi-status-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   US PATIENTS & MEDICAL TOURISM PATHWAY
   ========================================================================== */
.tourism-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tourism-step-card {
  background: var(--pure-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 36px 24px;
  position: relative;
  transition: all var(--transition-smooth);
}

.tourism-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--medical-teal);
  box-shadow: var(--shadow-editorial);
}

.step-marker {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warm-gold);
  margin-bottom: 12px;
}

.tourism-step-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--medical-navy);
  margin-bottom: 10px;
}

.tourism-step-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ CLINICAL ACCORDION
   ========================================================================== */
.clinical-faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-row-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  background: var(--pure-white);
  overflow: hidden;
}

.faq-row-btn {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--medical-navy);
  text-align: left;
  cursor: pointer;
  gap: 20px;
}

.faq-row-btn i {
  color: var(--medical-teal);
  font-size: 1.1rem;
  transition: transform var(--transition-smooth);
}

.faq-row-item.active .faq-row-btn i {
  transform: rotate(180deg);
}

.faq-row-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-row-item.active .faq-row-content {
  max-height: 300px;
  padding: 0 28px 24px;
}

/* ==========================================================================
   CONSULTATION BOOKING & CONTACT
   ========================================================================== */
.booking-section-card {
  background: var(--medical-navy) url('../images/bg_ev.jpg') center center / cover no-repeat;
  background-blend-mode: multiply;
  border-radius: var(--radius-md);
  padding: 70px 60px;
  color: var(--pure-white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 65px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-info {
  min-width: 0;
}

.booking-info h3 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin-bottom: 18px;
  line-height: 1.2;
}

.booking-info p.lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 35px;
}

.direct-call-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.direct-call-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.direct-call-icon {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-top: 2px;
}

.direct-call-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  text-align: center;
  line-height: 1;
}

.direct-call-text {
  min-width: 0;
  flex: 1;
}

.direct-call-text small {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.direct-call-text strong {
  font-size: 1.15rem;
  color: var(--pure-white);
  overflow-wrap: anywhere;
  word-break: break-word;
  display: block;
}

.booking-form-box {
  background: var(--pure-white);
  padding: 42px 36px;
  border-radius: var(--radius-sm);
  color: var(--text-headline);
  box-shadow: var(--shadow-hover);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.booking-form-box h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--medical-navy);
  margin-bottom: 22px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-stack input, .form-stack select, .form-stack textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-card);
  font-size: 0.95rem;
  outline: none;
}

.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus {
  border-color: var(--medical-teal);
  box-shadow: 0 0 0 3px rgba(2, 132, 118, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer-clinical {
  background: var(--medical-navy-deep);
  color: #94a3b8;
  padding: 85px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-columns-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand-side h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--pure-white);
  margin-bottom: 16px;
}

.footer-brand-side p {
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col-nav h5 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--pure-white);
  margin-bottom: 22px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a:hover {
  color: #38bdf8;
}

.footer-bottom-bar {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.80rem;
  line-height: 1.4;
}

.footer-bottom-bar > div:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-footer-br {
  display: none;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-links-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a:hover {
  color: #38bdf8 !important;
}

/* Floating WhatsApp Widget */
.whatsapp-floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px;
  height: 62px;
  background: #25d366;
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-smooth);
}

.whatsapp-floating-widget:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

/* Mobile Nav Toggle */
.mobile-nav-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--medical-navy);
  cursor: pointer;
}

/* ==========================================================================
   PAGE HERO FOR DEDICATED SUBPAGE (manga-gastrica.html)
   ========================================================================== */
.subpage-hero {
  background: var(--warm-sand);
  padding: 55px 0 65px;
  border-bottom: 1px solid var(--border-subtle);
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.subpage-hero-copy {
  max-width: 100%;
}

.subpage-hero-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-editorial);
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
}

.subpage-hero-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.4s ease;
}

.subpage-hero-image-frame:hover img {
  transform: scale(1.02);
}

@media (max-width: 992px) {
  .subpage-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .subpage-hero-image-frame img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .subpage-hero {
    padding: 35px 0 40px;
  }

  .subpage-hero-image-frame img {
    height: 260px;
  }
}

.breadcrumbs-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs-trail a:hover {
  color: var(--medical-teal);
}

.clinical-article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.clinical-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.clinical-content-body h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--medical-navy);
  margin: 45px 0 18px;
}

.clinical-content-body h2:first-of-type {
  margin-top: 0;
}

.clinical-content-body p {
  margin-bottom: 20px;
}

.clinical-sidebar-box {
  background: var(--pure-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 35px 30px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 110px;
}

.sidebar-highlight-stat {
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.sidebar-highlight-stat strong {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--medical-teal-dark);
  line-height: 1;
  display: block;
}

.sidebar-highlight-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MEDICAL TEAM & TESTIMONIALS SECTIONS
   ========================================================================== */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.team-cards-grid.team-cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.team-card {
  background: var(--pure-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-editorial);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-card-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #f1f5f9;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-role-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 31, 51, 0.9);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.team-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--medical-navy);
  margin-bottom: 4px;
}

.team-card-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--medical-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.doctor-certificate-wrap {
  margin-top: 25px;
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.doctor-certificate-thumb {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.doctor-certificate-info h6 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--medical-navy);
  margin-bottom: 4px;
}

.doctor-certificate-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* 3 Pillars of Original Site */
.pillars-section {
  background: var(--pure-white);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 35px;
}

.pillar-box {
  background: var(--warm-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pillar-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-editorial);
  border-color: var(--medical-teal);
}

.pillar-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.pillar-icon-wrap img {
  width: 38px;
  height: 38px;
}

.pillar-box h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--medical-navy);
  margin-bottom: 4px;
}

.pillar-box p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* Patient Testimonials Slider (1 at a time) */
.testimonial-slider-container {
  max-width: 820px;
  margin: 40px auto 0;
  position: relative;
}

.testimonial-track-wrapper {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
}

.testimonial-slide-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-slide-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 18px;
  display: flex;
}

.testimonial-card-single {
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 40px 45px;
  box-shadow: var(--shadow-editorial);
  position: relative;
  border-top: 4px solid var(--brand-blue);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.testimonial-rating {
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex;
  gap: 5px;
}

.testimonial-text {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--medical-navy);
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.testimonial-meta strong {
  display: block;
  font-size: 1.05rem;
  color: var(--medical-navy);
}

.testimonial-procedure-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--medical-teal-dark);
  background: var(--medical-teal-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  color: var(--medical-navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-smooth);
}

.slider-nav-btn:hover {
  background: var(--medical-navy);
  color: var(--pure-white);
  border-color: var(--medical-navy);
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.slider-dot.active {
  background: var(--medical-teal);
  width: 24px;
  border-radius: var(--radius-pill);
}

.testimonials-cta-strip {
  margin-top: 45px;
  background: var(--medical-navy);
  border-radius: var(--radius-sm);
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--pure-white);
  box-shadow: var(--shadow-editorial);
}

.testimonials-cta-strip h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--pure-white);
  margin-bottom: 4px;
}

.testimonials-cta-strip p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-editorial-grid, .doctor-editorial-grid, .clinical-article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .editorial-headline {
    font-size: 2.8rem;
  }

  .procedures-row, .tourism-steps-row, .benefits-cards-grid, .timeline-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-cards-grid,
  .team-cards-grid.team-cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .quick-features-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-section-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 45px 35px;
    gap: 40px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--pure-white);
    padding: 0 30px;
    box-shadow: 0 16px 32px rgba(10, 31, 51, 0.15);
    border-bottom: 2px solid var(--medical-teal);
    gap: 16px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.35s ease,
                padding 0.35s ease,
                visibility 0.3s ease;
  }

  .mobile-nav-btn {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--medical-navy);
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 90vh;
    padding: 24px 30px;
    overflow-y: auto;
  }

  .nav-links .nav-item {
    font-size: 1.05rem;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    width: 100%;
    display: block;
  }

  /* Mobile Dropdown for Procedimientos */
  .nav-item-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-item-dropdown .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-bottom: none;
    text-align: center;
    cursor: pointer;
    padding: 12px 0;
  }

  .nav-dropdown-toggle .dropdown-chevron {
    font-size: 0.85rem;
    color: var(--medical-teal);
    transition: transform 0.3s ease;
  }

  .nav-dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
  }

  /* Clean mobile dropdown: No container box, no background, centered text */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-dropdown.open {
    max-height: 700px;
    opacity: 1;
    padding: 6px 0 10px;
  }

  .nav-dropdown-item {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.7);
    transition: color 0.2s ease;
  }

  .nav-dropdown-item:last-child {
    border-bottom: none;
  }

  .nav-dropdown-item:hover, .nav-dropdown-item:active {
    color: var(--medical-teal);
  }

  .testimonials-cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 110px;
  }

  .site-header {
    top: 40px;
  }

  .site-header .container {
    height: 68px;
    min-height: 68px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo 1.5x bigger on mobile: 45px - 48px */
  .brand-logo-img.logo-obesity {
    height: 46px;
    width: auto;
  }

  .packages-cards-row {
    grid-template-columns: 1fr;
  }

  .manga-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .manga-section-header h2 {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .procedures-row, .tourism-steps-row, .benefits-cards-grid, .timeline-steps-grid, .team-cards-grid, .team-cards-grid.team-cards-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-columns-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pricing-tabs-wrap {
    flex-direction: column;
  }

  .topbar-left {
    display: none;
  }

  .clinical-topbar {
    padding: 6px 0;
  }

  .clinical-topbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 15px;
    width: 100%;
  }

  .topbar-right {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    text-align: center;
  }

  /* Hide MX phone call link on mobile to keep topbar centered with WhatsApp & language switcher */
  .topbar-right .topbar-link:first-child {
    display: none;
  }

  /* Hero Section: Compact and display doctor portrait below */
  .hero-editorial {
    padding: 30px 0 35px;
  }

  .hero-editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-editorial-copy {
    text-align: left;
    width: 100%;
    max-width: 100%;
  }

  .editorial-headline {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
  }

  .editorial-subhead {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 20px;
    color: var(--text-body);
  }

  .hero-actions-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-actions-row .btn-clinical {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .hero-actions-row .btn-gold {
    background: #ff5722 !important;
    background: linear-gradient(135deg, #f95721 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
  }

  .hero-actions-row .btn-outline-navy {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--medical-navy) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  }

  /* Credentials strip: clean 3 columns */
  .credentials-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid #e7ded0;
    text-align: center;
    margin-bottom: 5px;
  }

  .cred-metric h5 {
    font-size: 1.8rem;
    line-height: 1;
  }

  .cred-metric p {
    font-size: 0.72rem;
    margin-top: 4px;
    letter-spacing: 0.3px;
  }

  /* Hero portrait frame: Visible below copy */
  .hero-portrait-frame {
    display: block !important;
    width: 100%;
    margin-top: 10px;
    position: relative;
  }

  .hero-portrait-frame .portrait-canvas {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .hero-portrait-frame .portrait-canvas img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-md);
    display: block;
  }

  /* Floating badge inside mobile frame */
  .clinical-badge-floating {
    display: none; /* Mockup doesn't show badge over doctor portrait */
  }

  /* Manga stats: stack in column on small screens */
  .manga-clinical-metrics {
    flex-direction: column;
    gap: 12px;
  }

  /* Section padding tighter on mobile */
  .section-pad {
    padding: 44px 0;
  }

  /* Doctor grid full width */
  .doctor-editorial-grid {
    grid-template-columns: 1fr;
  }

  .booking-section-card {
    padding: 28px 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .booking-info h3 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .booking-info p.lead {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .direct-call-items {
    gap: 16px;
  }

  .direct-call-box {
    gap: 14px;
  }

  .direct-call-icon {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    font-size: 1.15rem;
  }

  .direct-call-text small {
    font-size: 0.72rem;
  }

  .direct-call-text strong {
    font-size: 1rem;
    line-height: 1.4;
  }

  .booking-form-box {
    padding: 26px 20px;
  }

  .booking-form-box h4 {
    font-size: 1.35rem;
    margin-bottom: 18px;
  }

  .bmi-clinical-container {
    padding: 24px 16px;
    grid-template-columns: 1fr;
  }

  .bmi-calc-copy h3 {
    font-size: 1.75rem;
    line-height: 1.22;
  }

  .bmi-fields-row {
    grid-template-columns: 1fr;
  }

  .header-cta-group .btn-clinical {
    display: none;
  }

  .quick-clinic-features {
    margin-top: 25px;
    margin-bottom: 35px;
  }

  .testimonial-card-single {
    padding: 24px 16px;
  }

  .testimonial-text {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  /* Booking card full-width fields */
  .form-stack input,
  .form-stack select,
  .form-stack textarea {
    font-size: 16px; /* Prevents iOS zoom on input focus */
  }

  /* Mobile Footer Layout & WhatsApp Widget Clearance */
  .site-footer-clinical {
    padding-bottom: 105px !important;
  }

  .mobile-footer-br {
    display: block !important;
  }

  .footer-bottom-bar {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
    align-items: center !important;
  }

  .footer-copy {
    text-align: center !important;
    line-height: 1.5 !important;
    font-size: 0.82rem !important;
    white-space: normal !important;
  }

  .footer-legal-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    white-space: normal !important;
    width: 100% !important;
  }

  .footer-legal-links > span[data-i18n="footer.cert"] {
    display: block !important;
    text-align: center !important;
    line-height: 1.45 !important;
    font-size: 0.80rem !important;
    max-width: 90% !important;
  }

  .footer-links-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  /* Logo 1.5x on very small screens: 45px */
  .brand-logo-img.logo-obesity {
    height: 45px !important;
  }

  .site-header {
    top: 38px;
  }

  .site-header .container {
    height: 64px;
    min-height: 64px;
  }

  /* Topbar: compact single row on very small screens */
  .topbar-right {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
  }

  .topbar-right .topbar-link {
    font-size: 0.82rem;
    gap: 6px;
  }

  .topbar-right .topbar-link:first-child {
    display: none;
  }

  .clinical-topbar {
    padding: 6px 0;
  }

  .editorial-headline {
    font-size: 1.7rem;
    line-height: 1.22;
  }

  .bmi-calc-copy h3 {
    font-size: 1.5rem;
    line-height: 1.22;
  }

  .section-pad {
    padding: 40px 0;
  }

  .quick-feature-box {
    padding: 20px 14px;
  }

  /* Credentials strip: 3 cols on small screen */
  .credentials-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 14px;
  }

  .cred-metric h5 {
    font-size: 1.7rem;
  }

  .cred-metric p {
    font-size: 0.68rem;
  }

  .hero-portrait-frame .portrait-canvas img {
    height: 340px;
  }

  /* Contact section: tighter padding */
  .booking-section-card {
    padding: 24px 16px;
    gap: 28px;
  }

  .booking-info h3 {
    font-size: 1.65rem;
  }

  .booking-form-box {
    padding: 22px 16px;
  }

  .direct-call-text strong {
    font-size: 0.95rem;
  }


  /* Subpage 2-col inline grids stack on mobile */
  .clinical-content-body [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Guarantee card mobile spacing & stats */
  .hospital-guarantee-card {
    padding: 22px 16px;
  }

  .guarantee-stats-row {
    flex-wrap: wrap;
    gap: 14px;
  }

  .stat-divider {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    width: 100%;
  }

  /* FAQ button & touch friendly */
  .faq-row-btn {
    padding: 15px 16px;
    font-size: 0.92rem;
  }
}