/* ============================================================
   Centro Tu Salud — sistema de diseño propio
   Médico, cálido, local. Nada de template IA genérica:
   acento terracota de marca + verde salvia + beige papel,
   tipografía editorial (Fraunces display + Figtree body).
   ============================================================ */

:root {
  /* Paleta derivada del logo real (verde hoja + terracota del rótulo) */
  --accent: #c0542f;          /* terracota del logotipo "Tu Salud" */
  --accent-dark: #9c4324;
  --leaf: #3f7d43;             /* verde hoja del logo */
  --leaf-dark: #2d5c30;
  --bg: #faf6ee;               /* beige papel */
  --surface: #ffffff;
  --surface-alt: #f1ece0;
  --ink: #23291f;
  --ink-soft: #55604f;
  --line: #e4dcc9;
  --whatsapp: #25d366;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 32px -16px rgba(35, 41, 31, 0.28);
  --shadow-card: 0 8px 20px -12px rgba(35, 41, 31, 0.22);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
}

h2.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

section { padding: 88px 0; }
section.tight { padding: 64px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

nav.main-nav {
  display: flex;
  gap: 26px;
}

nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s;
}
nav.main-nav a:hover { color: var(--accent); }

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.6);
}

.btn-call {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-call:hover { border-color: var(--accent); }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(63,125,67,0.14), transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  font-size: 1.12rem;
  max-width: 48ch;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.trust-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--leaf);
  flex: none;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.hero-visual img { width: 100%; height: 440px; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.hero-badge span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Franja de confianza ---------- */
.strip {
  background: var(--leaf-dark);
  color: #fff;
  padding: 16px 0;
}
.strip .container {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Servicios ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 44px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Precios ---------- */
.price-box {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.price-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  border-left: 3px solid var(--accent);
}
.price-item:first-child { padding-left: 18px; }
.price-item strong { font-family: var(--font-display); font-size: 1.05rem; }
.price-item .amount { font-size: 1.3rem; font-weight: 700; color: var(--leaf-dark); }
.price-item .amount small { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.price-item .note { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Tratamientos (franja alterna) ---------- */
.alt { background: var(--surface-alt); }

.treatment-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.treatment-row:last-child { margin-bottom: 0; }
.treatment-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.treatment-row.reverse .treatment-media { order: 2; }

.treatment-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.treatment-media img { width: 100%; height: 320px; object-fit: cover; }

.treatment-copy .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(192, 84, 47, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.treatment-copy h3 { font-size: 1.5rem; margin-bottom: 12px; }

.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--ink-soft);
  margin-bottom: 10px;
}
.check-list li::before {
  content: "✓";
  color: var(--leaf);
  font-weight: 700;
  flex: none;
}

/* ---------- Productos ---------- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.product-card img { width: 100%; height: 190px; object-fit: cover; }
.product-card .body { padding: 18px 20px; }
.product-card h4 { font-size: 1rem; margin-bottom: 6px; }
.product-card p { font-size: 0.86rem; margin-bottom: 0; }
.product-card .cat {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--leaf-dark);
}

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.about-media img { width: 100%; height: 460px; object-fit: cover; object-position: top; }

.about-copy .quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 24px 0;
}

/* ---------- Testimonios ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.testimonial .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .who { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-top: 14px; }

.testimonial-note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 0.95rem; }

/* ---------- Ubicación / Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.info-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row .ic { font-size: 1.2rem; }
.info-row strong { display: block; font-size: 0.95rem; }
.info-row span { font-size: 0.88rem; color: var(--ink-soft); }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  height: 100%;
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Blog ---------- */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.blog-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--leaf-dark); }
.blog-card h4 { margin: 10px 0 8px; font-size: 1.05rem; }
.blog-card p { font-size: 0.88rem; }

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--leaf-dark), var(--leaf));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  margin: 0 24px;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.88); max-width: 50ch; margin-inline: auto; }
.final-cta .hero-ctas { justify-content: center; margin-top: 24px; margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.68); font-size: 0.88rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.65);
  z-index: 60;
  font-size: 1.7rem;
  color: #fff;
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Reserva de espacio para el futuro widget de chat (esquina inferior derecha,
   sin solaparse con el botón de WhatsApp). El snippet real lo inserta
   /starter-web cuando el cliente tenga chat contratado. */
.chat-widget-slot { position: fixed; right: 22px; bottom: 96px; z-index: 55; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual img { height: 300px; }
  .about-media img { height: 320px; }
  .treatment-row, .treatment-row.reverse {
    grid-template-columns: 1fr;
  }
  .treatment-row.reverse .treatment-media { order: 0; }
  .treatment-media img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .final-cta { padding: 40px 24px; margin: 0 16px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 64px; }
  .btn { padding: 12px 18px; font-size: 0.88rem; }
  .strip .container { gap: 14px; font-size: 0.78rem; }
  .float-whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
