/* ============================================================
   DOAL SALUD — Hoja de estilos compartida
   Paleta corporativa: azul marino #1e2d6b
   Tipografía: Cormorant Garamond (títulos) + Jost (cuerpo)
   ============================================================ */

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

/* ---- RESET Y BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1e2d6b;
  --navy-mid:    #2a3d8f;
  --navy-light:  #3d54b5;
  --navy-pale:   #c8cfe8;
  --navy-ultra:  #f0f3fc;
  --gold:        #c8a96e;
  --white:       #ffffff;
  --sand:        #f7f8fc;
  --border:      #d4d9ed;
  --text:        #1a1f3a;
  --muted:       #5a6080;
  --radius:      12px;
  --radius-sm:   6px;
  --shadow-sm:   0 1px 4px rgba(30,45,107,0.08);
  --shadow-md:   0 4px 20px rgba(30,45,107,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- TIPOGRAFÍA ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(17px, 2.5vw, 22px); }

p { color: var(--muted); font-weight: 300; line-height: 1.75; }

/* ---- BOTONES ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary  { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover  { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover  { background: var(--navy-ultra); }
.btn-white    { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover    { background: var(--navy-ultra); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); }
.btn-wapp     { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wapp:hover     { background: #1fba59; }
.btn-wapp svg { width:16px; height:16px; fill:#fff; vertical-align:middle; margin-right:6px; }

/* ---- LAYOUT ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy-light);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-kicker::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--navy-light);
  display: inline-block;
  flex-shrink: 0;
}
.section-title { margin-bottom: 36px; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-mid) !important; }

/* Toggle idioma */
.lang-toggle { display: flex; gap: 4px; }
.lang-toggle button {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  color: var(--muted);
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Menú hamburguesa móvil */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border);
  gap: 14px;
  background: #fff;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
}
.nav-mobile a.nav-cta {
  display: inline-block;
  margin-top: 4px;
  text-align: center;
}

/* ---- HERO ---- */
.hero {
  background: var(--navy-ultra);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-light);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--navy-light);
  display: inline-block;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 em { color: var(--navy-light); font-style: italic; }
.hero p { margin-bottom: 28px; font-size: 14px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-pale);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.hero-img-wrap img { width:100%; height:100%; object-fit:cover; }
.hero-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy-light);
  flex-shrink: 0;
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 22px 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.3px;
}

/* ---- TARJETAS SERVICIO ---- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-sm); }
.svc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  color: var(--navy-pale);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 13px; margin-bottom: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag {
  font-size: 11px;
  background: var(--navy-ultra);
  border: 1px solid var(--navy-pale);
  border-radius: 4px;
  padding: 3px 9px;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.service-link {
  font-size: 12px;
  color: var(--navy-light);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.service-link:hover { color: var(--navy); }

/* ---- EQUIPO ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-photo {
  overflow: hidden;
  background: var(--navy-ultra);
}
.team-photo img { width:100%; height:100%; object-fit:cover; object-position:top; }
.team-info { padding: 20px; }
.team-info h3 { font-size: 18px; margin-bottom: 4px; }
.team-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--navy-light);
  font-weight: 500;
  margin-bottom: 10px;
}
.team-info p { font-size: 12px; line-height: 1.6; }
.team-specialties { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 48px solid rgba(255,255,255,0.04);
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -80px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 36px solid rgba(255,255,255,0.03);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.65); font-size: 14px; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }

/* ---- RESEÑAS ---- */
.rating-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy-ultra);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.rating-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
}
.stars-gold { color: var(--gold); font-size: 17px; letter-spacing: 2px; }
.rating-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.review-card .stars-gold { font-size: 14px; margin-bottom: 12px; }
.review-card p { font-size: 13px; font-style: italic; margin-bottom: 14px; }
.review-author { font-size: 12px; font-weight: 500; color: var(--navy); }
.review-source { font-size: 11px; color: var(--muted); }
.review-note   { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; font-style: italic; }

/* ---- CONTACTO ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}
.contact-card h3 { font-size: 18px; margin-bottom: 20px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--navy-ultra);
}
.hours-row:last-child { border-bottom: none; }
.hours-day   { color: var(--muted); font-weight: 300; }
.hours-open  { color: var(--navy); font-weight: 500; }
.hours-closed{ color: var(--muted); font-weight: 300; }
.contact-item { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 16px; height: 16px;
  stroke: var(--navy-light);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item span { font-size: 13px; line-height: 1.5; }
.contact-item a { color: var(--navy); text-decoration: none; font-weight: 400; }
.contact-item a:hover { color: var(--navy-light); }

/* ---- MAPA ---- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
  margin-top: 20px;
}
.map-wrap iframe { width:100%; height:100%; border:0; }

/* ---- DIVIDER ---- */
.divider { border: none; border-top: 1px solid var(--border); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--navy-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--border); }

/* ---- HERO SUBPÁGINA ---- */
.page-hero {
  background: var(--navy-ultra);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p  { max-width: 600px; font-size: 15px; }
.page-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---- BLOQUES CONTENIDO ---- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-block img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  height: 95%;
  object-fit: cover;
}
.content-text h2 { margin-bottom: 14px; }
.content-text p  { margin-bottom: 16px; }

/* ---- LISTA CON ICONO ---- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-light);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ---- ACCORDION FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--navy-ultra); }
.faq-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s;
  stroke: var(--navy-light);
  fill: none;
  stroke-width: 2;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 4px 20px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  border-top: 1px solid var(--navy-ultra);
}
.faq-item.open .faq-answer { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; font-weight: 300; }
.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- LANG SWITCH ---- */
.eu { display: none; }
.lang-eu .es { display: none; }
.lang-eu .eu { display: revert; }
/* Para inline-flex, block, etc. */
.lang-eu .eu.block { display: block; }
.lang-eu .eu.flex  { display: flex; }
.lang-eu .eu.grid  { display: grid; }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  max-width: 640px;
  width: calc(100% - 40px);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.cookie-banner p { color: rgba(255,255,255,0.8); font-size: 12px; flex: 1; }
.cookie-banner button {
  background: #fff;
  color: var(--navy);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner.hidden { display: none; }

/* ---- WHATSAPP FLOTANTE ---- */
.wapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 998;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.wapp-float svg { width: 26px; height: 26px; fill: #fff; }

/* ============================================================
   RESPONSIVE — MÓVIL
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section    { padding: 52px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 56px; }
  .nav-logo img { height: 28px; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }
  .hero-img-wrap { aspect-ratio: 16/9; }

  /* Stats */
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 20px; }
  .stat-item:last-child { border-bottom: none; }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; }

  /* Equipo */
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { height: 220px; }

  /* CTA banner */
  .cta-banner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 24px;
  }
  .cta-btns { flex-direction: row; min-width: 0; flex-wrap: wrap; }

  /* Reseñas */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Contacto */
  .contact-grid { grid-template-columns: 1fr; }

  /* Contenido subpágina */
  .content-block { grid-template-columns: 1fr; gap: 28px; }
  .content-block.reverse { direction: ltr; }
  /*.content-block img { height: 220px; }*/

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; text-align: center; padding: 13px 20px; }
  .cta-btns .btn { flex: 1; min-width: 120px; }
  .page-hero-btns { flex-direction: column; }
  .wapp-float { bottom: 16px; right: 16px; width: 46px; height: 46px; }
}
