/* ═══════════════════════════════════════════
   C&O Colombia — Cirugía y Obesidad
   styles.css  |  v2.0  |  2026
═══════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────── */
:root {
  --navy:        #0a2447;
  --blue:        #0d5fa8;
  --cyan:        #00b4d8;
  --cyan-light:  #90e0ef;
  --white:       #ffffff;
  --gray-light:  #f0f6fc;
  --gray:        #64748b;
  --text:        #1e293b;
  --gold:        #e8c84a;
  --radius:      16px;
  --shadow:      0 8px 32px rgba(10,36,71,.13);
  --shadow-lg:   0 20px 60px rgba(10,36,71,.22);
}

/* ── RESET / BASE ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Outfit', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; }

/* ── TYPOGRAPHY ─────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--cyan); }

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
h2.section-title span { color: var(--cyan); }

.section-desc { font-size: 17px; color: var(--gray); line-height: 1.7; max-width: 560px; }

/* ── LAYOUT ─────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; }
section      { padding: 80px 24px; }

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: white; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,180,216,.4);
  transition: all .3s; cursor: pointer; border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,180,216,.5); color: white; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.4);
  color: white; font-weight: 500; font-size: 15px;
  padding: 14px 28px; border-radius: 50px;
  backdrop-filter: blur(6px); transition: all .3s;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: var(--cyan); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--blue); color: var(--blue);
  font-weight: 600; font-size: 14px; padding: 11px 22px;
  border-radius: 50px; transition: all .3s;
}
.btn-outline:hover { background: var(--blue); color: white; }

/* ── NAV ────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  background: rgba(10,36,71,.92);
  backdrop-filter: blur(12px);
  transition: all .3s;
}
nav.scrolled { background: rgba(10,36,71,.98); box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  padding: 7px 13px; border-radius: 8px; transition: all .2s;
}
.nav-links a:hover { color: var(--cyan); background: rgba(255,255,255,.08); }
.nav-cta-btn {
  background: linear-gradient(135deg, var(--cyan), var(--blue)) !important;
  color: var(--white) !important; font-weight: 600 !important;
  padding: 9px 18px !important; border-radius: 50px !important;
}
.nav-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }
.nav-mobile-menu {
  display: none; position: fixed; inset: 0; top: 70px;
  background: rgba(10,36,71,.98); z-index: 999;
  padding: 24px; flex-direction: column; gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: white; font-size: 17px; font-weight: 500;
  padding: 14px 16px; border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08); transition: all .2s;
}
.nav-mobile-menu a:hover { background: rgba(0,180,216,.15); color: var(--cyan); }

/* ── HERO ───────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,36,71,.6) 0%,
    rgba(10,36,71,.25) 45%,
    rgba(10,36,71,.8) 100%
  );
}

/* ── HERO CONTENT: central text + doctors on absolute sides ── */
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 100%;
  min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 72px;
  pointer-events: none; /* let clicks pass through to children */
}

/* Center column: text + stats */
.hero-center {
  pointer-events: all;
  max-width: 600px; width: 100%;
  text-align: center;
  padding: 0 24px;
  z-index: 4; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,180,216,.2); border: 1px solid rgba(0,180,216,.5);
  color: var(--cyan-light); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 50px;
  margin-bottom: 18px; animation: fadeInUp .8s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 900; color: var(--white); line-height: 1.1;
  margin-bottom: 16px; animation: fadeInUp .8s ease .15s both;
}
.hero-title span { color: var(--cyan); }
.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 17px); color: rgba(255,255,255,.82);
  line-height: 1.65; margin-bottom: 32px;
  animation: fadeInUp .8s ease .3s both;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp .8s ease .45s both;
}
/* Stats row below actions */
.hero-stats-row {
  display: flex; justify-content: center; gap: 0;
  margin-top: 36px;
  animation: fadeInUp .8s ease .6s both;
}
.hero-stat {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.18);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900; color: var(--cyan); line-height: 1;
}
.hero-stat-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 3px;
}

/* ── DOCTORS: absolute, emerge from bottom ── */
.hero-doctor {
  position: absolute;
  bottom: 0;
  /* Height = how tall the doctor figure appears over the hero */
  height: 90vh;
  /* No max-height cap so the image can grow freely */
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  animation: doctorRise 1.1s cubic-bezier(.2,.8,.3,1) .4s both;
  pointer-events: all; z-index: 3;
}
.hero-doctor--left  { left: 0; }
.hero-doctor--right { right: 0; }

@keyframes doctorRise {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-doctor-img {
  /* Fill the full height of the parent container */
  height: 100%;
  width: auto;
  /* Width: how wide each doctor appears — increase this to make them bigger */
  min-width: clamp(200px, 20vw, 380px);
  object-fit: contain;
  object-position: bottom center;
  display: block;
  /* filter: drop-shadow(0 0 40px rgba(0,180,216,.35)) drop-shadow(0 32px 60px rgba(10,36,71,.7)); */
  /* Fade starts at 82% so most of the figure is fully visible */
  mask-image: linear-gradient(to bottom, black 82%, rgba(0,0,0,.4) 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 82%, rgba(0,0,0,.4) 96%, transparent 100%);
}

.hero-doctor-label {
  position: absolute; bottom: 0;
  left: 50%; transform: translateX(-50%);
  background: rgba(5,20,50,.78);
  border: 1px solid rgba(0,180,216,.4);
  backdrop-filter: blur(10px);
  color: white; text-align: center;
  padding: 10px 18px; border-radius: 14px 14px 0 0;
  white-space: nowrap;
}
.hero-doctor-label strong { display: block; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.hero-doctor-label span   { font-size: 10.5px; color: var(--cyan-light); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: fadeInUp 1s ease 1.2s both;
}
.scroll-indicator span { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .1em; text-transform: uppercase; }
.scroll-arrow { width: 18px; height: 18px; border-right: 2px solid rgba(255,255,255,.45); border-bottom: 2px solid rgba(255,255,255,.45); transform: rotate(45deg); animation: bounce 2s ease infinite; }

/* ── TRUST BAR ──────────────────────────── */
.trust-bar {
  background: var(--navy); padding: 20px 40px;
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-size: 13.5px; font-weight: 500; }
.trust-icon { font-size: 18px; }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,.15); }

/* ── MILESTONE ──────────────────────────── */
.milestone-section { background: linear-gradient(135deg, var(--navy) 0%, #0d3a6e 100%); position: relative; overflow: hidden; }
.milestone-section::before {
  content: '20'; position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: 'Playfair Display', serif; font-size: clamp(180px, 22vw, 320px);
  font-weight: 900; color: rgba(255,255,255,.035); line-height: 1;
  pointer-events: none; user-select: none;
}
.milestone-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.milestone-text .section-tag { color: var(--cyan-light); }
.milestone-text .section-tag::before { background: var(--cyan-light); }
.milestone-features { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.milestone-feature {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 18px; transition: all .3s;
}
.milestone-feature:hover { background: rgba(0,180,216,.1); border-color: rgba(0,180,216,.3); }
.mf-icon { width: 44px; height: 44px; min-width: 44px; background: linear-gradient(135deg, var(--cyan), var(--blue)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mf-text h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.mf-text p  { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.5; }
.milestone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.milestone-stat-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 28px 24px; text-align: center; transition: all .3s;
}
.milestone-stat-card:hover { background: rgba(0,180,216,.12); border-color: rgba(0,180,216,.4); transform: translateY(-4px); }
.ms-number { font-family: 'Playfair Display', serif; font-size: clamp(36px, 5vw, 56px); font-weight: 900; color: var(--cyan); line-height: 1; }
.ms-label  { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; font-weight: 500; line-height: 1.4; }

/* ── DOCTORS ────────────────────────────── */
.doctors-section { background: var(--gray-light); }
.doctors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.doctor-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: all .4s; display: flex; flex-direction: column; }
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-img-wrap {
  position: relative; overflow: hidden; min-height: 300px;
  background: linear-gradient(160deg, var(--navy) 0%, #0d5fa8 100%);
  display: flex; justify-content: center; padding-top: 0px;
}
.doctor-img-wrap img { width: 100%;  object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; position: relative; z-index: 1; }
.doctor-img-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; background: linear-gradient(to top, white, transparent); }
.doctor-body { padding: 28px; flex: 1; }
.doctor-specialty { display: inline-block; background: rgba(0,180,216,.1); color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; margin-bottom: 12px; }
.doctor-card h3 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.doctor-card .doctor-title { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.doctor-card p { font-size: 14.5px; color: var(--gray); line-height: 1.65; margin-bottom: 20px; }
.doctor-creds { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.doctor-cred { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.doctor-cred::before { content: '✓'; color: var(--cyan); font-weight: 700; min-width: 16px; }

/* ── SURGERIES ──────────────────────────── */
.surgeries-section { background: white; }
.surgeries-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; }
.surgeries-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.surgery-card {
  background: var(--gray-light); border-radius: 20px; padding: 28px;
  cursor: pointer; transition: all .3s; position: relative; overflow: hidden;
  border: 2px solid transparent; display: block; color: inherit;
}
.surgery-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), var(--blue)); opacity: 0; transition: opacity .3s; }
.surgery-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: var(--shadow); }
.surgery-card:hover::before { opacity: 1; }
.surgery-card:hover .surgery-icon,
.surgery-card:hover h3,
.surgery-card:hover p   { color: white; }
.surgery-card:hover .surgery-tag { background: rgba(255,255,255,.2); color: white; }
.surgery-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(0,180,216,.1); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; transition: all .3s; position: relative; }
.surgery-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; transition: all .3s; position: relative; }
.surgery-card p  { font-size: 13.5px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; transition: all .3s; position: relative; }
.surgery-tag { display: inline-block; position: relative; background: rgba(0,180,216,.1); color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 50px; transition: all .3s; }

/* ── BEFORE/AFTER GALLERY ───────────────── */
.ba-section { background: var(--gray-light); }
.ba-intro { max-width: 600px; margin-bottom: 48px; }
.ba-carousel-wrap { position: relative; }
.ba-track-outer { overflow: hidden; }
.ba-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.ba-card {
  min-width: 280px; background: white; border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0;
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.ba-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.ba-card:hover .ba-img-wrap img { transform: scale(1.04); }
.ba-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 50px;
  backdrop-filter: blur(6px);
}
.ba-badge.antes  { background: rgba(255,80,80,.85); color: white; }
.ba-badge.despues { background: rgba(0,180,216,.9); color: white; }
.ba-foot { padding: 14px 16px; text-align: center; }
.ba-foot p { font-size: 13px; color: var(--gray); }
.ba-foot strong { color: var(--navy); display: block; font-size: 14px; margin-bottom: 2px; }
.ba-controls { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.ba-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); background: transparent; color: var(--blue); font-size: 16px; cursor: pointer; transition: all .3s; display: flex; align-items: center; justify-content: center; }
.ba-btn:hover { background: var(--blue); color: white; }
.ba-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.ba-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all .3s; }
.ba-dot.active { background: var(--cyan); width: 24px; border-radius: 4px; }

/* ── TESTIMONIALS ───────────────────────── */
.testimonials-section { background: white; overflow: hidden; }
.carousel-track-outer { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.testimonial-card { min-width: 280px; max-width: 280px; background: var(--gray-light); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); flex-shrink: 0; }
.stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 14px; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.author-name   { font-weight: 600; font-size: 14px; color: var(--navy); }
.author-detail { font-size: 12px; color: var(--gray); }
.author-result { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--cyan); }
.carousel-controls { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); background: transparent; color: var(--blue); font-size: 16px; cursor: pointer; transition: all .3s; display: flex; align-items: center; justify-content: center; }
.carousel-btn:hover { background: var(--blue); color: white; }
.carousel-dots { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all .3s; }
.dot.active { background: var(--cyan); width: 24px; border-radius: 4px; }

/* ── FAQ / ACCORDION ────────────────────── */
.faq-section { background: var(--gray-light); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.faq-item {
  background: white; border-radius: 16px;
  border: 1.5px solid rgba(0,180,216,.15);
  overflow: hidden; transition: border-color .3s;
}
.faq-item.open { border-color: var(--cyan); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; text-align: left; gap: 12px;
}
.faq-q-text { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.faq-icon { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: rgba(0,180,216,.12); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--cyan); color: white; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.faq-item.open .faq-body { max-height: 400px; }
.faq-body-inner { padding: 0 24px 20px; font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ── TREATMENTS ─────────────────────────── */
.treatments-section { background: white; }
.treatments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.treatment-item { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--gray-light); border-radius: 16px; border: 2px solid transparent; transition: all .3s; }
.treatment-item:hover { border-color: var(--cyan); background: rgba(0,180,216,.04); }
.ti-icon { width: 52px; height: 52px; min-width: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ti-text h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ti-text p  { font-size: 13.5px; color: var(--gray); line-height: 1.6; }

/* ── BLOG PREVIEW ───────────────────────── */
.blog-section { background: var(--gray-light); }
.blog-note { background: linear-gradient(135deg, rgba(0,180,216,.1), rgba(13,95,168,.1)); border: 2px solid rgba(0,180,216,.25); border-radius: 16px; padding: 24px 28px; margin-bottom: 40px; display: flex; align-items: center; gap: 16px; }
.blog-note-icon { font-size: 28px; }
.blog-note p { font-size: 14px; color: var(--text); line-height: 1.6; }
.blog-note p strong { color: var(--navy); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: all .3s; color: inherit; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 60px; background: linear-gradient(135deg, var(--navy), #0d5fa8); }
.blog-body { padding: 20px; }
.blog-cat { display: inline-block; background: rgba(0,180,216,.1); color: var(--cyan); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 50px; margin-bottom: 10px; }
.blog-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.blog-card p  { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── CTA / CONTACT ──────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, #0d3a6e 50%, #0a5289 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(0,180,216,.07); top: -200px; right: -100px; pointer-events: none; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-text h2 { color: white; }
.cta-text p  { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.cta-contact-items { display: flex; flex-direction: column; gap: 16px; }
.cta-contact-item { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.85); font-size: 15px; }
.cci-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(0,180,216,.2); border: 1px solid rgba(0,180,216,.4); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cta-contact-item a { color: inherit; }
.cta-form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; padding: 36px; backdrop-filter: blur(8px); }
.cta-form h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: white; margin-bottom: 24px; font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
  color: white; font-family: 'Outfit', sans-serif; font-size: 14px; outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 90px; }
::placeholder { color: rgba(255,255,255,.4); }

/* ── FOOTER ─────────────────────────────── */
footer { background: #060f1e; color: rgba(255,255,255,.7); padding: 56px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 60px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.55); }
footer h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: white; margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: rgba(255,255,255,.6); font-size: 13.5px; transition: color .2s; }
footer ul a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }

/* ── FLOATING / FIXED CTAs ──────────────── */
/* All floating elements stacked bottom-right */
.floating-actions {
  position: fixed; bottom: 28px; right: 28px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  z-index: 999;
}
.fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: all .3s; font-size: 22px; }
.fab:hover { transform: scale(1.12); }
.fab-wa    { background: #25d366; }
.fab-phone { background: var(--blue); display: none; }

/* Consult pill — sits above WA and phone fabs */
.fab-consult {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,180,216,.45);
  transition: all .3s; white-space: nowrap;
  animation: fadeInUp .8s ease 1.5s both;
}
.fab-consult:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 36px rgba(0,180,216,.55); }
.fab-consult .fab-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.9);
  animation: pulse-dot 1.5s ease infinite; flex-shrink: 0;
}

/* Mobile bottom bar */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(0,180,216,.3); padding: 10px 16px; gap: 8px; z-index: 998; }
.mob-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: all .2s; cursor: pointer; border: none; font-family: 'Outfit', sans-serif; }
.mob-btn-call { background: var(--blue); color: white; }
.mob-btn-wa   { background: #25d366; color: white; }
.mob-btn-form { background: rgba(255,255,255,.1); border: 1.5px solid rgba(0,180,216,.4); color: white; }

/* ── MODAL FORM ─────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,36,71,.88); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: 28px; padding: 44px 40px; max-width: 520px; width: 100%; position: relative; box-shadow: var(--shadow-lg); animation: fadeInUp .4s ease; }
.modal-close { position: absolute; top: 18px; right: 22px; background: rgba(100,116,139,.12); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--gray); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-close:hover { background: #fee2e2; color: #dc2626; }
.modal-logo { height: 42px; margin-bottom: 20px; }
.modal-box h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.modal-box .modal-desc { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.modal-form .field { margin-bottom: 14px; }
.modal-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 5px; letter-spacing: .02em; }
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s; background: var(--gray-light);
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,216,.15); background: white; }
.modal-form textarea { resize: vertical; min-height: 80px; }
.modal-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-submit { width: 100%; margin-top: 8px; justify-content: center; font-size: 16px; padding: 15px; }
.modal-privacy { text-align: center; font-size: 12px; color: var(--gray); margin-top: 12px; }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce   { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }
@keyframes pulse-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .6; } }

/* ── RESPONSIVE ─────────────────────────── */
/* ── FOOTER SOCIAL ──────────────────────── */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; color: rgba(255,255,255,.7); font-size: 15px;
  text-decoration: none;
}
.footer-social a:hover { background: var(--cyan); border-color: var(--cyan); color: white; transform: translateY(-2px); }
/* SVG icons inside footer social */
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

@media (max-width: 1200px) {
  .hero-doctor-img { max-width: clamp(160px, 14vw, 260px); }
}
@media (max-width: 900px) {
  .hero-content { padding: 0 20px 100px; }
  /* hide doctors on mobile to avoid overlap */
  .hero-doctor  { display: none; }
  .hero-title { font-size: 36px; }
  .milestone-inner  { grid-template-columns: 1fr; gap: 40px; }
  .doctors-grid     { grid-template-columns: 1fr; }
  .surgeries-grid   { grid-template-columns: 1fr 1fr; }
  .faq-grid         { grid-template-columns: 1fr; }
  .treatments-grid  { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr; }
  .cta-inner        { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .trust-bar        { gap: 20px; }
  .trust-divider    { display: none; }
  .nav-links        { display: none; }
  .hamburger        { display: flex; }
  .fab-phone        { display: flex; }
  .mobile-cta-bar   { display: flex; }
  .fab-consult      { display: none; }
  footer            { padding-bottom: 80px; }
  .floating-actions { bottom: 88px; right: 16px; }
}
@media (max-width: 580px) {
  .surgeries-grid { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  section         { padding: 60px 16px; }
  .hero-content   { padding: 0 16px 88px; }
  .hero-stats-row { gap: 0; flex-wrap: wrap; justify-content: center; }
  .hero-stat      { padding: 8px 16px; }
  .modal-box      { padding: 32px 24px; }
  .modal-form .field-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   NUEVOS ESTILOS: Surgery cards, Media buttons, Modales, Turnstile
   Doctor video btn  —  v3.0
   ══════════════════════════════════════════════════════════════════ */

/* ── Surgery card refactor ──────────────────────────────────────── */
/*
  Override del ::before del CSS original — lo limitamos en altura
  para que solo cubra .surgery-card-inner, nunca .surgery-media-row.
  Usamos un pseudo-elemento en .surgery-card-inner en su lugar.
*/
.surgery-card::before { display: none !important; }

/* Overlay de hover solo sobre el área inner */
.surgery-card-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  opacity: 0;
  transition: opacity .3s;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 0;
  pointer-events: none;
}
.surgery-card:hover .surgery-card-inner::before { opacity: 1; }

/* Texto del inner por encima del overlay */
.surgery-card-inner .surgery-icon,
.surgery-card-inner h3,
.surgery-card-inner p,
.surgery-card-inner .surgery-tag { position: relative; z-index: 1; }

/* Colores en hover */
.surgery-card:hover .surgery-card-inner h3,
.surgery-card:hover .surgery-card-inner p,
.surgery-card:hover .surgery-card-inner .surgery-icon { color: white; }
.surgery-card:hover .surgery-card-inner .surgery-tag {
  background: rgba(255,255,255,.2); color: white;
}
.surgery-card {
  background: white;
  border: 1.5px solid #e2eaf4;
  border-radius: var(--radius);
  /* overflow: hidden  ← ELIMINADO: causaba que los botones quedaran tapados */
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; /* necesario para el ::before */
}
.surgery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--cyan);
}

/* Inner clickable area — z-index 1 para estar sobre el ::before (z-index 0) */
.surgery-card-inner {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
  flex: 1;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border-radius: var(--radius) var(--radius) 0 0; /* esquinas redondeadas solo arriba */
}
.surgery-card-inner:hover { color: var(--text); }
.surgery-card-inner .surgery-icon { font-size: 36px; margin-bottom: 14px; }
.surgery-card-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
  transition: color .3s;
}
.surgery-card-inner p {
  font-size: 14px; color: var(--gray); line-height: 1.6; flex: 1;
  transition: color .3s;
}
.surgery-card-inner .surgery-tag {
  display: inline-flex; align-items: center;
  background: rgba(0,180,216,.1); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 50px; margin-top: 14px; align-self: flex-start;
  transition: background .3s, color .3s;
}

/* ── Surgery media row (audio / video / info buttons) ────────────── */
.surgery-media-row {
  display: flex;
  gap: 6px;
  padding: 10px 14px 14px;
  border-top: 1px solid #eef3f9;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;          /* por encima del ::before overlay del card */
  background: white;   /* fondo sólido para que siempre sea visible */
  border-radius: 0 0 var(--radius) var(--radius);
}

.smr-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .22s;
  text-decoration: none; white-space: nowrap;
}
.smr-btn span { font-size: 11px; }

/* Audio — azul suave */
.smr-audio {
  background: rgba(13,95,168,.08);
  border-color: rgba(13,95,168,.25);
  color: var(--blue);
}
.smr-audio:hover {
  background: var(--blue); color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(13,95,168,.3);
}

/* Video — cyan */
.smr-video {
  background: rgba(0,180,216,.09);
  border-color: rgba(0,180,216,.3);
  color: #0096bb;
}
.smr-video:hover {
  background: var(--cyan); color: white;
  border-color: var(--cyan);
  box-shadow: 0 4px 12px rgba(0,180,216,.35);
}

/* Info — gris neutro */
.smr-info {
  background: rgba(100,116,139,.08);
  border-color: rgba(100,116,139,.2);
  color: var(--gray);
}
.smr-info:hover {
  background: var(--navy); color: white;
  border-color: var(--navy);
}

/* ── Doctor video button (sobre la foto) ────────────────────────── */
/*
  FIX: .doctor-img-wrap tiene overflow:hidden en el CSS original,
  lo que recorta el botón absoluto. Lo sobreescribimos aquí.
  Usamos un wrapper interno .doctor-img-clip para el overflow.
*/
.doctor-img-wrap {
  position: relative;
  overflow: visible !important;  /* permite que el botón salga de los bordes */
  min-height: 300px;
}

/* El clip de overflow ahora va en la imagen misma */
.doctor-img-wrap img {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.doctor-video-btn {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(10,36,71,.78);
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  color: white; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 50px;
  cursor: pointer; transition: all .25s;
  white-space: nowrap;
  z-index: 10;           /* por encima de la imagen y su gradiente */
  pointer-events: all;
}
.doctor-video-btn:hover {
  background: rgba(0,180,216,.9);
  border-color: var(--cyan);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,180,216,.4);
}
.dvb-icon {
  width: 24px; height: 24px;
  background: var(--cyan); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; padding-left: 2px;
  flex-shrink: 0;
}
.dvb-label { font-size: 12px; }

/* ── Media modals (audio + video) ─────────────────────────────── */
.media-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,36,71,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.media-modal-overlay.open {
  opacity: 1; pointer-events: all;
}

.media-modal-box {
  background: white; border-radius: 20px;
  width: 100%; max-width: 540px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  overflow: hidden;
  transform: scale(.94);
  transition: transform .3s;
}
.media-modal-overlay.open .media-modal-box {
  transform: scale(1);
}

.media-modal-box--video {
  max-width: 820px;
}

.media-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef3f9;
  background: var(--gray-light);
}
.media-modal-head h4 {
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.media-modal-close {
  background: none; border: none; font-size: 18px;
  color: var(--gray); cursor: pointer; padding: 4px 8px;
  border-radius: 8px; transition: background .2s;
}
.media-modal-close:hover { background: rgba(0,0,0,.07); }

.media-modal-body {
  padding: 20px;
}
.media-modal-body--video {
  padding: 0;
  aspect-ratio: 16/9;
  background: #000;
}
.media-modal-body--video iframe {
  width: 100%; height: 100%;
  display: block;
}

.media-modal-note {
  padding: 0 20px 16px;
  font-size: 12px; color: var(--gray);
}

/* ── Turnstile widget ─────────────────────────────────────────── */
.turnstile-wrap {
  margin: 8px 0 16px;
}
.cf-turnstile {
  min-height: 65px;
}
.turnstile-note {
  font-size: 11px; color: var(--gray); margin-top: 6px;
}

/* ── Responsive adjustments ─────────────────────────────────────── */
@media (max-width: 600px) {
  .surgery-media-row { gap: 5px; }
  .smr-btn span { display: none; }  /* solo icono en móvil */
  .smr-btn { padding: 7px 10px; font-size: 14px; }
  .media-modal-box--video { max-width: 100%; }
}

/* ── Fix doctor-img-accent z-index (debe quedar BAJO el botón de video) ── */
.doctor-img-accent {
  z-index: 2;   /* sobre la imagen (z-index:1) pero bajo el botón (z-index:10) */
}

/* ── OVERRIDE FINAL: anula overflow:hidden y display:block del .surgery-card original ── */
.surgery-card {
  overflow: visible !important;
  display: flex !important;
}

/* ── MODAL COMPACTO — sobreescribe valores grandes del CSS base ──── */
.modal-box {
  padding: 20px 22px 18px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
}
.modal-logo           { height: 36px !important; margin-bottom: 0 !important; }
.modal-box h3         { font-size: 18px !important; margin-bottom: 2px !important; }
.modal-box .modal-desc { font-size: 12px !important; margin-bottom: 0 !important; }
.modal-form .field    { margin-bottom: 0 !important; }
.modal-form           { gap: 8px; display: flex; flex-direction: column; }
.modal-form textarea  { min-height: 52px !important; resize: none !important; }
.modal-privacy        { margin-top: 6px !important; font-size: 11px !important; }

/* ── CTA inline form — layout de 2 columnas ─────────────────────── */
.cta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cta-form .form-group { margin-bottom: 8px; }

/* Labels blancos — legibles sobre el fondo azul del cta-section */
.cta-form .form-group label,
.cta-form label {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.85) !important;   /* sobreescribe el color:navy del bloque anterior */
  display: block; margin-bottom: 4px;
}

/* Inputs/selects/textarea con fondo blanco sólido — sobreescribe rgba(255,255,255,.1) */
.cta-form .form-group input,
.cta-form .form-group select,
.cta-form .form-group textarea,
.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%; padding: 9px 12px;
  background: white !important;              /* fondo sólido, anula la herencia azul */
  color: #1a2a3a !important;                 /* texto oscuro legible */
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 10px; font-size: 13.5px;
  font-family: inherit; transition: border-color .2s;
  outline: none;
}
.cta-form .form-group input:focus,
.cta-form .form-group select:focus,
.cta-form .form-group textarea:focus,
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus { border-color: var(--cyan); }

/* Opciones del select — fondo y texto legibles en todos los navegadores */
.cta-form select option,
.cta-form .form-group select option {
  background: white !important;
  color: #1a2a3a !important;
}

.cta-form .form-group textarea,
.cta-form textarea { min-height: 52px; resize: none; }

/* Selector de país dentro del CTA */
.cta-form .pais-select-wrap {
  background: white !important;
  border: 1.5px solid rgba(255,255,255,.4);
}
.cta-form .pais-select-wrap select {
  color: #1a2a3a !important;
  background: transparent !important;
}

#ctaSubmitBtn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

@media (max-width: 600px) {
  .cta-form .form-row { grid-template-columns: 1fr; }
}
