:root {
  --bg: #f3f5f2;
  --bg-card: #ffffff;
  --ink: #1c241c;
  --muted: #5b6358;
  --line: #d4d9d3;
  --accent: #2f5d3d;
  --accent-dark: #234632;
  --wa: #128c4a;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Serif 4", "Georgia", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.sans { font-family: "Source Sans 3", system-ui, sans-serif; }

a { color: var(--accent-dark); }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.brand-logo { width: 36px; height: auto; flex: 0 0 auto; }
.brand small {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.92rem;
}
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }

.hero { padding: 3.2rem 0 2.2rem; }
/* Portada: foto a la derecha del texto (en celular, arriba y más chica) */
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero-grid > div { order: 1; }
.hero-fig { order: 2; margin: 0; text-align: center; }
.hero-foto {
  display: block; margin: 0 auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--line);
}
.marca { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 650; line-height: 1.1; margin: 0 0 0.5rem; }
.marca-m { display: none; }
.hero-nombre { font-size: 1.2rem; color: var(--muted); font-weight: 650; margin-top: 0.7rem; }
.kicker {
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 0.6rem; font-weight: 650; }
.lead { font-size: 1.2rem; max-width: 38rem; color: var(--muted); margin: 0 0 1.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  font-family: "Source Sans 3", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 650;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost {
  background: #e7eee8;
  color: var(--accent-dark);
  border-color: #8aa58f;
}
.btn-ghost:hover { background: #dce7de; }

.note {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.35rem;
}
.card h2, .card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.card .tag {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

section { padding: 2rem 0; }
/* Al saltar a una sección (ej. Atención), dejar lugar para el menú fijo */
[id] { scroll-margin-top: 4.5rem; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.price-row:last-child { border-bottom: 0; }
.price-row b { white-space: nowrap; }

.list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .grid-2 { align-items: start; }

@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* Menú en celular: nombre arriba, enlaces en una fila deslizable debajo */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0 0.4rem;
  }
  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-card);
    font-size: 0.9rem;
  }
  .nav-links a:hover { border-color: var(--accent); }
  .hero { padding-top: 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-fig { order: 0; text-align: left; }
  .hero-foto { margin: 0; width: 120px; height: 120px; }
  .marca-m { display: block; }
  .marca-d { display: none; }
  .hero-nombre { margin-top: 0.5rem; }
  [id] { scroll-margin-top: 6.5rem; }
}
/* Celulares muy angostos: el precio puede ocupar dos renglones para no apretar el texto de la izquierda */
@media (max-width: 400px) {
  .price-row b { white-space: normal; text-align: right; max-width: 45%; }
}
