@import url("../../tokens.css");

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
svg { width: 1em; height: 1em; fill: currentColor; }
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  color: var(--teal-900);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}
p { margin: 0 0 16px; color: var(--ink-soft); }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 100px 0; position: relative; }

/* ==========================================================================
   Reusable bits
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 2px;
  background: var(--teal-500);
}
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-lead { font-size: 17px; }
.section-cta { text-align: center; margin-top: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--panel-ink); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 85%, black); transform: translateY(-2px); }
.btn-outline { border-color: var(--teal-700); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--teal-800); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 1.5px solid var(--teal-500);
}
.checklist li::after {
  content: "";
  position: absolute; left: 6px; top: 6px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--teal-500); width: 0%;
  z-index: 1200; transition: width 0.1s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -18px rgba(6, 46, 42, 0.3);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
.brand img { height: 68px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: inline-block; }

.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; justify-content: center; }
.main-nav a {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
  transition: color 0.25s ease;
  padding: 6px 0;
  white-space: nowrap;
}
.site-header.is-scrolled .main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--teal-500); }
.site-header.is-scrolled .main-nav a:hover { color: var(--teal-600); }
.main-nav > ul > li > a.is-active { color: var(--teal-500); }
.site-header.is-scrolled .main-nav > ul > li > a.is-active { color: var(--teal-600); }
.main-nav > ul > li > a.is-active { position: relative; }
.main-nav > ul > li > a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--teal-500); border-radius: 2px;
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a { color: var(--ink) !important; display: block; padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.dropdown li a:hover { background: var(--teal-100); color: var(--teal-700) !important; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: 14px;
  font-family: var(--ff-head);
}
.site-header.is-scrolled .header-phone { color: var(--ink); }
.header-phone svg { width: 16px; height: 16px; color: var(--teal-500); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: 0.3s; }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6, 46, 42, 0.88) 10%, rgba(6, 46, 42, 0.55) 55%, rgba(6, 46, 42, 0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero .eyebrow { color: var(--teal-500) !important; }
.hero .eyebrow::before { background: var(--teal-500); }
.hero h1 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 18px; }
.hero-copy { color: rgba(255, 255, 255, 0.85); font-size: 15.5px; max-width: 640px; }
.hero-cta { display: flex; gap: 16px; margin: 30px 0 10px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--teal-800); }

.hero-dots {
  position: absolute; right: 14px; bottom: 18px; z-index: 3;
  display: flex; flex-direction: column;
}
.hero-dot {
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hero-dot::after {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  transition: 0.25s;
}
.hero-dot.is-active::after { background: var(--teal-500); border-color: var(--teal-500); }

/* ==========================================================================
   Info strip
   ========================================================================== */
.info-strip { background: var(--panel-bg-900); padding: 0; }
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.info-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 34px 28px;
  border-right: 1px solid var(--color-white-10);
  transition: background 0.25s ease;
}
.info-item:last-child { border-right: none; }
.info-item:hover { background: rgba(255, 255, 255, 0.04); }
.info-item svg { width: 28px; height: 28px; color: var(--panel-ink); flex-shrink: 0; }
.info-item h4 { color: var(--panel-ink); font-size: 16px; margin-bottom: 0; }
.info-item p { color: var(--panel-ink-soft); margin: 0; font-size: 14px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; display: flex; flex-direction: column; gap: 20px; }
.about-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 36px); }

/* ==========================================================================
   Specialties
   ========================================================================== */
.specialties { background: var(--white); }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.specialty-card {
  background: var(--bg);
  border: 1px solid var(--color-accent-border-soft);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.specialty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: var(--white); border-color: var(--teal-500); }
.specialty-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--panel-ink);
  margin-bottom: 20px;
}
.specialty-icon svg { width: 26px; height: 26px; }
.specialty-card h3 { font-size: 18px; margin-bottom: 10px; }
.specialty-card p { font-size: 14.5px; margin-bottom: 0; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--panel-bg-800); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { color: var(--panel-ink); font-size: 42px; margin-bottom: 8px; }
.stat-item p { color: var(--panel-ink-soft); margin: 0; font-weight: 500; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: stretch; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 10px; }
.why-feature {
  border: 1px solid var(--color-accent-border-soft);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.why-feature:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--panel-ink);
  margin-bottom: 14px;
}
.why-feature-icon svg { width: 20px; height: 20px; }
.why-feature h5 { font-size: 16px; margin-bottom: 6px; color: var(--teal-800); }
.why-feature p { font-size: 14px; margin-bottom: 0; }
.why-media {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.why-slide.is-active { opacity: 1; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { background: var(--white); }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-photo { aspect-ratio: 4/5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-info { padding: 20px; }
.team-info h4 { margin-bottom: 4px; font-size: 16.5px; }
.team-info span { display: block; color: var(--teal-600); font-weight: 600; font-size: 12.5px; margin-bottom: 12px; }

/* ==========================================================================
   Team teaser (Nosotros / Home) — imagen + CTA a la ficha completa del equipo
   ========================================================================== */
.team-teaser-media {
  max-width: 920px; margin: 0 auto 40px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.team-teaser-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ==========================================================================
   Clinics
   ========================================================================== */
.clinics-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.clinics-grid .clinic-card { display: grid; grid-template-columns: 1.2fr 1fr; }
.clinics-grid .clinic-map { aspect-ratio: auto; height: 100%; min-height: 320px; }
.clinics-grid .clinic-card--map-only { grid-template-columns: 1fr; }
.clinics-grid .clinic-card--map-only .clinic-map { aspect-ratio: 21/9; min-height: 420px; }
.clinic-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.clinic-map { aspect-ratio: 16/10; }
.clinic-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.clinic-info {
  padding: 26px; background: var(--panel-bg-800); color: var(--panel-ink);
  display: flex; flex-direction: column; justify-content: center;
}
.clinic-info h4 { margin-bottom: 10px; color: var(--panel-ink); }
.clinic-info p { margin-bottom: 8px; font-size: 14.5px; color: var(--panel-ink-soft); }
.clinic-info a { color: var(--panel-ink); }
.clinic-info a:hover { color: var(--white); text-decoration: underline; }
.clinic-line { display: flex; align-items: flex-start; gap: 10px; }
.clinic-line svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--panel-ink); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.faq-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.accordion-item { border-bottom: 1px solid #e6ebe9; }
.accordion-trigger {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 22px 0;
  font-family: var(--ff-head); font-weight: 600; font-size: 16px;
  color: var(--teal-900);
  display: flex; justify-content: space-between; align-items: center;
}
.accordion-trigger span { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.accordion-trigger span::before, .accordion-trigger span::after {
  content: ""; position: absolute; background: var(--teal-700);
  transition: transform 0.3s ease;
}
.accordion-trigger span::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-trigger span::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion-item.is-open .accordion-trigger span::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-panel p { padding-bottom: 22px; margin: 0; font-size: 14.5px; }
.accordion-item.is-open .accordion-panel { max-height: 220px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: var(--bg); }
.testi-track-wrap { position: relative; }
.testi-track {
  display: flex; flex-wrap: nowrap; align-items: stretch; gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 calc(33.333% - 18px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  margin: 0;
}
.testi-card p { font-style: italic; color: var(--ink); font-size: 15px; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--btn-bg); color: var(--panel-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 14px; }
.testi-author small { color: var(--ink-soft); font-size: 12.5px; }
.testi-controls { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }
.testi-controls button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--teal-700); background: var(--white);
  color: var(--teal-700); font-size: 20px; cursor: pointer;
  transition: 0.25s;
}
.testi-controls button:hover { background: var(--btn-bg); color: var(--panel-ink); border-color: var(--btn-bg); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { background: var(--teal-100); padding: 60px 0; }
.cta-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-final h3 { color: var(--teal-900); margin: 0; font-size: clamp(22px, 3vw, 28px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--panel-bg-900); color: var(--panel-ink-soft); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--panel-ink-soft); font-size: 14px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--panel-ink); transition: 0.25s;
}
.footer-social a:hover { background: var(--teal-500); }
.footer-social svg { width: 16px; height: 16px; }
.site-footer h5 { color: var(--panel-ink); font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--panel-ink-soft); font-size: 14px; transition: 0.2s; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col p { color: var(--panel-ink-soft); font-size: 14px; }
.footer-line { display: flex; align-items: flex-start; gap: 10px; }
.footer-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--panel-ink); }
.footer-bottom { border-top: 1px solid var(--color-white-10); padding: 22px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 13px; text-align: center; color: var(--panel-ink-faint); }
.footer-credit::before { content: "·"; margin-right: 6px; }
.footer-credit a { color: var(--panel-ink-soft); font-weight: 600; }
.footer-credit a:hover { color: var(--white); text-decoration: underline; }
.footer-credit .heart { color: var(--teal-500); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 52px; bottom: 26px; z-index: 900;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, background 0.25s ease;
}
.whatsapp-float svg { width: 38px; height: 38px; fill: currentColor; }
.whatsapp-float:hover { background: var(--color-whatsapp-hover); transform: translateY(-3px); }

.back-to-top {
  position: fixed; left: 26px; bottom: 26px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--btn-bg); color: var(--panel-ink);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: 0.3s ease;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: color-mix(in srgb, var(--btn-bg) 85%, black); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.hero--page { min-height: 52vh; padding-bottom: 60px; }
.hero--page .hero-content { max-width: 720px; }

/* ==========================================================================
   About split — reversed variant (reused for Nosotros history blocks)
   ========================================================================== */
.about-grid--reverse { grid-template-columns: 1.1fr 0.9fr; }
.about-grid--reverse .about-media { order: 2; }

/* ==========================================================================
   Values grid (Nosotros) — reuses .why-feature card look
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact-form {
  background: var(--bg);
  border: 1px solid var(--color-accent-border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--ff-head); font-weight: 600; font-size: 13.5px; color: var(--teal-900); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(30, 155, 138, 0.15);
}
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; margin-bottom: 0; }
.form-note a { color: var(--teal-700); font-weight: 600; }
.form-success {
  display: none;
  background: var(--teal-100);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 20px;
  color: var(--teal-900);
  font-size: 14.5px;
}
.form-success.is-visible { display: block; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--panel-bg-800);
  color: var(--panel-ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.contact-card h4 { color: var(--panel-ink); margin-bottom: 12px; }
.contact-card p { color: var(--panel-ink-soft); margin-bottom: 8px; font-size: 14.5px; }
.contact-card a { color: var(--panel-ink); }
.contact-card a:hover { color: var(--white); text-decoration: underline; }
.contact-card .clinic-line svg { color: var(--panel-ink); }

/* ==========================================================================
   Legal content (privacy / terms)
   ========================================================================== */
.legal-section { background: var(--white); }
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; }
.legal-toc {
  background: var(--bg);
  border: 1px solid var(--color-accent-border-soft);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 44px;
}
.legal-toc p { font-family: var(--ff-head); font-weight: 700; color: var(--teal-900); margin-bottom: 10px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 6px; }
.legal-toc a { color: var(--teal-700); font-size: 14.5px; font-weight: 500; }
.legal-toc a:hover { color: var(--teal-500); text-decoration: underline; }
.legal-wrap h2 { font-size: 22px; margin-top: 40px; margin-bottom: 14px; scroll-margin-top: 110px; }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap p { font-size: 15px; }
.legal-wrap ul { margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-wrap ul li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.legal-wrap ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500);
}
.legal-wrap a { color: var(--teal-700); font-weight: 600; }
.legal-wrap a:hover { color: var(--teal-500); }

/* ==========================================================================
   Profile pages (Equipo / Tratamientos) — estilo ficha tipo Doctoralia
   ========================================================================== */
.profile-section { background: var(--white); }
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }

.profile-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.profile-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--ff-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.profile-badge--accent { background: var(--teal-500); border-color: var(--teal-500); color: var(--panel-ink); }

.profile-card {
  background: var(--bg);
  border: 1px solid var(--color-accent-border-soft);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  margin-bottom: 26px;
}
.profile-card:last-child { margin-bottom: 0; }
.profile-card h2 {
  font-size: 21px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.profile-card h2 .profile-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px;
  background: var(--btn-bg); color: var(--panel-ink);
}
.profile-card h2 .profile-card-icon svg { width: 19px; height: 19px; }
.profile-card p:last-child { margin-bottom: 0; }
.profile-card p { font-size: 15px; }
.profile-card ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; }
.profile-card ul li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.profile-card ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500);
}
.profile-card blockquote {
  margin: 0; padding: 18px 22px;
  border-left: 3px solid var(--teal-500);
  background: var(--teal-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--teal-900); font-size: 15.5px;
}

.profile-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-tag {
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--color-accent-border);
  color: var(--teal-800); font-size: 13.5px; font-weight: 600;
  font-family: var(--ff-head);
}

.profile-faq .accordion-item:last-child { border-bottom: none; }

.profile-aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 20px; }
.profile-photo-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.profile-photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: var(--white); font-family: var(--ff-head); font-weight: 700; font-size: 56px; letter-spacing: 0.05em;
}
.profile-summary-card {
  background: var(--panel-bg-800); color: var(--panel-ink);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md);
}
.profile-summary-card h4 { color: var(--panel-ink); font-size: 17px; margin-bottom: 4px; }
.profile-summary-card .profile-summary-sub { color: var(--teal-500); font-family: var(--ff-head); font-weight: 600; font-size: 12.5px; margin-bottom: 18px; display: block; }
.profile-facts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.profile-fact { display: flex; align-items: flex-start; gap: 12px; }
.profile-fact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--teal-500); }
.profile-fact strong { display: block; font-size: 13.5px; color: var(--panel-ink); }
.profile-fact span { display: block; font-size: 13px; color: var(--panel-ink-soft); }
.profile-summary-card .btn { width: 100%; justify-content: center; }
.profile-summary-card .btn + .btn { margin-top: 10px; }

.profile-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: 13.5px;
  color: var(--teal-700); margin-bottom: 18px;
}
.profile-back svg { width: 16px; height: 16px; }
.profile-back:hover { color: var(--teal-500); }

/* Grid de fichas (índice de equipo / tratamientos) reutiliza .team-card y .specialty-card */
.index-grid-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid, .why-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-media { order: -1; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-card { flex: 0 0 calc(50% - 13px); }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; order: -1; max-width: 340px; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: block;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--white);
    padding: 100px 30px 30px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open > ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .main-nav.is-open a { color: var(--ink); display: block; padding: 10px 0; }
  .main-nav.is-open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 0 0 0 16px; margin-top: 4px; display: none;
  }
  .main-nav.is-open .has-dropdown.is-open .dropdown { display: block; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item { border-right: none; border-bottom: 1px solid var(--color-white-10); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clinics-grid .clinic-card { grid-template-columns: 1fr; }
  .clinics-grid .clinic-map { aspect-ratio: 16/10; height: auto; min-height: 0; }
  .clinics-grid .clinic-card--map-only .clinic-map { aspect-ratio: 16/10; height: auto; min-height: 0; }
  .testi-card { flex: 0 0 100%; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section { padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .why-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-final-inner { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .profile-aside { max-width: 100%; }
  .profile-card { padding: 26px 22px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide, .why-slide { transition: none; }
}

/* ==========================================================================
   Antispam honeypot (invisible, no display:none para no delatarlo a bots)
   ========================================================================== */
.mass-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Mapa: placeholder de carga diferida (se reemplaza solo por el iframe
   real cuando se acerca al viewport, ver IntersectionObserver en script.js)
   ========================================================================== */
.clinic-map-facade {
  width: 100%;
  height: 100%;
  background: var(--teal-100);
}
