/* Centro Tu Salud — hoja de estilos global */
:root {
  --verde: #2f6f4e;
  --verde-oscuro: #234f38;
  --azul: #2e6e8e;
  --coral: #d9552a;
  --coral-oscuro: #b8431f;
  --beige: #f6f1e7;
  --beige-oscuro: #ece3d1;
  --texto: #2a2d2c;
  --texto-suave: #5a5e5c;
  --blanco: #ffffff;
  --whatsapp: #25d366;
  --radio: 14px;
  --sombra: 0 8px 24px rgba(47, 111, 78, 0.08);
  --max: 1140px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: var(--font-display); }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid var(--beige-oscuro);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--verde-oscuro);
}
.logo span { color: var(--coral); }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--verde-oscuro);
  cursor: pointer;
}

.main-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(80vw, 320px);
  background: var(--blanco);
  box-shadow: -8px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 80px 24px 24px;
  z-index: 99;
}
.main-nav.open { transform: translateX(0); }
.main-nav ul { display: flex; flex-direction: column; gap: 18px; }
.main-nav a {
  font-weight: 600;
  color: var(--texto);
}
.main-nav a.active, .main-nav a:hover { color: var(--verde); }
.nav-cta {
  margin-top: 24px;
  display: inline-block;
  background: var(--whatsapp);
  color: var(--blanco);
  padding: 12px 18px;
  border-radius: var(--radio);
  text-align: center;
  font-weight: 700;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 98;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    transform: none;
    box-shadow: none;
    width: auto;
    padding: 0;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: 26px; }
  .nav-cta { margin-top: 0; padding: 10px 18px; }
  .nav-overlay { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radio);
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--blanco); }
.btn-llamar { background: var(--azul); color: var(--blanco); }
.btn-outline { background: transparent; border: 2px solid var(--verde); color: var(--verde-oscuro); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-oscuro) 100%);
  padding: 64px 0 56px;
}
.hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--azul);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--verde-oscuro);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--texto-suave);
  margin-bottom: 24px;
  max-width: 52ch;
}
.hero-img {
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  background: var(--beige-oscuro);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radio);
}
.product-shot {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4/3;
  margin-bottom: 16px;
}
.product-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--verde-oscuro);
  color: var(--blanco);
  padding: 14px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-bar .item::before { content: "✓ "; color: #9ad4b3; }

/* ---------- Secciones genéricas ---------- */
section { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .tag {
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 0.82rem;
}
.section-head h2 { color: var(--verde-oscuro); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 8px 0 12px; }
.section-head p { color: var(--texto-suave); }
.bg-beige { background: var(--beige); }

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--blanco);
  border: 1px solid var(--beige-oscuro);
  border-radius: var(--radio);
  padding: 26px;
  box-shadow: var(--sombra);
}
.card.card-media { padding: 0; overflow: hidden; }
.card.card-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.card.card-media .card-media-body { padding: 22px; }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card h3 { color: var(--verde-oscuro); margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--texto-suave); font-size: 0.96rem; }

.pill {
  display: inline-block;
  background: var(--beige);
  color: var(--verde-oscuro);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Testimonios ---------- */
.testimonio {
  background: var(--blanco);
  border-left: 4px solid var(--verde);
  border-radius: var(--radio);
  padding: 22px;
  box-shadow: var(--sombra);
}
.testimonio p.quote { font-style: italic; color: var(--texto); margin-bottom: 12px; }
.testimonio .autor { font-weight: 700; color: var(--verde-oscuro); font-size: 0.92rem; }

.aviso {
  background: var(--beige);
  border-left: 4px solid var(--azul);
  color: var(--texto-suave);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  margin-top: 18px;
}
.placeholder-note {
  background: #fff8e6;
  border: 1px dashed #d9b64a;
  color: #6b5416;
  padding: 14px 18px;
  border-radius: var(--radio);
  font-size: 0.88rem;
  margin-top: 10px;
}

/* ---------- FAQ ---------- */
details.faq {
  background: var(--blanco);
  border: 1px solid var(--beige-oscuro);
  border-radius: var(--radio);
  padding: 16px 20px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--verde-oscuro);
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; font-size: 1.2rem; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 10px; color: var(--texto-suave); }

/* ---------- Contacto / Ubicación ---------- */
.contact-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.info-list li { display: flex; gap: 12px; margin-bottom: 16px; }
.info-list .ico { font-size: 1.2rem; }
.map-embed {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: none;
  width: 100%;
  min-height: 320px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--verde-oscuro);
  color: #e5efe9;
  padding: 44px 0 20px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: var(--blanco); margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { color: #cfe3d7; }
.footer-grid a:hover { color: var(--blanco); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  font-size: 0.82rem;
  color: #b9d2c3;
  text-align: center;
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--whatsapp);
  color: var(--blanco);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
}

/* ---------- Breadcrumb / page hero pequeño ---------- */
.page-hero {
  background: var(--beige);
  padding: 42px 0;
  text-align: center;
}
.page-hero .tag { color: var(--azul); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; }
.page-hero h1 { color: var(--verde-oscuro); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-top: 8px; }
.page-hero p { color: var(--texto-suave); margin-top: 10px; max-width: 60ch; margin-left: auto; margin-right: auto; }

.cta-band {
  background: var(--verde);
  color: var(--blanco);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.cta-band p { margin-bottom: 22px; color: #e5f3ea; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn-outline { border-color: var(--blanco); color: var(--blanco); }
