/* =====================================================
   CLÍNICA DENTAL DR. PÉREZ GUERRA — Styles
   Las Palmas de Gran Canaria
   ===================================================== */

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

:root {
  --navy:          #0C2340;
  --primary:       #1B5FA8;
  --primary-h:     #154D8C;
  --blue-mid:      #3A7FC1;
  --accent:        #06A4B4;
  --accent-h:      #058898;
  --white:         #FFFFFF;
  --light:         #EDF6FF;
  --light-2:       #F4F9FF;
  --text:          #0D1F35;
  --text-mid:      #3C5166;
  --text-soft:     #6A7F95;
  --border:        #C8DDF0;
  --gold:          #F5BE00;
  --green:         #25D366;
  --shadow-s:      0 2px 8px rgba(13,43,78,.07);
  --shadow-m:      0 4px 24px rgba(13,43,78,.11);
  --shadow-l:      0 8px 48px rgba(13,43,78,.16);
  --r-s:           8px;
  --r:             14px;
  --r-l:           22px;
  --tr:            .28s ease;
  --nav-h:         72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- TYPOGRAPHY ---------------------------------------- */
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.13; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.24; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.28rem); font-weight: 600; line-height: 1.3; }

.eyebrow {
  display: block;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent);
}

/* ---- BUTTONS ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  white-space: nowrap; transition: all var(--tr);
}
.btn-primary  { background: var(--accent);   color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(6,164,180,.38); }
.btn-white    { background: var(--white);    color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: #f0f8ff; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.14); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-blue { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-blue:hover { background: var(--primary); color: var(--white); }

/* ---- LAYOUT -------------------------------------------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--navy); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow { margin-bottom: 10px; }
.section-header h2 { color: var(--navy); margin-bottom: 14px; }
.section-header p  { font-size: 1.02rem; color: var(--text-mid); max-width: 580px; margin: 0 auto; }

/* ---- NAVBAR -------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  background: var(--white); box-shadow: var(--shadow-s);
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: var(--shadow-m); }

.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.05rem;
}
.nav-logo-text strong { font-family: 'Playfair Display', serif; font-size: .87rem; color: var(--navy); display: block; line-height: 1.15; }
.nav-logo-text span   { font-size: .68rem; color: var(--text-soft); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: .84rem; font-weight: 500; color: var(--text-mid);
  padding: 8px 11px; border-radius: 8px; transition: all var(--tr);
}
.nav-links a:hover { color: var(--primary); background: var(--light); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  font-size: .84rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 5px;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: 8px;
  border: none; background: none; transition: background var(--tr);
}
.hamburger:hover { background: var(--light); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all var(--tr);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE MENU --------------------------------------- */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); box-shadow: var(--shadow-m);
  z-index: 999; padding: 16px 20px 24px;
  visibility: hidden; opacity: 0;
  transform: translateY(-8px);
  transition: all var(--tr);
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible; opacity: 1;
  transform: translateY(0); pointer-events: all;
}
.mob-links { display: flex; flex-direction: column; gap: 2px; }
.mob-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  font-size: .97rem; font-weight: 500; color: var(--text);
  transition: all var(--tr);
}
.mob-links a i { color: var(--accent); width: 16px; }
.mob-links a:hover { background: var(--light); color: var(--primary); }
.mob-footer {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.mob-phone {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}

/* ---- HERO ---------------------------------------------- */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  background: linear-gradient(135deg, var(--navy) 0%, #163F74 45%, var(--primary) 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/3845625/pexels-photo-3845625.jpeg?auto=compress&cs=tinysrgb&w=1400') center/cover no-repeat;
  opacity: .1;
}
.hero-deco {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.03); pointer-events: none;
}
.hero-deco-1 { width: 500px; height: 500px; bottom: -120px; right: -100px; }
.hero-deco-2 { width: 300px; height: 300px; top: 60px; right: 200px; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 80px 24px;
  max-width: 1160px; margin: 0 auto; width: 100%;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 50px;
  padding: 6px 16px; font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.9); letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-tag i { color: var(--accent); }

.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #82CFED; }

.hero-desc {
  font-size: 1.04rem; color: rgba(255,255,255,.78);
  margin-bottom: 32px; line-height: 1.75; max-width: 480px;
}
.hero-desc strong { color: #82CFED; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-social-proof {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  padding: 13px 18px;
}
.hero-sp-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.hero-sp-text strong { display: block; color: var(--white); font-size: .92rem; font-weight: 700; }
.hero-sp-text span   { color: rgba(255,255,255,.6); font-size: .76rem; }

/* Hero right side */
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.hero-main-img {
  width: 100%; height: 370px; object-fit: cover;
  border-radius: var(--r-l); box-shadow: var(--shadow-l);
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-stat {
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r);
  padding: 16px 18px; text-align: center;
}
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700; color: var(--white); line-height: 1;
}
.hero-stat .stars { color: var(--gold); font-size: .85rem; margin-top: 3px; }
.hero-stat .lbl { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: 4px; font-weight: 500; }
.hero-stat .emoji { font-size: 1.6rem; margin-bottom: 4px; }

/* ---- TRUST BAR ----------------------------------------- */
.trust-bar { background: var(--primary); }
.trust-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 13px;
  padding: 22px 28px; border-right: 1px solid rgba(255,255,255,.12);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: rgba(255,255,255,.12); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--white);
}
.trust-text strong { display: block; color: var(--white); font-size: .875rem; font-weight: 700; line-height: 1.2; }
.trust-text span   { color: rgba(255,255,255,.68); font-size: .75rem; }

/* ---- SERVICES CARDS ------------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.svc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 30px 26px;
  transition: all var(--tr); position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--tr);
}
.svc-card:hover { box-shadow: var(--shadow-l); transform: translateY(-5px); border-color: var(--blue-mid); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 54px; height: 54px; background: var(--light);
  border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem; color: var(--primary);
  margin-bottom: 18px; transition: all var(--tr);
}
.svc-card:hover .svc-icon { background: var(--primary); color: var(--white); }

.svc-card h3 { color: var(--navy); margin-bottom: 10px; }
.svc-card > p { font-size: .875rem; color: var(--text-mid); line-height: 1.72; margin-bottom: 16px; }

.svc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.svc-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-mid);
}
.svc-list li::before {
  content: ''; width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%; background: var(--accent);
}

.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: .85rem; font-weight: 600;
  transition: gap var(--tr);
}
.svc-link:hover { gap: 10px; }

/* ---- WHY US -------------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.why-img-wrap { position: relative; }
.why-img {
  width: 100%; height: 490px; object-fit: cover;
  border-radius: var(--r-l); box-shadow: var(--shadow-l);
}
.why-float {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--white); border-radius: var(--r);
  padding: 18px 22px; box-shadow: var(--shadow-l); min-width: 170px;
}
.why-float-big {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700; color: var(--primary); line-height: 1;
}
.why-float p { font-size: .77rem; color: var(--text-mid); margin-top: 5px; }
.why-float p strong { color: var(--primary); }

.why-reasons { display: flex; flex-direction: column; gap: 26px; }
.why-reason { display: flex; gap: 15px; align-items: flex-start; }
.why-reason-icon {
  width: 46px; height: 46px; min-width: 46px;
  background: var(--light); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--primary);
}
.why-reason h4 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.why-reason p  { font-size: .855rem; color: var(--text-mid); line-height: 1.72; }

/* ---- TESTIMONIALS -------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testi-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all var(--tr);
}
.testi-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.testi-stars { color: var(--gold); font-size: .88rem; letter-spacing: 1px; }
.testi-q {
  font-size: .875rem; color: var(--text-mid); line-height: 1.76;
  flex: 1; font-style: italic; position: relative; padding-left: 18px;
}
.testi-q::before {
  content: '"'; position: absolute; left: 0; top: -4px;
  font-size: 2.4rem; color: var(--accent); line-height: 1;
  font-style: normal; font-family: 'Playfair Display', serif;
}
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: .97rem; min-width: 38px;
}
.testi-name { font-size: .84rem; font-weight: 600; color: var(--navy); }
.testi-src  { font-size: .73rem; color: var(--text-soft); }
.testi-footer {
  text-align: center; margin-top: 36px;
  font-size: .84rem; color: var(--text-soft);
}
.testi-footer a { color: var(--primary); font-weight: 600; }

/* ---- REVIEW SOURCE TABS (widgets en vivo de Google + Doctoralia) -- */
.reviews-tabs { margin-bottom: 36px; }
.reviews-tabs .tab-btn i { margin-right: 6px; }

.review-panels { }
.review-panel { display: none; }
.review-panel.active { display: block; }
.review-panels.show-all { display: flex; flex-direction: column; gap: 48px; }
.review-panels.show-all .review-panel { display: block; }

.review-source-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 22px;
}
.review-source-head i { color: var(--accent); font-size: 1.1rem; }

.review-placeholder {
  text-align: center; font-size: .85rem; color: var(--text-soft);
  font-style: italic; line-height: 1.8; padding: 40px 24px;
  border: 1px dashed var(--border); border-radius: var(--r-l);
}
.review-placeholder a { color: var(--primary); font-weight: 600; font-style: normal; }

/* ---- DOCTOR -------------------------------------------- */
.doctor-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.doctor-content .eyebrow { margin-bottom: 10px; }
.doctor-content h2 { color: var(--white); margin-bottom: 18px; }
.doctor-content p  { color: rgba(255,255,255,.73); font-size: .97rem; line-height: 1.8; margin-bottom: 14px; }
.doctor-creds { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.doctor-cred {
  display: flex; align-items: center; gap: 9px;
  font-size: .855rem; color: rgba(255,255,255,.8);
}
.doctor-cred i { color: var(--accent); width: 14px; }
.doctor-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.doctor-img-wrap { position: relative; }
.doctor-img {
  width: 100%; height: 450px; object-fit: cover;
  border-radius: var(--r-l);
  border: 2px solid rgba(255,255,255,.1);
}
.doctor-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--accent); border-radius: var(--r-s);
  padding: 10px 14px; font-size: .74rem; color: var(--white); font-weight: 600;
}

/* ---- FAQ ----------------------------------------------- */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--navy);
  transition: background var(--tr); user-select: none;
}
.faq-q:hover { background: var(--light); }
.faq-q.open  { color: var(--primary); background: var(--light); }
.faq-icon {
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  border: 2px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: .7rem; color: var(--text-soft);
  transition: all var(--tr);
}
.faq-q.open .faq-icon { background: var(--primary); border-color: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  font-size: .875rem; color: var(--text-mid); line-height: 1.78;
  padding: 0 22px;
}
.faq-a.open { max-height: 300px; padding: 0 22px 18px; }

/* ---- CTA BANNER ---------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  padding: 68px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 11px; }
.cta-banner p  { color: rgba(255,255,255,.83); margin-bottom: 32px; font-size: 1.03rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- CONTACT ------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-blocks { display: flex; flex-direction: column; gap: 22px; }
.contact-block  { display: flex; gap: 15px; align-items: flex-start; }
.contact-ico {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .97rem; color: var(--primary);
}
.contact-block h4 {
  font-size: .77rem; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px;
}
.contact-block p,
.contact-block a { font-size: .875rem; color: var(--text-mid); line-height: 1.7; }
.contact-block a:hover { color: var(--primary); }
.contact-maps-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary) !important; font-weight: 600; font-size: .82rem; margin-top: 5px;
}

.hours-tbl { font-size: .855rem; border-collapse: collapse; }
.hours-tbl td { padding: 3px 0; color: var(--text-mid); }
.hours-tbl td:first-child { font-weight: 600; color: var(--navy); width: 135px; }
.hours-tbl tr.urgent td { color: var(--accent); }
.hours-tbl tr.urgent td:first-child { color: var(--accent); }

.contact-map { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-m); }
.contact-map iframe { width: 100%; height: 420px; border: none; display: block; }

/* ---- FOOTER -------------------------------------------- */
.footer { background: var(--navy); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }

.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-logo-ico {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.05rem;
}
.foot-logo-text strong { font-family: 'Playfair Display', serif; font-size: .86rem; color: var(--white); display: block; line-height: 1.2; }
.foot-logo-text span   { font-size: .68rem; color: rgba(255,255,255,.45); }

.foot-desc { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.78; margin-bottom: 8px; }
.foot-reg  { font-size: .72rem; color: rgba(255,255,255,.35); }

.foot-col h5 { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.foot-col li { margin-bottom: 9px; }
.foot-col a  { font-size: .845rem; color: rgba(255,255,255,.6); transition: color var(--tr); }
.foot-col a:hover { color: var(--white); }

.foot-bottom {
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.foot-bottom p   { font-size: .77rem; color: rgba(255,255,255,.35); }
.foot-btm-links  { display: flex; gap: 18px; }
.foot-btm-links a { font-size: .77rem; color: rgba(255,255,255,.35); transition: color var(--tr); }
.foot-btm-links a:hover { color: rgba(255,255,255,.75); }

/* ---- WHATSAPP FLOAT ------------------------------------ */
.wa-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: transform var(--tr);
  animation: wa-pulse 2.2s ease-in-out infinite;
}
.wa-btn:hover { transform: scale(1.12); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,.4); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,.65), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ---- PAGE HEADER (Tratamientos) ------------------------ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  padding: calc(var(--nav-h) + 48px) 0 52px;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/3845806/pexels-photo-3845806.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover no-repeat;
  opacity: .08;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 10px; }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 13px; }
.page-header p  { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 520px; margin: 0 auto 24px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.7); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--white); }

/* ---- FILTER TABS --------------------------------------- */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tab-btn {
  padding: 9px 20px; border-radius: 50px;
  border: 2px solid var(--border); background: var(--white);
  font-size: .845rem; font-weight: 600; color: var(--text-mid);
  cursor: pointer; transition: all var(--tr); white-space: nowrap;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---- TREATMENT CARDS ----------------------------------- */
.treatments-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.treat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--tr);
}
.treat-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); border-color: var(--blue-mid); }
.treat-card.hidden { display: none; }

.treat-cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 3px 10px; border-radius: 50px;
  width: fit-content;
}
.cat-general { background: #E8F4FD; color: var(--primary); }
.cat-ortodoncia { background: #EAF6F0; color: #1A7A4A; }
.cat-cirugia { background: #FDF0E8; color: #B35A1A; }

.treat-icon { font-size: 1.65rem; }
.treat-card h3 { font-size: 1rem; color: var(--navy); font-family: 'Inter', sans-serif; font-weight: 700; }
.treat-card p  { font-size: .835rem; color: var(--text-mid); line-height: 1.7; flex: 1; }

.treat-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 600; color: var(--primary);
  margin-top: 4px; transition: gap var(--tr);
}
.treat-link:hover { gap: 9px; }

/* ============= RESPONSIVE =============================== */
@media (max-width: 1024px) {
  .hero-inner      { grid-template-columns: 1fr; padding: 60px 24px; }
  .hero-visual     { display: none; }
  .trust-inner     { grid-template-columns: repeat(2,1fr); }
  .services-grid   { grid-template-columns: repeat(2,1fr); }
  .why-grid        { grid-template-columns: 1fr; }
  .why-img-wrap    { display: none; }
  .testi-grid      { grid-template-columns: repeat(2,1fr); }
  .doctor-inner    { grid-template-columns: 1fr; }
  .doctor-img-wrap { display: block; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .treatments-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 1075px) {
  :root { --nav-h: 64px; }
  .section { padding: 52px 0; }
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }

  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item  { padding: 14px 18px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }

  .testi-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; text-align: center; }

  .why-reasons { gap: 20px; }
}

@media (max-width: 540px) {
  .hero-btns  { flex-direction: column; }
  .hero-desc  { max-width: 100%; }
  .trust-inner { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr; }
  .treatments-grid { grid-template-columns: 1fr; }
  .cta-btns   { flex-direction: column; align-items: center; }
  .filter-tabs { gap: 6px; }
  .tab-btn    { font-size: .78rem; padding: 7px 14px; }
}
