:root {
  --bg: #f7f3ea;
  --bg-2: #efe8da;
  --surface: #ffffff;
  --text: #10231f;
  --muted: #5d716c;
  --line: #e4ddcf;
  --primary: #0f766e;
  --primary-strong: #0b5d57;
  --primary-soft: #d7ece9;
  --heart: #c62828;
  --ok: #15803d;
  --ok-soft: #e3f5e9;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 35, 31, .06), 0 10px 30px rgba(16, 35, 31, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 720; }
h3 { font-size: 1.08rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 72px 0; }
.alt { background: var(--bg-2); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .6em; }
.pendiente { background: #fff2a8; outline: 2px dashed #d4a300; border-radius: 4px; padding: 0 3px; }

/* ---------- cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow); }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 550; }
.top nav a:hover { color: var(--primary); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .top nav a:not(.btn):not(.lang) { display: none; } }

/* ---------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f63d1; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn[aria-disabled='true'] { opacity: .38; pointer-events: none; filter: grayscale(.6); }

/* ---------- portada */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .86rem; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
}

/* ---------- maqueta de móvil (dibujada, sin capturas con datos reales) */
.phone {
  width: 300px; border-radius: 42px; padding: 12px; background: #1d2624;
  box-shadow: 0 30px 60px rgba(16, 35, 31, .25), inset 0 0 0 2px #36413e;
}
.screen { background: var(--bg); border-radius: 32px; overflow: hidden; padding: 18px 14px 14px; font-size: 13px; }
.s-head { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; margin-bottom: 12px; }
.s-head img { width: 26px; height: 26px; border-radius: 7px; background: #fff; }
.s-hello { background: linear-gradient(135deg, #0f766e, #0b5d57); color: #fff; border-radius: 16px; padding: 14px 14px; display: flex; justify-content: space-between; align-items: center; }
.s-hello b { display: block; font-size: 17px; }
.s-hello small { opacity: .85; }
.s-hello .n { font-size: 30px; font-weight: 800; line-height: 1; text-align: right; }
.s-hello .n small { display: block; font-size: 10.5px; font-weight: 500; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0; }
.s-grid div { background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 8px 2px 6px; font-size: 11.5px; }
.s-grid span { display: block; font-size: 19px; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-top: 8px; }
.s-card .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.s-card .t { font-weight: 700; }
.s-pill { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 11px; }
.s-take { background: var(--primary); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 11px; }
.s-nav { display: flex; justify-content: space-around; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); text-align: center; }
.s-nav span { display: block; font-size: 16px; }
.s-nav .on { color: var(--primary); font-weight: 700; }

/* ---------- funciones */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .ico { font-size: 28px; line-height: 1; margin-bottom: 12px; display: block; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- privacidad destacada */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 14px; display: grid; place-items: center; }

/* ---------- acceso */
.steps { counter-reset: paso; display: grid; gap: 16px; margin-top: 30px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 76px; position: relative; box-shadow: var(--shadow); }
.step::before { counter-increment: paso; content: counter(paso); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step.locked { opacity: .55; }
.step.locked::before { background: #9aa9a5; }
.step p:last-child { margin-bottom: 0; }
.step .btn { margin-top: 6px; }
.accept label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: .98rem; }
.accept input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--primary); }
.state { margin-top: 10px; font-size: .92rem; font-weight: 650; }
.state.ok { color: var(--ok); }
.state.no { color: var(--muted); }
.note { background: #fff8e6; border: 1px solid #f0dfb0; border-radius: 14px; padding: 14px 16px; font-size: .94rem; margin-top: 18px; }

/* ---------- preguntas */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--primary); font-weight: 800; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); }

/* ---------- donativo */
.donate { background: linear-gradient(135deg, #0f766e, #0b5d57); color: #fff; border-radius: 26px; padding: 40px 32px; text-align: center; box-shadow: var(--shadow); }
.donate h2 { color: #fff; }
.donate p { opacity: .92; max-width: 36em; margin-left: auto; margin-right: auto; }
.btn-bizum { background: #fff; color: #05605a; font-size: 1.08rem; padding: 15px 28px; }
.btn-bizum:hover { background: #f0fbf9; }
.bizum-box { margin: 22px auto 0; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 18px; padding: 18px; max-width: 380px; }
.bizum-num { font-size: 1.9rem; font-weight: 800; letter-spacing: .04em; margin: 4px 0 10px; }
.bizum-box .pendiente { color: #10231f; }
.bizum-box small { display: block; opacity: .85; margin-top: 10px; }

/* ---------- pie */
footer { padding: 34px 0 44px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- páginas legales */
.legal { padding: 48px 0 70px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-2); }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }

/* cabecera en pantallas estrechas */
.brand, .btn { white-space: nowrap; }
@media (max-width: 480px) { .top nav a.btn-primary { display: none; } }

/* traducción bajo el nombre */
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt small { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
