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

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

:root {
  --navy:        #0B3360;
  --navy-dark:   #071E3D;
  --navy-light:  #1A4C84;
  --teal:        #0C7A8A;
  --teal-light:  #14A0B4;
  --gold:        #C88520;
  --gold-light:  #E8A83A;
  --cream:       #F7F4EE;
  --cream-dark:  #EDE9E0;
  --white:       #FFFFFF;
  --gray-100:    #F0F4FA;
  --gray-200:    #DDE4EF;
  --gray-400:    #8E9DBB;
  --gray-600:    #4A5A74;
  --text:        #18263A;
  --text-med:    #3D5268;
  --text-light:  #667A94;
  --font-d:      'Cormorant Garamond', Georgia, serif;
  --font-b:      'DM Sans', system-ui, sans-serif;
  --sh-sm:       0 1px 4px rgba(7,30,61,.07), 0 1px 2px rgba(7,30,61,.05);
  --sh-md:       0 4px 14px rgba(7,30,61,.10), 0 2px 6px rgba(7,30,61,.06);
  --sh-lg:       0 10px 32px rgba(7,30,61,.12), 0 4px 12px rgba(7,30,61,.07);
  --sh-xl:       0 20px 56px rgba(7,30,61,.15), 0 8px 22px rgba(7,30,61,.09);
  --r:           12px;
  --r-lg:        20px;
  --r-xl:        30px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--cream); /* fallback when canvas is disabled */
}

body {
  font-family: var(--font-b);
  color: var(--text);
  background: transparent; /* canvas renders behind body */
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Prevent zoom on input focus in iOS */
input, select, textarea { font-size: 16px; }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-d);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--navy-dark);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(11,51,96,0.1);
  box-shadow: 0 1px 12px rgba(11,51,96,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 58px;
  width: auto;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text span:first-child {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}
.nav-logo-text span:last-child {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-med);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy-dark); background: var(--gray-100); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  flex-shrink: 0;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.52rem 1rem;
  border-radius: 7px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37,211,102,0.35);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-cta:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.45);
}
.nav-cta svg { width: 15px; height: 15px; fill: #fff; }
.nav-hamburger {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0 1rem;
  margin-left: auto;
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 600;
  height: 36px;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--navy-light); }
.nav-hamburger span {
  display: none;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 0.5rem 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-med);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--navy); }
.mobile-menu .nav-cta {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  border-bottom: none;
  color: #fff;
}
.mobile-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 0.9rem 0 0.4rem;
  border-bottom: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.mobile-toggle-arrow {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  opacity: 0.75;
}
.mobile-section-label.open .mobile-toggle-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
.mobile-section-items {
  display: none;
  flex-direction: column;
  padding-bottom: 0.25rem;
}
.mobile-section-items.open {
  display: flex;
}
.mobile-menu .mobile-sub {
  padding-left: 1rem;
  font-size: 0.86rem;
  color: var(--text-light) !important;
}

/* ─── NAV DROPDOWN ──────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex !important; align-items: center; gap: 0.22rem; }
.nav-caret { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.2s; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid rgba(11,51,96,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(7,30,61,0.13), 0 2px 8px rgba(7,30,61,0.07);
  padding: 0.4rem;
  min-width: 215px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block !important;
  padding: 0.48rem 0.85rem !important;
  font-size: 0.82rem !important;
  color: var(--text-med) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  background: none !important;
  border-bottom: none !important;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s !important;
}
.nav-dropdown-menu a:hover { color: var(--navy-dark) !important; background: var(--gray-100) !important; }

/* ─── IMAGE CARDS (drmonges style) ────────────────────────── */
.img-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  background: var(--navy-dark);
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.img-card:hover img { transform: scale(1.08); }
.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,30,61,0.94) 0%, rgba(11,51,96,0.5) 45%, rgba(0,0,0,0.1) 100%);
  transition: background 0.35s;
}
.img-card:hover .img-card-overlay {
  background: linear-gradient(to top, rgba(7,30,61,0.98) 0%, rgba(11,51,96,0.65) 50%, rgba(0,0,0,0.2) 100%);
}
.img-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1rem;
}
.img-card-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.52rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.img-card-badge.teal { background: var(--teal); }
.img-card-title {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.img-card-sub {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
  line-height: 1.45;
}
.img-card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.img-card:hover .img-card-arrow {
  background: rgba(255,255,255,0.22);
  transform: translate(2px,-2px);
}
.img-card-arrow svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.5; }
.patho-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.patho-grid .img-card { aspect-ratio: 3/4; }
.treat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.treat-grid .img-card { aspect-ratio: 4/3; }

/* ─── WHATSAPP FLOAT ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5), 0 1px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.whatsapp-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
.whatsapp-float-btn svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float-label {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }

/* ─── SOCIAL LINKS ─────────────────────────────────────────── */
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.13); color: #fff; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://placehold.co/1400x900/0B2A50/1A4C84?text=.');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,30,61,0.92) 0%, rgba(11,51,96,0.72) 45%, rgba(12,122,138,0.18) 100%);
}
.hero-orb {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,122,138,0.18) 0%, rgba(20,160,180,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-orb2 {
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,133,32,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(12,122,138,0.18);
  border: 1px solid rgba(20,160,180,0.3);
  color: #5DD6E8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5DD6E8;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(200,133,32,0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,133,32,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.hero-image-wrap {
  display: flex;
  justify-content: center;
}
.hero-card-float {
  position: relative;
  width: 560px;
  max-width: 100%;
}
.hero-card-float img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}
.hero-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: var(--r);
  padding: 1rem 1.3rem;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-float-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-badge-icon svg { width: 22px; height: 22px; fill: #fff; }
.hero-float-badge-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.hero-float-badge-text span {
  font-size: 0.72rem;
  color: var(--text-light);
}
.hero-float-badge2 {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--navy-dark);
  border-radius: var(--r);
  padding: 0.8rem 1.1rem;
  box-shadow: var(--sh-lg);
}
.hero-float-badge2 strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.hero-float-badge2 span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* ─── SECTIONS ────────────────────────────────────────────── */
.section {
  padding: 5rem 1.5rem;
}
.section-alt {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: none;
}
.section-dark {
  background: var(--navy-dark);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 1.02rem;
  color: var(--text-med);
  line-height: 1.75;
  max-width: 580px;
}
.section-header {
  margin-bottom: 3rem;
}
.section-header-centered {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-centered .section-label {
  justify-content: center;
}
.section-header-centered .section-sub {
  margin: 0 auto;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  border: 1px solid rgba(11,51,96,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}
.card-body { padding: 1.75rem; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(12,122,138,0.1), rgba(20,160,180,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.8; }
.card-title {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.6rem;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-med);
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 1rem;
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.6rem; }
.card-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ─── GRID HELPERS ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ─── FEATURE ROW ─────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  position: relative;
}
.feature-img img { width: 100%; height: 420px; object-fit: cover; }
.feature-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(7,30,61,0.88);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  color: #fff;
  font-size: 0.85rem;
}
.feature-img-badge strong { display: block; color: var(--gold-light); font-size: 1rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-med);
}
.feature-list-item::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3.5 3.5L14 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ─── OBRAS SOCIALES STRIP ────────────────────────────────── */
.os-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.os-badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  box-shadow: var(--sh-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.os-badge:hover {
  border-color: var(--teal-light);
  box-shadow: 0 2px 8px rgba(12,122,138,0.2);
}

/* ─── DOCTOR CARD ─────────────────────────────────────────── */
.doctor-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  display: grid;
  grid-template-columns: 320px 1fr;
}
.doctor-img { position: relative; }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.doctor-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--white));
}
.doctor-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.doctor-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.doctor-name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.doctor-spec {
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.doctor-bio {
  font-size: 0.92rem;
  color: var(--text-med);
  line-height: 1.78;
  margin-bottom: 1.5rem;
}
.doctor-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.doctor-tag {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(12,122,138,0.35);
  width: fit-content;
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(12,122,138,0.45);
}
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.72rem 1.4rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ─── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--teal) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,133,32,0.15) 0%, transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* ─── ZONE CARDS ───────────────────────────────────────────── */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.zone-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 1.2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.zone-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 4px 14px rgba(12,122,138,0.18);
  transform: translateY(-3px);
}
.zone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(12,122,138,0.1), rgba(20,160,180,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.3rem;
}
.zone-name { font-weight: 600; font-size: 0.88rem; color: var(--navy-dark); margin-bottom: 0.25rem; }
.zone-dist { font-size: 0.74rem; color: var(--text-light); }

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.75;
  margin-top: 1rem;
  color: rgba(255,255,255,0.58);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-d);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--teal-light); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.38); }

/* ─── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 70%, var(--teal) 100%);
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.75;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ─── STUDY/PATHO CARDS ────────────────────────────────────── */
.detail-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid rgba(11,51,96,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.detail-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.detail-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 1.5rem;
  position: relative;
}
.detail-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.detail-card-title {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.detail-card-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}
.detail-card-body { padding: 1.5rem; }
.detail-card-body p { font-size: 0.88rem; color: var(--text-med); line-height: 1.72; }
.detail-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-top: 0.75rem;
  border: 1px solid rgba(12,122,138,0.15);
}

/* ─── ACCORDION ────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-dark);
  transition: background 0.2s;
  user-select: none;
}
.accordion-header:hover { background: var(--gray-100); }
.accordion-header .acc-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.accordion-item.open .acc-arrow { transform: rotate(180deg); background: var(--teal); }
.accordion-item.open .acc-arrow svg { stroke: #fff; }
.acc-arrow svg { width: 12px; height: 12px; stroke: var(--text-light); fill: none; stroke-width: 2.5; }
.accordion-body {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}
.accordion-item.open .accordion-body {
  max-height: 600px;
  padding: 0 1.4rem 1.4rem;
}
.accordion-body p { font-size: 0.88rem; color: var(--text-med); line-height: 1.75; }

/* ─── CONTACT ──────────────────────────────────────────────── */
.contact-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--sh-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-b);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12,122,138,0.12);
  background: #fff;
}
textarea.form-input { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-b);
}
.form-submit:hover { background: var(--navy-light); transform: translateY(-1px); }
.contact-info-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh-md);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-item:last-child { border-bottom: none; }
.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(12,122,138,0.1), rgba(20,160,180,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 2; }
.ci-label { font-size: 0.74rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.2rem; }
.ci-val { font-size: 0.92rem; font-weight: 500; color: var(--navy-dark); }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-img img { min-height: 280px; max-height: 320px; }
  .doctor-img-overlay { background: linear-gradient(to bottom, transparent 50%, var(--white)); }
  .feature-img img { height: 340px; }
}

/* ─── TABLET ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Layout */
  .section { padding: 3rem 1.1rem; }
  .container { padding: 0; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Nav */
  .nav-inner { height: 62px; padding: 0 1rem; gap: 0.75rem; }
  .nav-logo img { height: 48px; }
  .nav-logo-text span:first-child { font-size: 1rem; }
  .nav-logo-text span:last-child { font-size: 0.62rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 2.5rem 1.1rem 3rem; }
  .hero-image-wrap { display: none; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 1rem; }
  .hero-desc { font-size: 0.97rem; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; padding: 1rem 1.5rem; font-size: 1rem; }
  .hero-stats { gap: 0; margin-top: 2rem; padding-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Image cards */
  .patho-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .patho-grid .img-card { aspect-ratio: 1/1; }
  .treat-grid .img-card { aspect-ratio: 1/1; height: auto !important; }

  /* Feature rows */
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 1.5rem; }
  .feature-img img { height: 260px; }
  .feature-img-badge { bottom: 1rem; left: 1rem; right: 1rem; }

  /* Doctor */
  .doctor-body { padding: 1.75rem; }

  /* Page hero */
  .page-hero { padding: 2.5rem 1.1rem 2.2rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 0.75rem; }
  .page-hero p { font-size: 0.95rem; }

  /* CTA band */
  .cta-band { padding: 3rem 1.1rem; }
  .cta-band .actions { flex-direction: column; align-items: stretch; }
  .cta-band .actions a, .cta-band .actions button { text-align: center; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer { padding: 2.5rem 1.1rem 1.5rem; }

  /* Misc */
  .zone-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .contact-form { padding: 1.5rem; }
  .os-strip { gap: 0.5rem; }
  .btn-teal, .btn-navy, .btn-outline { width: 100%; justify-content: center; }
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Layout */
  .section { padding: 2.25rem 1rem; }

  /* Nav: show name but hide subtitle on small screens */
  .nav-logo-text { display: flex; }
  .nav-logo-text span:first-child { font-size: 0.95rem; }
  .nav-logo-text span:last-child { display: none; }
  .nav-logo img { height: 40px; }
  .nav-inner { height: 58px; }

  /* Mobile menu: bigger touch targets */
  .mobile-menu a { font-size: 1rem; padding: 0.85rem 0; }
  .mobile-menu .mobile-sub { font-size: 0.92rem; padding: 0.7rem 0 0.7rem 1rem; }
  .mobile-menu .nav-cta { font-size: 1rem; padding: 1rem; margin-top: 0.75rem; }
  .mobile-section-label { font-size: 0.7rem; padding: 1rem 0 0.2rem; }

  /* Hero */
  .hero-inner { padding: 2rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.95rem; line-height: 1.12; }
  .hero-badge { font-size: 0.68rem; padding: 0.32rem 0.75rem; margin-bottom: 1rem; }
  .hero-desc { font-size: 0.93rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 1.5rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.65rem; }

  /* Cards */
  .patho-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .treat-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .img-card-title { font-size: 0.95rem; }
  .img-card-sub { font-size: 0.68rem; }
  .img-card-content { padding: 0.75rem 0.7rem; }

  /* Feature images */
  .feature-img img { height: 220px; }

  /* Page hero */
  .page-hero { padding: 2rem 1rem 1.75rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero p { font-size: 0.9rem; line-height: 1.65; }
  .breadcrumb { font-size: 0.73rem; margin-bottom: 1rem; }

  /* Section titles */
  .section-title { font-size: 1.65rem; }

  /* Cards in grids */
  .card-body { padding: 1.25rem; }
  .detail-card-body { padding: 1.1rem; }

  /* Contact */
  .contact-form { padding: 1.1rem; border-radius: var(--r-lg); }
  .contact-info-card { padding: 1.25rem; }

  /* Zone grid */
  .zone-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .zone-card { padding: 0.9rem 0.75rem; }
  .zone-name { font-size: 0.82rem; }

  /* CTA band */
  .cta-band { padding: 2.5rem 1rem; }
  .cta-band h2 { font-size: 1.65rem; }

  /* WhatsApp float: bigger tap target */
  .whatsapp-float { bottom: 1.1rem; right: 1.1rem; }
  .whatsapp-float-btn { width: 62px; height: 62px; }
  .whatsapp-float-btn svg { width: 32px; height: 32px; }

  /* Footer */
  .site-footer { padding: 2rem 1rem 1.25rem; }
  .footer-col h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
  .footer-col ul { gap: 0.4rem; }
  .footer-contact-item { font-size: 0.8rem; }

  /* Accordion */
  .accordion-header { font-size: 0.9rem; padding: 0.95rem 1.1rem; }
  .accordion-body p { font-size: 0.85rem; }

  /* Doctor section */
  .doctor-body { padding: 1.25rem; }
  .doctor-name { font-size: 1.7rem; }
  .doctor-spec { font-size: 0.95rem; }
  .doctor-bio { font-size: 0.88rem; }

  /* Testimonios */
  .testi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* handled below in carousel block */
}

/* ─── MOBILE ENHANCEMENTS ──────────────────────────────────── */

/* Safe-area insets for iPhone notch / Dynamic Island / home bar */
.site-nav {
  padding-top: env(safe-area-inset-top, 0px);
}
.mobile-menu {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-height: calc(100dvh - 62px);          /* dvh for iOS Safari */
}
.site-footer {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}
.cta-band {
  padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
}

/* Override any inline height="Xpx" on img-cards at mobile */
@media (max-width: 768px) {
  .img-card[style] { height: auto !important; }
  .img-card[style] img { height: 200px !important; object-fit: cover; }
}

@media (max-width: 480px) {
  .img-card[style] img { height: 160px !important; }

  /* Hero stats: switch to 2-column on very narrow screens to avoid cramping */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .hero-stat-num { font-size: 1.45rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Breadcrumb: allow wrapping, never overflow */
  .breadcrumb { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }

  /* Detail cards / grid-3 inside section pages */
  .grid-3 { grid-template-columns: 1fr; }

  /* Section-alt: more opaque background so text is readable over the animated canvas */
  .section-alt { background: rgba(255,255,255,0.92) !important; }

  /* Ensure no element escapes viewport */
  .container, .section, .page-hero, .cta-band { overflow-x: hidden; }

  /* Zone cards: minimum readable size */
  .zone-name { font-size: 0.8rem; }
  .zone-card { padding: 0.8rem 0.6rem; }

  /* OS strip logos: scale down properly */
  .os-logo { height: 28px !important; max-width: 80px; }

  /* Footer: ensure items don't overflow */
  .footer-col { overflow: hidden; }
  .footer-col a, .footer-contact-item { word-break: break-word; }
}

/* Minimum touch target: 44×44 px on all interactive elements (WCAG 2.5.5) */
@media (max-width: 768px) {
  .mobile-menu a,
  .mobile-menu button,
  .mobile-section-label,
  .accordion-header,
  .btn-primary, .btn-secondary,
  .btn-teal, .btn-navy, .btn-outline,
  .nav-hamburger,
  .form-submit {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Patho / treat grids: equal aspect ratio cells on phone */
  .patho-grid .img-card,
  .treat-grid .img-card {
    aspect-ratio: 4/3;
  }

  /* Feature image: cap height so it doesn't dominate mobile viewport */
  .feature-img { overflow: hidden; border-radius: var(--r-lg); }
  .feature-img img { width: 100%; object-fit: cover; }

  /* Doctor image */
  .doctor-img img { width: 100%; object-fit: cover; }

  /* Tables that may appear in blog posts */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Blog content headings */
  .blog-content h2, .blog-content h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
}

/* ─── NUESTRO CENTRO: mobile grid fix ──────────────────────── */
@media (max-width: 768px) {
  .centro-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .centro-grid > div:first-child img {
    height: 280px !important;
  }
}

/* ─── TESTIMONIOS: mobile carousel ─────────────────────────── */
@media (max-width: 768px) {
  /* Convert grid to horizontal scroll carousel */
  .testi-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 0.25rem 1.1rem 1rem;
    margin-left: -1.1rem;
    margin-right: -1.1rem;
    /* Hide scrollbar visually but keep scrolling */
    scrollbar-width: none;
  }
  .testi-grid::-webkit-scrollbar { display: none; }

  .testi-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: start;
    padding: 1.25rem;
  }

  /* Hint there are more cards: last card peeks slightly */
  .testi-card:last-child {
    margin-right: 1.1rem;
  }

  /* Typography tightening inside cards */
  .testi-quote svg { width: 26px; height: 24px; }
  .testi-quote { margin-bottom: 0.6rem; }
  .testi-stars { font-size: 0.88rem; margin-bottom: 0.55rem; }
  .testi-text {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 0.85rem;
  }
  .testi-name { font-size: 0.87rem; }
  .testi-role { font-size: 0.73rem; }
  .testi-avatar { width: 36px; height: 36px; font-size: 1rem; }
  .testi-author { padding-top: 0.75rem; gap: 0.6rem; }

  /* Scroll indicator dots */
  #testimonios .section-header-centered::after {
    content: '← deslizá para ver más →';
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-family: var(--font-b);
    letter-spacing: 0.02em;
  }
}

/* Extra-small screens (≤ 360px) */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.65rem; }
  .page-hero h1 { font-size: 1.45rem; }
  .section-title { font-size: 1.45rem; }
  .patho-grid { grid-template-columns: 1fr !important; }
  .treat-grid { grid-template-columns: 1fr !important; }
  .zone-grid { grid-template-columns: 1fr !important; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .btn-primary, .btn-secondary, .btn-teal, .btn-navy, .btn-outline {
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
  }
}

/* ─── TESTIMONIOS ─────────────────────────────────────────── */
.testi-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-dark);
  box-shadow: var(--sh-sm);
  margin-top: 1rem;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.testi-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.testi-quote { margin-bottom: 0.85rem; opacity: 0.9; }

.testi-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.testi-text {
  font-size: 0.875rem;
  color: var(--text-med);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

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

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
}

.testi-initial {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.testi-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.2;
}

.testi-role {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}
