/* Kalinda — hoja de estilos compartida.
   Los colores son los mismos tokens que usa la app (src/theme/colors.ts) para que la web
   y el producto se sientan como una sola cosa. */

:root {
  --background: #eaf3ee;
  --surface: #ffffff;
  --surface-alt: #eff5f1;
  --primary: #2f9e6e;
  --primary-dark: #1f7a54;
  --primary-light: #e1f3ea;
  --accent: #ff8a5b;
  --accent-light: #ffe8dd;
  --text-primary: #1b211d;
  --text-secondary: #6e7a72;
  --border: #e3e9e4;
  --water: #3fa7d6;
  --blob-1: #7fe3b8;
  --blob-2: #8fd4e8;
  --blob-3: #f5d79b;
  --shadow: 0 18px 40px -24px rgba(27, 33, 29, 0.35);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1512;
    --surface: #1b2320;
    --surface-alt: #222c27;
    --primary: #34c77b;
    --primary-dark: #6fe3a8;
    --primary-light: #1e3a2c;
    --accent: #ff9a6b;
    --accent-light: #3a2418;
    --text-primary: #edf2ee;
    --text-secondary: #a6b2aa;
    --border: #2e3833;
    --water: #5fc0e8;
    --blob-1: #1e9e74;
    --blob-2: #2a6fa8;
    --blob-3: #8a6a2e;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Las manchas de color difuminadas del fondo de la app. */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
body::before { width: 460px; height: 460px; background: var(--blob-1); top: -180px; left: -140px; }
body::after  { width: 420px; height: 420px; background: var(--blob-2); top: 22%; right: -180px; opacity: 0.35; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1rem; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 500; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ---------- cabecera ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--background) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.15rem; color: var(--text-primary); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.spacer { flex: 1; }
.lang { font-size: 0.9rem; color: var(--text-secondary); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.lang:hover { text-decoration: none; border-color: var(--primary); color: var(--primary-dark); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -12px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-secondary); max-width: 32ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { font-size: 0.88rem; color: var(--text-secondary); margin-top: 16px; }

/* La captura se escala por altura, no por anchura: así se ve el teléfono entero
   en lugar de quedar recortado por arriba y por abajo en pantallas bajas. */
.phone {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(620px, 66vh);
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- secciones ---------- */
section { padding: clamp(44px, 7vw, 80px) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-secondary); margin-top: 12px; margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--primary-light);
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.card .ico.coral { background: var(--accent-light); }
.card .ico.blue { background: #dff3fa; }
@media (prefers-color-scheme: dark) { .card .ico.blue { background: #173840; } }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.97rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}
.step p { color: var(--text-secondary); font-size: 0.97rem; margin: 6px 0 0; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.shots img { width: 100%; border-radius: 26px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.plan-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.plan-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-secondary); font-size: 0.98rem; }
.plan-list li::before { content: '✓'; color: var(--primary); font-weight: 600; flex: none; }

.faq { display: grid; gap: 14px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
}
details summary { font-weight: 500; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; float: right; color: var(--primary); font-weight: 600; }
details[open] summary::after { content: '−'; }
details p { color: var(--text-secondary); font-size: 0.97rem; margin: 12px 0 0; }

/* ---------- páginas de texto legal ---------- */
.doc { padding: clamp(40px, 6vw, 72px) 0 96px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.doc .updated { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 34px; }
.doc h2 { font-size: 1.22rem; margin-top: 38px; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; color: var(--text-primary); }
.doc .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

/* ---------- pie ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  margin-top: 40px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer.site a { color: var(--text-secondary); }
footer.site a:hover { color: var(--primary-dark); }
footer.site .fine { margin-top: 30px; font-size: 0.86rem; }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero p.lead { max-width: none; }
  .phone { max-width: 260px; }
  body::after { display: none; }
}
