/* YayaCare — sitio informativo.
   Un solo archivo, sin build ni framework: el sitio existe para explicar el
   producto y para alojar las páginas legales que Apple y Google exigen antes
   de aceptar la app. Nada de eso mejora con una cadena de herramientas. */

:root {
  --teal: #0EA5A4;
  --teal-deep: #056E6D;
  --teal-tint: #F1F8F7;
  --ink: #14201F;
  --muted: #5B6B6A;
  --line: #DCE8E7;
  --white: #FFFFFF;
  --radius: 16px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Header --- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--teal-deep); }

/* --- Hero --- */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--teal-tint), var(--white)); }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; letter-spacing: -.02em; max-width: 15ch; }
.hero p.lead { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); margin-top: 20px; max-width: 56ch; }
.cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-deep); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }

/* --- Sections --- */
section { padding: 76px 0; }
section.tinted { background: var(--teal-tint); }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.015em; max-width: 22ch; }
h2 + p.sub { color: var(--muted); margin-top: 12px; max-width: 60ch; font-size: 17px; }

.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--teal-tint);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--teal-deep);
}
.card .ico svg { width: 22px; height: 22px; }

/* --- Steps --- */
.steps { counter-reset: step; margin-top: 40px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-deep); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* --- Price --- */
.price-card {
  max-width: 460px; margin: 44px auto 0; text-align: center;
  border: 2px solid var(--teal); border-radius: var(--radius);
  padding: 36px 30px; background: var(--white);
}
.price { font-size: 46px; font-weight: 800; color: var(--teal-deep); letter-spacing: -.03em; }
.price span { font-size: 17px; font-weight: 500; color: var(--muted); }
.price-list { list-style: none; margin: 24px 0 0; text-align: left; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.price-list li::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* --- FAQ --- */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { font-weight: 600; cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 68ch; }

/* --- Legal pages --- */
.legal { padding: 56px 0 84px; max-width: 760px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal h2 { font-size: 21px; margin-top: 38px; max-width: none; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: #33403F; font-size: 16px; margin-top: 12px; }
.legal ul { margin-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--teal-tint); font-weight: 600; }
.callout { background: var(--teal-tint); border-left: 3px solid var(--teal); padding: 16px 18px; border-radius: 0 10px 10px 0; margin-top: 20px; }
.callout p { margin-top: 0; }

/* --- Footer --- */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; display: block; margin-top: 8px; }
footer a:hover { color: var(--teal-deep); }
footer strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 14px; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 48px; }
}
