/* ============================================================
   1% Budget — Landing (redesign)
   Design system ported from the Claude Design redesign.
   Single font: Nunito. Warm off-white surfaces, bold heads.
   ============================================================ */

:root {
  --bg:#FAF8F2; --surface:#FFFFFF; --surface-2:#FFFFFF;
  --band:#FAF8F2; --band-soft:#F1F5EE;
  --text:#2B312E; --head:#1E2522; --muted:rgba(43,49,46,0.62); --faint:rgba(43,49,46,0.40);
  --line:#E7E2D7; --line-soft:#EFEBE1;
  --green:#21845C; --green-strong:#196B49; --green-soft:rgba(33,132,92,0.10);
  --orange:#F5843D; --orange-dark:#E0732C;
  --lime:#3FBE4C; --lime-soft:rgba(71,208,79,0.16);
  --warm:#F7F4C5; --warm-ink:#6E6217;
  --shadow:rgba(40,52,30,0.16); --shadow-soft:rgba(40,45,30,0.07);

  --maxw:1180px;
}

[data-theme="dark"] {
  --bg:#111815; --surface:#1A211D; --surface-2:#1C231F;
  --band:#111815; --band-soft:#161E1A;
  --text:#E7F1EB; --head:#F2FAF6; --muted:rgba(231,241,235,0.64); --faint:rgba(231,241,235,0.40);
  --line:rgba(231,241,235,0.11); --line-soft:rgba(231,241,235,0.06);
  --green:#46C68C; --green-strong:#37B07A; --green-soft:rgba(70,198,140,0.14);
  --orange:#F5843D; --orange-dark:#E0732C;
  --lime:#5BD863; --lime-soft:rgba(91,216,99,0.16);
  --warm:rgba(247,244,197,0.16); --warm-ink:#ECE2A0;
  --shadow:rgba(0,0,0,0.50); --shadow-soft:rgba(0,0,0,0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

@keyframes faqIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gpTip { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* smooth theme switch */
body, .nav, .trust, .feat-card, .how-card, .price-left, .price-right, .plan, .phone, .phone-screen {
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}

/* ---------- shared ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--head);
  margin: 0;
  text-wrap: balance;
}
.section { padding: clamp(74px, 9vw, 124px) 0; }
.section.band { background: var(--band); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(48px, 6vw, 76px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-logo { height: 58px; width: auto; display: block; }
[data-theme="dark"] .nav .brand-logo { filter: brightness(0) invert(1); }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.nav-links a:hover { color: var(--green); }
.nav-ctrls { display: inline-flex; align-items: center; gap: 10px; }
.pill-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.pill-group.lang { font-weight: 800; font-size: 12.5px; letter-spacing: 0.04em; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  background: transparent;
  color: var(--muted);
}
.pill-group.lang .pill-btn { padding: 6px 13px; }
.pill-btn.active { background: var(--green); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 9vw, 116px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: 6%;
  right: -6%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-soft) 0%, rgba(0,0,0,0) 68%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  position: relative;
}
.hero-text { flex: 1 1 380px; min-width: 300px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 4.7vw, 62px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--head);
  margin: 0;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 500px;
  font-weight: 500;
}
.hero-badges { margin-top: 34px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero-shot { flex: 1 1 320px; display: flex; justify-content: center; }

/* ---------- store badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  padding: 10px 17px;
  text-decoration: none;
}
.badge-ios { background: #000; border: 1px solid rgba(127,127,127,0.28); color: #fff; }
.badge-play {
  position: relative;
  background: #8C9490;
  border: 1.5px solid rgba(45,50,47,0.42);
  color: #fff;
  opacity: 0.82;
  cursor: default;
}
.badge-txt { text-align: left; line-height: 1.1; }
.badge-small { display: block; font-size: 10.5px; letter-spacing: 0.02em; color: rgba(255,255,255,0.8); font-weight: 600; }
.badge-big { display: block; font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.gp-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 22px -10px rgba(0,0,0,0.45);
  animation: gpTip 0.22s cubic-bezier(.22,1,.36,1) both;
}

/* ---------- phone mockup (hero) ---------- */
.phone {
  position: relative;
  width: min(310px, 76vw);
  aspect-ratio: 1179 / 2556;
  border-radius: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 60px 100px -55px var(--shadow), 0 28px 54px -40px var(--shadow-soft);
  padding: 13px;
  animation: floaty 7s ease-in-out infinite;
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: var(--band);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 33%; height: 24px; background: #0D0D0D; border-radius: 999px; z-index: 2; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 17px 24px 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.phone-batt { width: 17px; height: 10px; border: 1.5px solid var(--muted); border-radius: 3px; }
.phone-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.shot-label { border: 1.5px dashed var(--green); color: var(--green); background: var(--surface); border-radius: 13px; padding: 13px 16px; font-weight: 700; font-size: 12.5px; line-height: 1.4; max-width: 88%; }
.shot-dim { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--faint); }

/* ---------- trust strip ---------- */
.trust { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15px; color: var(--text); }
.trust-item .ic { color: var(--green); display: flex; }
.trust-div { width: 1px; height: 20px; background: var(--line); }

/* ---------- features ---------- */
.feat-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.feat-card { flex: 1 1 230px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 20px; padding: 30px 28px; }
.feat-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.feat-card h3 { font-weight: 800; font-size: 19px; color: var(--head); margin: 0 0 9px; letter-spacing: -0.01em; }
.feat-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- diamond separator ---------- */
.sep { background: var(--bg); padding: clamp(6px, 1.6vw, 18px) 28px; }
.sep.band { background: var(--band); }
.sep-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.sep-line-l { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.sep-line-r { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sep-diamond { width: 9px; height: 9px; background: var(--green); transform: rotate(45deg); border-radius: 2px; }

/* ---------- how it works ---------- */
.how-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: clamp(6px, 2vw, 18px); }
.how-card { flex: 1 1 260px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.how-phone { position: relative; width: min(166px, 58%); aspect-ratio: 1179 / 2556; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 56px -42px var(--shadow), 0 12px 26px -26px var(--shadow-soft); padding: 8px; }
.how-screen { height: 100%; border-radius: 21px; background: var(--band-soft); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.how-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; background: #0D0D0D; border-radius: 999px; z-index: 2; }
.how-status { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px 0; font-size: 8px; font-weight: 800; color: var(--muted); }
.how-batt { width: 12px; height: 7px; border: 1.2px solid var(--muted); border-radius: 2px; }
.how-shotwrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 13px; }
.how-shot { border: 1.5px dashed var(--green); color: var(--green); background: var(--surface); border-radius: 9px; padding: 9px 10px; font-weight: 700; font-size: 10px; line-height: 1.35; max-width: 96%; }
.how-num { margin-top: 24px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 14px; }
.how-card h3 { margin: 14px 0 9px; font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--head); }
.how-card p { margin: 0; max-width: 280px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- pricing ---------- */
.pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.price-card { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -50px var(--shadow), 0 16px 40px -34px var(--shadow-soft); }
.price-left { flex: 1 1 340px; background: var(--surface); padding: clamp(30px, 4vw, 46px); display: flex; flex-direction: column; gap: 18px; }
.pick-label { font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--surface); }
.plan.featured { border: 2px solid var(--green); background: var(--green-soft); }
.plan-pill { position: absolute; top: 14px; right: 16px; background: var(--warm); color: var(--warm-ink); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.plan-name { font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.plan.featured .plan-name { color: var(--green); }
.plan-price { font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.02em; color: var(--head); line-height: 1.05; }
.plan-save { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--lime); }
.plan-msub { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan-cta { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px 26px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; transition: background-color 0.16s ease; }
.plan-cta:hover { background: var(--orange-dark); }
.plan-foot { font-size: 12.5px; color: var(--faint); line-height: 1.5; text-align: center; }
.price-right { flex: 1 1 360px; background: var(--band-soft); padding: clamp(30px, 4vw, 46px); border-left: 1px solid var(--line); }
.incl-title { font-weight: 800; font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.01em; color: var(--head); margin-bottom: 24px; }
.incl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 17px; }
.incl-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; color: var(--text); line-height: 1.45; font-weight: 600; }
.incl-check { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--lime-soft); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 840px; margin: 0 auto; padding: 0 28px; }
.faq-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item.last { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: inherit; font-weight: 700; font-size: 17px; color: var(--head); }
.faq-chev { flex-shrink: 0; color: var(--green); display: flex; transition: transform 0.2s ease; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 4px 22px; font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 680px; animation: faqIn 0.24s ease; }

/* ---------- final cta ---------- */
.cta { padding: clamp(72px, 9vw, 116px) 0; background: #2F9268; text-align: center; }
.cta-inner { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.cta .eyebrow { color: rgba(255,255,255,0.7); }
.cta h2 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; color: #fff; margin: 0; text-wrap: balance; }
.cta-sub { color: rgba(255,255,255,0.9); font-size: 17px; margin: 18px 0 32px; display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-sub .dot { opacity: 0.5; }
.cta-badges { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer ---------- */
.footer { background: #102019; color: #EBFFF3; padding: 64px 0 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; }
.footer-brand .brand-logo { height: 56px; align-self: flex-start; flex: 0 0 auto; filter: brightness(0) invert(1); }
.footer-tag { font-size: 14px; color: rgba(235,255,243,0.66); max-width: 320px; line-height: 1.6; }
.footer-col { flex: 1 1 150px; }
.footer-col h4 { font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(235,255,243,0.6); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(235,255,243,0.85); font-size: 15px; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(235,255,243,0.12); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(235,255,243,0.66); }
.socials { display: flex; gap: 13px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(235,255,243,0.2); display: inline-flex; align-items: center; justify-content: center; color: rgba(235,255,243,0.8); transition: all 0.16s ease; }
.socials a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- legal pages (privacidad.html / terminos.html) ---------- */
.legal-nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.legal-nav-inner { max-width: 840px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-nav .brand-logo { height: 42px; }
[data-theme="dark"] .legal-nav .brand-logo { filter: brightness(0) invert(1); }
.legal-back { font-weight: 700; font-size: 14px; color: var(--muted); }
.legal-back:hover { color: var(--green); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(44px, 7vw, 80px) 28px clamp(60px, 9vw, 110px); }
.legal h1 { font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; color: var(--head); margin: 0 0 8px; line-height: 1.1; }
.legal .updated { font-size: 13px; color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.01em; color: var(--head); margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a:not(.legal-back) { color: var(--green); text-decoration: underline; }
.legal .placeholder { background: var(--green-soft); border: 1px dashed var(--green); border-radius: 10px; padding: 14px 16px; margin: 14px 0; font-size: 14px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-shot { order: -1; }
  .price-right { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
}
