@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --navy: #0c1b33;
  --navy-dark: #071121;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --gold: #c59b5f;
  --green: #15803d;
  --green-hover: #166534;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 14px;
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--navy);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* 1. Topbar */
.topbar { background: var(--navy-dark); color: #e2e8f0; font-size: 0.82rem; padding: 10px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.topbar-socials { display: flex; gap: 16px; align-items: center; }
.topbar-socials a { display: inline-flex; color: #cbd5e1; transition: color 0.15s; }
.topbar-socials a:hover { color: var(--gold); }

/* 2. Solid Sticky Header (zero bleed-through) */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(12, 27, 51, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 20px; }
.brand { display: flex; flex-direction: column; }
.brand-name { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.brand-sub { font-size: 0.72rem; color: var(--teal-dark); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:not(.btn) { padding: 8px 4px; border-radius: 6px; transition: color 0.16s ease; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.menu-toggle {
  display: none;
  background: var(--navy);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Focus visible (WCAG 2.4.7 & Redundant Coding) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Buttons (Fitts's Law >= 46px, WCAG AA/AAA contrast on default & hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(12, 27, 51, 0.14); }
.btn:active { transform: translateY(0); }
.btn-green, .btn-green:visited { background: #16a34a; color: #ffffff !important; text-decoration: none !important; }
.btn-green:hover, .btn-green:focus-visible { background: #15803d; color: #ffffff !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(22, 163, 74, 0.32); }
.btn-teal, .btn-teal:visited { background: var(--teal); color: #ffffff; }
.btn-teal:hover, .btn-teal:focus-visible { background: var(--teal-dark); color: #ffffff; }
.btn-outline, .btn-outline:visited { background: #ffffff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.btn-outline-white, .btn-outline-white:visited { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.75); }
.btn-outline-white:hover, .btn-outline-white:focus-visible { background: #ffffff; color: var(--navy); border-color: #ffffff; }

/* Sections & Typography */
section { padding: 80px 0; scroll-margin-top: 96px; }
.section-alt { background: var(--surface-alt); }
.section-navy { background: var(--navy); color: #ffffff; }
.section-navy h2, .section-navy h3 { color: #ffffff; }
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.hero .eyebrow, .section-navy .eyebrow { color: #5eead4; }
h1 { font-size: clamp(2.1rem, 3.8vw, 3.05rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lead { font-size: 1.04rem; color: var(--text-muted); max-width: 62ch; }
.center-head { text-align: center; max-width: 740px; margin: 0 auto 44px; }
.center-head .lead { margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: #94a3b8; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #ffffff; text-decoration: underline; }

/* 3. Hero + Subtle Grid Background */
.hero {
  padding: 68px 0 92px;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #ffffff;
}
.hero h1 { color: #ffffff; }
.hero .lead { color: #cbd5e1; margin-bottom: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.pill-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #ffffff;
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Overlapping Info Bar */
.overlap-wrap { margin-top: -46px; position: relative; z-index: 10; }
.overlap-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 26px 34px;
  box-shadow: 0 16px 40px rgba(12, 27, 51, 0.09);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
.fact-item { border-right: 1px solid var(--border); padding-right: 16px; }
.fact-item:last-child { border-right: none; padding-right: 0; }
.fact-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--teal-dark); margin-bottom: 4px; }
.fact-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.96rem; font-weight: 700; color: var(--navy); }

/* Grids & Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

.spec-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spec-card:hover { border-color: var(--teal); box-shadow: 0 12px 28px rgba(12, 27, 51, 0.07); }
.spec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.spec-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(46, 163, 178, 0.12);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spec-arrow { font-weight: 700; color: var(--teal-dark); font-size: 1.1rem; }
.spec-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }
.spec-img { width: 100%; height: 175px; object-fit: cover; border-radius: 10px; }

/* Checklist (Por que optar) */
.check-list { list-style: none; display: grid; gap: 16px; margin: 24px 0 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; color: var(--text-muted); }
.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--navy);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}
.check-list strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* Step-by-Step 6-Card Grid (CEOCLINICA style with overlapping top icon) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; margin-top: 28px; }
.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px 26px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(12, 27, 51, 0.04);
}
.step-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(46, 163, 178, 0.35);
}
.step-card p { font-size: 0.91rem; color: var(--text-muted); margin-top: 8px; }

/* Promo Card inside Types Grid */
.promo-card {
  background: linear-gradient(135deg, var(--teal) 0%, #166d7a 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo-card h3 { color: #ffffff; font-size: 1.3rem; }
.promo-card p { color: #e2f5f7; font-size: 0.94rem; margin: 10px 0 20px; }
.promo-card .btn:hover, .promo-card .btn:focus-visible { background: #e2e8f0 !important; color: var(--navy) !important; }

/* About + Experience Badge */
.about-media { position: relative; }
.exp-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--navy);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.exp-badge strong { display: block; font-size: 1.15rem; color: var(--gold); }
.exp-badge span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Authority Pillars (Dark Navy Band) */
.authority-grid { display: grid; grid-template-columns: 1fr 0.85fr 1fr; gap: 36px; align-items: center; }
.pillar-col { display: grid; gap: 28px; }
.pillar-box p { color: #cbd5e1; font-size: 0.92rem; }
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: #ffffff;
  border: none;
  min-height: 56px;
  padding: 18px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background-color 0.16s ease;
}
.faq-question:hover { background: #f1f5f9; }
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}
.faq-item.open .faq-answer { display: block; }

/* Reviews & Google Pill */
.google-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 999px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.05rem; }
.review-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.review-card .quote { font-size: 0.96rem; color: var(--text); margin: 12px 0 16px; }
.review-card .author { font-weight: 700; font-size: 0.88rem; color: var(--navy); }

/* Real Patients Instagram Gallery */
.patients-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.patient-photo {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  background: var(--navy);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.patient-photo:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(12, 27, 51, 0.14);
}
.patient-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.patient-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(7, 17, 33, 0.85));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 980px) {
  .patients-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .patients-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Blog & Instagram Posts */
.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.date-pill {
  display: inline-block;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.blog-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }
.blog-link { font-weight: 700; font-size: 0.88rem; color: var(--teal-dark); transition: color 0.16s ease; }
.blog-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.google-pill { transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.google-pill:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(12, 27, 51, 0.08); }
.seo-list a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.form-group input[readonly] { background: #e2e8f0; color: var(--navy); font-weight: 600; cursor: default; }

/* Pre-Footer Conversion Box & Styled Form */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #156a78 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.cta-banner h2 { color: #ffffff; }
.cta-banner p { color: #e2f5f7; }
.cta-banner .form-box p,
.cta-banner .form-box .form-note { color: var(--navy); }
.contact-meta { list-style: none; display: grid; gap: 10px; margin-top: 20px; font-size: 0.92rem; color: #f1f5f9; }
.contact-meta li { display: flex; align-items: center; gap: 10px; }

.form-box {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(12, 27, 51, 0.14);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #f8fafc;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #ffffff;
}
.form-note { font-size: 0.86rem; color: var(--teal-dark); margin-top: 12px; font-weight: 600; }

/* SEO Links Band */
.seo-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: center; }
.seo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; list-style: none; }
.seo-list li { font-size: 0.9rem; font-weight: 500; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.seo-list li::before { content: "✓"; color: var(--teal-dark); font-weight: 800; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 0.9fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-title { color: #ffffff; font-weight: 700; margin-bottom: 14px; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: 0.9rem; }
.footer-links a { display: inline-flex; gap: 8px; align-items: flex-start; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-bottom a { color: #ffffff; font-weight: 600; text-decoration: underline; }

/* Floating Contact Button */
.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.38);
}
.floating-wa:hover { background: var(--green-hover); }

@media (max-width: 980px) {
  .grid-4, .overlap-card, .authority-grid, .footer-grid, .cta-banner { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .seo-grid, .seo-list { grid-template-columns: 1fr; }
  .fact-item { border-right: none; padding-right: 0; }
}
@media (max-width: 780px) {
  .site-footer { padding-bottom: 88px; }
  .hero-grid, .grid-4, .grid-3, .grid-2, .overlap-card, .steps-grid, .authority-grid, .footer-grid, .cta-banner { grid-template-columns: 1fr; }
  .cta-banner { padding: 28px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--navy);
    color: #ffffff;
    flex-direction: column;
    padding: 24px;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }
  .nav-links a { color: #e2e8f0; width: 100%; }
  .nav-links.active { display: flex; }
  .menu-toggle { display: inline-block; }
}
