/* ====================================================
   Consultorios de Ojos Castillo — Shared Stylesheet
   Brand: Purple #6B2D8B | Beige accent #B59A88
   Fonts: Playfair Display (display) + Nunito (body)
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --p50:  #FAF7FD;
  --p100: #EDE2F7;
  --p200: #D4BAEC;
  --p300: #B98FDE;
  --p400: #9B64CE;
  --p500: #7E3DB8;
  --p600: #6B2D8B;   /* brand primary */
  --p700: #521F6D;
  --p800: #3D1652;
  --p900: #2A0E3A;
  --beige:       #B59A88;
  --beige-light: #EDE4DB;
  --beige-pale:  #FAF7F4;
  --wa:          #25D366;
  --wa-dark:     #1DB954;
  --white:       #FFFFFF;
  --text:        #1E0D30;
  --text-body:   #4A3D5A;
  --text-muted:  #8A7A9A;
  --border:      #E5DDF0;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 2px 8px rgba(107,45,139,.07), 0 1px 3px rgba(107,45,139,.05);
  --shadow:      0 4px 16px rgba(107,45,139,.10), 0 2px 6px rgba(107,45,139,.07);
  --shadow-lg:   0 12px 40px rgba(107,45,139,.14), 0 4px 12px rgba(107,45,139,.08);
  --shadow-xl:   0 24px 64px rgba(107,45,139,.18), 0 8px 24px rgba(107,45,139,.10);
  --transition:  0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { line-height: 1.75; }

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--p600);
  margin-bottom: .75rem;
}
.section-eyebrow::before {
  content: '–– ';
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--p400); outline-offset: 3px; }
.btn:active { transform: translateY(1px) !important; }

.btn-primary {
  background: var(--p600);
  color: var(--white);
}
.btn-primary:hover { background: var(--p700); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(107,45,139,.35); }

.btn-wa {
  background: var(--wa);
  color: var(--white);
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.75);
}
.btn-outline:hover { background: var(--white); color: var(--p700); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--p600);
  border: 2px solid var(--p600);
}
.btn-outline-dark:hover { background: var(--p600); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--p600);
  padding: .5rem 1rem;
  font-weight: 700;
}
.btn-ghost:hover { color: var(--p800); }
.btn-ghost::after { content: ' →'; }

/* ---------- HEADER ---------- */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: rgba(42, 14, 58, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}
#site-header.header-scrolled {
  box-shadow: 0 4px 30px rgba(42,14,58,.45);
}

.topbar {
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: none;
}
@media (min-width: 768px) { .topbar { display: block; } }

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-right { font-size: .75rem; color: rgba(255,255,255,.5); white-space: nowrap; }

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.topbar-link:hover { color: var(--white); }
.topbar-sep { color: rgba(255,255,255,.2); }
.topbar-address { display: none; }
@media (min-width: 1024px) { .topbar-address { display: inline-flex; } }

.main-nav { background: transparent; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.logo-img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; color: var(--white); font-size: .95rem; font-weight: 600; line-height: 1.2; }
.logo-sub { color: var(--p300); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.desktop-links {
  display: none;
  align-items: center;
  gap: .25rem;
}
@media (min-width: 1024px) { .desktop-links { display: flex; } }

.nav-link {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link:focus-visible { outline: 2px solid var(--p400); outline-offset: 2px; }
.nav-link-active { color: var(--p300) !important; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.btn-wa-nav {
  display: none;
  align-items: center;
  gap: .45rem;
  background: var(--wa);
  color: var(--white);
  padding: .55rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-wa-nav:hover { background: var(--wa-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-wa-nav:focus-visible { outline: 2px solid var(--wa); outline-offset: 3px; }
@media (min-width: 1024px) { .btn-wa-nav { display: inline-flex; } }

.menu-btn {
  color: var(--white);
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-btn:hover { background: rgba(255,255,255,.1); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mobile-menu {
  background: var(--p900);
  border-top: 1px solid rgba(255,255,255,.08);
  animation: slideDown .25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-links {
  padding: 1rem 1.25rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.mobile-nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.mobile-nav-active { color: var(--p300) !important; }
.mobile-ctas {
  padding: .75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.btn-wa-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--wa);
  color: var(--white);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
}
.btn-phone-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  color: var(--white);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
}

/* ---------- FLOATING WHATSAPP ---------- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,.65); animation: none; }
.wa-float:focus-visible { outline: 2px solid var(--wa); outline-offset: 4px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ---------- PAGE LAYOUT ---------- */
.page-body { padding-top: 100px; } /* account for fixed header */
@media (min-width: 768px) { .page-body { padding-top: 136px; } }

/* ---------- SECTION STYLES ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.section-title { margin-bottom: .75rem; }
.section-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; line-height: 1.75; }
.section-header { margin-bottom: 3rem; }
.section-header-center { text-align: center; }
.section-header-center .section-lead { margin-inline: auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,14,58,.92) 0%, rgba(74,26,107,.80) 55%, rgba(107,45,139,.55) 100%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.95);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.25); margin-bottom: 1.25rem; }
.hero-sub { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 520px; line-height: 1.75; margin-bottom: 2.25rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- TRUST STRIP ---------- */
.trust-strip { background: var(--p100); border-bottom: 1px solid var(--p200); }
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
}
@media (min-width: 640px)  { .trust-strip-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-strip-inner { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: .85rem; }
.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  color: var(--p600);
}
.trust-text strong { display: block; font-size: .9rem; font-weight: 700; color: var(--text); }
.trust-text span { font-size: .8rem; color: var(--text-muted); }

/* ---------- SERVICE CARDS ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--p300);
}
.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--p100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p600);
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-card:hover .service-card-icon { background: var(--p600); color: var(--white); }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- STATS BAND ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--p900) 0%, var(--p800) 50%, var(--p700) 100%);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label { font-size: .9rem; color: rgba(255,255,255,.65); font-weight: 600; }

/* ---------- SPLIT SECTION ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(42,14,58,.5) 100%);
}

/* ---------- HIGHLIGHT BLOCK ---------- */
.highlight-block {
  background: var(--p600);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.highlight-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- PAMI SECTION ---------- */
.pami-section {
  background: linear-gradient(135deg, var(--p100) 0%, var(--beige-pale) 100%);
  border-top: 3px solid var(--p300);
}
.pami-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--p600);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 999px;
}
.pami-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--p200);
  box-shadow: var(--shadow-sm);
}
.pami-card h3 { color: var(--p700); margin-bottom: .75rem; font-size: 1.15rem; }
.pami-card p { font-size: .9rem; color: var(--text-muted); }

/* ---------- DOCTOR SECTION ---------- */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .doctor-card { grid-template-columns: 340px 1fr; } }
.doctor-img {
  position: relative;
  min-height: 360px;
  background: linear-gradient(135deg, var(--p800), var(--p600));
}
.doctor-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.04) 100%);
}
.doctor-info { padding: 2.5rem; }
.doctor-name { font-size: 2rem; margin-bottom: .25rem; }
.doctor-specialty { color: var(--p600); font-weight: 700; font-size: .9rem; letter-spacing: .05em; margin-bottom: 1.25rem; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.doctor-tag {
  background: var(--p100);
  color: var(--p700);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 999px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: .1em; margin-bottom: 1rem; }
.testimonial-text { font-size: .95rem; color: var(--text-body); line-height: 1.7; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px;
  background: var(--p100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p600);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.author-meta { font-size: .78rem; color: var(--text-muted); }

/* ---------- CONTACT SECTION ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--p100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p600);
  flex-shrink: 0;
}
.contact-info-item strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.contact-info-item span, .contact-info-item a { font-size: .95rem; color: var(--text-body); }
.contact-info-item a:hover { color: var(--p600); }
.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--p800) 0%, var(--p600) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,255,255,.08) 0%, transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2.25rem; max-width: 520px; margin-inline: auto; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: relative; z-index: 1; }

/* ---------- FOOTER ---------- */
#site-footer { background: var(--p900); color: rgba(255,255,255,.8); }
.footer-main { padding: 4.5rem 0 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; } }

.footer-logo-link { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-name { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.footer-logo-sub { color: var(--p300); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 1.5rem; max-width: 280px; }
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--wa);
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}
.footer-wa-btn:hover { background: var(--wa-dark); transform: translateY(-1px); }

.footer-col-title {
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--p300);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--p300); }

.footer-contact-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.5rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; }
.footer-contact-list li svg { flex-shrink: 0; opacity: .7; margin-top: 3px; }
.footer-contact-list a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--p300); }
.footer-hours { font-size: .83rem; color: rgba(255,255,255,.45); line-height: 1.8; }
.footer-hours p:first-child { color: rgba(255,255,255,.6); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--p900) 0%, var(--p700) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%);
  border-radius: 50%;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .83rem; color: rgba(255,255,255,.55); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--p300); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ---------- FAQ ACCORDION ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--p600); }
.faq-arrow { flex-shrink: 0; color: var(--p600); transition: transform var(--transition); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { font-size: .95rem; color: var(--text-muted); line-height: 1.75; overflow: hidden; max-height: 0; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.25rem; }

/* ---------- SURGERY CARDS ---------- */
.surgery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.surgery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.surgery-card-header {
  background: linear-gradient(135deg, var(--p800), var(--p600));
  padding: 1.75rem;
  color: var(--white);
}
.surgery-card-header svg { margin-bottom: .75rem; opacity: .85; }
.surgery-card-header h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .25rem; }
.surgery-card-header p { font-size: .82rem; color: rgba(255,255,255,.7); }
.surgery-card-body { padding: 1.5rem; }
.surgery-card-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- UTILS ---------- */
.divider {
  width: 48px; height: 3px;
  background: var(--p600);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.divider-center { margin-inline: auto; }
.text-gradient {
  background: linear-gradient(135deg, var(--p600), var(--p400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-pale { background: var(--p50); }
.bg-light { background: var(--p100); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp .7s ease .1s both; }
.anim-2 { animation: fadeUp .7s ease .3s both; }
.anim-3 { animation: fadeUp .7s ease .5s both; }

/* ---------- SCROLL REVEAL (lightweight) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- DROPDOWN NAV ---------- */
.nav-link-drop {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.nav-chevron { transition: transform .2s ease; flex-shrink: 0; }
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-wrap:hover .nav-chevron,
.nav-dropdown-wrap:focus-within .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 520px;
  background: var(--p900);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1000;
  padding: 1.25rem;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* Arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--p900);
  border-left: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
}

.dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.dropdown-col { min-width: 0; }
.dropdown-section-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--p300);
  padding-bottom: .5rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dropdown-col ul { display: flex; flex-direction: column; gap: .05rem; }
.dropdown-link {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
  font-weight: 500;
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown-link:hover { background: rgba(255,255,255,.09); color: var(--white); }
.dropdown-link:focus-visible { outline: 2px solid var(--p400); outline-offset: 2px; }

.dropdown-footer {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.dropdown-all-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--p300);
  transition: color var(--transition);
}
.dropdown-all-link:hover { color: var(--p200); }

/* ---------- MOBILE ACCORDION ---------- */
.mobile-accordion { border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-accordion-header {
  display: flex;
  align-items: stretch;
}
.mobile-accordion-btn {
  flex-shrink: 0;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.85);
  border-radius: 0;
  transition: background var(--transition);
}
.mobile-accordion-btn:hover { background: rgba(255,255,255,.06); }
.mobile-accordion-chevron { transition: transform .2s ease; }

.mobile-accordion-panel {
  background: rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
}
.mobile-sub-link {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  font-weight: 500;
  padding: .6rem 1rem .6rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background var(--transition), color var(--transition);
}
.mobile-sub-link:hover { background: rgba(255,255,255,.05); color: var(--white); }
.mobile-sub-link-all {
  font-weight: 700;
  color: var(--p300);
  font-size: .82rem;
  letter-spacing: .02em;
}

/* ---------- BENEFITS LIST ---------- */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.5rem 0;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.6;
}
.benefits-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  background: var(--p600);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- DETAIL CARDS ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: repeat(3, 1fr); } }

.detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.detail-card-icon {
  width: 48px; height: 48px;
  background: var(--p100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p600);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.detail-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.detail-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- PAMI LOGO ---------- */
.pami-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.pami-logo-inline {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: .5rem;
}
.pami-hero-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1.5rem;
}

/* ---------- SERVICE/SURGERY IMAGE ---------- */
.service-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  background: linear-gradient(135deg, var(--p800), var(--p600));
}
.service-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.service-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(42,14,58,.45) 100%);
}

/* ---------- RESPONSIVE OVERRIDES ---------- */
@media (max-width: 479px) {
  .hero { min-height: 100svh; }
  .btn { font-size: .88rem; padding: .7rem 1.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ---------- BLOG ---------- */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-article-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: 2; }
}

.blog-article-body { min-width: 0; }
.blog-article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: var(--p700);
  margin: 2rem 0 .75rem;
  line-height: 1.35;
}
.blog-article-body p { margin-bottom: 1.1rem; color: var(--text-body); }
.blog-article-body ul, .blog-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
  color: var(--text-body);
}
.blog-article-body li { margin-bottom: .4rem; }
.blog-article-body strong { color: var(--text); }

.article-cta-box {
  background: linear-gradient(135deg, var(--p50) 0%, #f3ecfa 100%);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--p600);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}
.article-cta-box p { margin-bottom: .75rem; font-weight: 600; color: var(--p700); }
.article-cta-box .btn-wa { display: inline-flex; }

.faq-section { margin: 3rem 0 2rem; }
.faq-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--p700);
  margin-bottom: 1.25rem;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 0;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--p500);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] > summary::after { content: '−'; }
.faq-item p { padding: .1rem 0 1rem; color: var(--text-body); }

.blog-related { margin-top: 3rem; padding-top: 2rem; border-top: 1.5px solid var(--border); }
.blog-related h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--p700);
  margin-bottom: 1rem;
}
.blog-related-link {
  display: block;
  padding: .6rem 0;
  color: var(--p600);
  text-decoration: none;
  border-bottom: 1px solid var(--beige-light);
  font-size: .95rem;
  transition: color var(--transition), padding-left var(--transition);
}
.blog-related-link:hover { color: var(--p700); padding-left: .4rem; }

.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box {
  background: var(--p50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--p700);
  margin-bottom: 1rem;
}
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { border-bottom: 1px solid var(--border); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul a {
  display: block;
  padding: .55rem 0;
  font-size: .9rem;
  color: var(--p600);
  text-decoration: none;
  transition: color var(--transition);
}
.sidebar-box ul a:hover { color: var(--p700); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--p600) 0%, var(--p800) 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
}
.sidebar-cta h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--white); margin-bottom: .6rem; }
.sidebar-cta p { font-size: .9rem; opacity: .85; margin-bottom: 1rem; }
.sidebar-cta .btn-wa { width: 100%; justify-content: center; }

/* Blog index grid */
.blog-index-wrap { max-width: 1140px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.blog-category-section { margin-bottom: 3.5rem; }
.blog-cat-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--p700);
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--p300);
}
.blog-card-cat {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--p500);
}
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.4;
}
.blog-card-desc { font-size: .88rem; color: var(--text-muted); flex: 1; }
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--p600);
  text-decoration: none;
  margin-top: .5rem;
  transition: color var(--transition);
}
.blog-card-link:hover { color: var(--p700); }
.blog-card-link::after { content: '→'; }

/* ---------- VIDEO EMBED ---------- */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-embed-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--p50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.video-embed-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--p700);
  margin-bottom: .5rem;
}
.video-embed-section > p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
