/* =========================================================
   ProntoPeso — sitio web
   Paleta tomada de la app y de las imágenes de App Store:
   靛蓝 #1E1B4B / #2E2A6E · 玫红 #E4007C · 金 #FFC93C
   ========================================================= */

:root {
  --ink: #1E1B4B;
  --ink-2: #2E2A6E;
  --ink-3: #12102E;
  --rose: #E4007C;
  --rose-2: #F0359A;
  --rose-dark: #B80064;
  --gold: #FFC93C;
  --blue: #1F5FA8;

  --text: #15142B;
  --text-2: #45445E;
  --text-3: #77768F;
  --line: #E6E4F2;
  --soft: #F6F5FA;
  --white: #FFFFFF;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 18px 40px rgba(30, 27, 75, 0.14);
  --shadow-phone: 0 30px 60px rgba(6, 4, 30, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); }
a:hover { color: var(--rose-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-rose {
  background: linear-gradient(135deg, var(--rose-2), var(--rose));
  color: var(--white); box-shadow: 0 10px 24px rgba(228, 0, 124, .35);
}
.btn-rose:hover { color: var(--white); background: var(--rose-dark); }
.btn-line { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-line:hover { color: var(--white); border-color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

.kicker {
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 12px;
}
.kicker-gold { color: var(--gold); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 27, 75, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo span { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.logo b { color: var(--rose-2); }
.logo:hover { color: var(--white); }
.logo img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--white); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; margin: 6px 0; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  background: radial-gradient(120% 80% at 50% 0%, var(--ink-2) 0%, var(--ink) 55%, var(--ink-3) 100%);
  padding: 72px 0 0;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 30%, rgba(228,0,124,.28), transparent 70%),
    radial-gradient(35% 30% at 88% 25%, rgba(255,201,60,.18), transparent 70%);
}
.hero-copy { position: relative; max-width: 820px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.9);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,201,60,.2); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 900; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }
.hero-lead strong { color: var(--white); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Teléfono (marco CSS sencillo) */
.phone {
  margin: 0; background: #0B0A1A; padding: 9px; border-radius: 42px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone img { border-radius: 33px; width: 100%; height: auto; }

.fan {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  margin-top: 60px; height: 470px; overflow: hidden;
}
.fan .phone { width: 270px; position: relative; }
.phone-main { z-index: 2; transform: translateY(0); }
.phone-side { opacity: .9; }
.phone-left { transform: translate(40px, 40px) rotate(-9deg); z-index: 1; }
.phone-right { transform: translate(-40px, 40px) rotate(9deg); z-index: 1; }

/* ---------- Calculadora ---------- */
.calc-band { background: var(--soft); padding: 0 0 72px; }
.calc {
  position: relative; z-index: 3; margin-top: -36px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 40px 44px; border: 1px solid var(--line);
}
.calc h2 { font-size: 1.6rem; }
.calc-amount { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; color: var(--ink); margin: 14px 0 18px; letter-spacing: -0.03em; }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px;
  background: linear-gradient(90deg, var(--rose) 0%, var(--rose) var(--p, 47%), var(--line) var(--p, 47%));
  outline: none; cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 6px solid var(--rose); box-shadow: 0 4px 12px rgba(228,0,124,.4);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 6px solid var(--rose);
}
.calc input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(228,0,124,.2); }
.calc-scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: .85rem; margin-top: 10px; }
.calc-right { margin: 0; background: var(--ink); color: var(--white); border-radius: var(--r-md); padding: 26px 28px; align-self: center; }
.calc-right div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.calc-right dt { color: rgba(255,255,255,.7); }
.calc-right dd { margin: 0; font-weight: 700; }
.calc-right .calc-total { border-bottom: 0; padding-top: 16px; }
.calc-right .calc-total dt { color: var(--white); font-weight: 700; }
.calc-right .calc-total dd { color: var(--gold); font-size: 1.35rem; font-weight: 900; }
.calc-note { color: var(--text-3); font-size: .85rem; text-align: center; margin-top: 18px; }

/* ---------- Secciones ---------- */
.sec { padding: 96px 0; }
.sec-soft { background: var(--soft); }
.sec-ink { background: var(--ink); color: var(--white); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head.left { text-align: left; margin: 0; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  position: relative; padding: 34px 28px 30px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.step:hover { border-color: rgba(228,0,124,.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n {
  position: absolute; top: 22px; right: 26px;
  font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--soft);
  -webkit-text-stroke: 1.5px var(--line);
}
.step-ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--ink); margin-bottom: 22px;
}
.step-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); }

/* App con pestañas */
.app-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.app-copy h2 { margin-bottom: 32px; }
.tabs { display: grid; gap: 10px; }
.tab {
  text-align: left; font: inherit; color: rgba(255,255,255,.75); cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md);
  padding: 16px 20px 16px 22px; position: relative; transition: background .2s, border-color .2s, color .2s;
}
.tab b { display: block; font-size: 1.05rem; color: var(--white); margin-bottom: 2px; }
.tab span { font-size: .92rem; }
.tab::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: transparent; transition: background .2s;
}
.tab:hover { border-color: rgba(255,255,255,.25); }
.tab.is-on { background: rgba(255,255,255,.06); border-color: rgba(228,0,124,.55); color: rgba(255,255,255,.9); }
.tab.is-on::before { background: var(--rose); }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app-stage { display: flex; justify-content: center; position: relative; }
.app-stage::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(228,0,124,.35), transparent 65%);
}
.phone-stage { width: 290px; position: relative; }
.phone-stage img { transition: opacity .25s ease; }
.phone-stage img.is-fading { opacity: 0; }

/* Ventajas */
.perks { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.perk-list li { padding: 22px 0 22px 34px; border-top: 1px solid var(--line); position: relative; }
.perk-list li::before {
  content: ""; position: absolute; left: 0; top: 26px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.perk-list b { display: block; font-size: 1.05rem; }
.perk-list span { color: var(--text-2); font-size: .95rem; }

/* Preguntas */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 24px; }
.faq details[open] { border-color: rgba(228,0,124,.45); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--rose); font-size: 1.2rem; font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--rose); color: var(--white); }
.faq details p { color: var(--text-2); padding: 0 0 20px; }

/* Empresa */
.company { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.company h2 { margin-bottom: 18px; }
.company-text { color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 30px; }
.company-text strong { color: var(--white); }
.company-data { margin: 0; display: grid; gap: 0; }
.company-data div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.company-data dt { color: var(--gold); font-weight: 700; font-size: .9rem; }
.company-data dd { margin: 0; color: rgba(255,255,255,.9); }
.company-data a { color: var(--white); }
.contact-card { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: 34px 32px; box-shadow: var(--shadow-phone); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.contact-card > p { color: var(--text-2); margin-bottom: 22px; }
.doc-links { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.doc-links li { border-bottom: 1px solid var(--line); }
.doc-links a { display: flex; justify-content: space-between; padding: 13px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.doc-links a::after { content: "→"; color: var(--rose); }
.doc-links a:hover { color: var(--rose); }

/* Pie */
.foot { background: var(--ink-3); color: rgba(255,255,255,.6); padding: 34px 0; font-size: .9rem; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; }
.logo-sm span { font-size: 1.05rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-copy { width: 100%; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ---------- Páginas legales ---------- */
.legal-hero { background: var(--ink); color: var(--white); padding: 56px 0 88px; }
.legal-hero .kicker { color: var(--gold); }
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; }
.legal-hero .updated { color: rgba(255,255,255,.65); margin-top: 10px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.legal-tabs a {
  padding: 8px 18px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: .9rem;
  color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2);
}
.legal-tabs a:hover { color: var(--white); border-color: var(--white); }
.legal-tabs a[aria-current="page"] { background: var(--rose); border-color: var(--rose); color: var(--white); }
.legal-body { background: var(--soft); padding: 0 0 80px; }
.doc {
  max-width: 860px; margin: -48px auto 0; background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 48px 56px; position: relative;
}
.doc p, .doc li { color: var(--text-2); }
.doc > p { margin-bottom: 14px; }
.doc h2 {
  font-size: 1.3rem; margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: baseline;
}
.doc h2 .n { color: var(--rose); font-weight: 900; min-width: 1.6em; }
.doc h3 { font-size: 1.02rem; margin: 20px 0 8px; color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0 14px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.note { background: #FFF7DB; border: 1px solid rgba(255, 201, 60, .55); border-radius: var(--r-md); padding: 18px 22px; margin: 22px 0; }
.note p { color: var(--ink); margin: 6px 0; }
.box { background: var(--soft); border-radius: var(--r-md); padding: 16px 20px; margin: 14px 0; }
.box p { margin: 4px 0; }
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--ink); color: var(--white); font-weight: 700; }
.tbl th:first-child { border-top-left-radius: var(--r-sm); }
.tbl th:last-child { border-top-right-radius: var(--r-sm); }
.tbl td:first-child { font-weight: 600; color: var(--text); }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.signs > div { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 20px; }
.signs .line { border-bottom: 1px solid var(--text-3); height: 34px; margin-bottom: 4px; }
.signs small { color: var(--text-3); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 8px 24px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
  .calc { grid-template-columns: 1fr; gap: 28px; padding: 30px 26px; }
  .steps { grid-template-columns: 1fr; }
  .app-grid, .perks, .company { grid-template-columns: 1fr; gap: 40px; }
  .sec-head.left { text-align: center; }
  .app-stage { order: -1; }
}
@media (max-width: 640px) {
  .sec { padding: 72px 0; }
  .hero { padding-top: 52px; }
  .fan { height: 360px; margin-top: 44px; }
  .fan .phone { width: 200px; }
  .phone { border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 25px; }
  .phone-left { transform: translate(70px, 40px) rotate(-9deg); }
  .phone-right { transform: translate(-70px, 40px) rotate(9deg); }
  .perk-list { grid-template-columns: 1fr; }
  .company-data div { grid-template-columns: 1fr; gap: 2px; }
  .phone-stage { width: 240px; }
  .doc { padding: 30px 22px; margin-top: -40px; }
  .signs { grid-template-columns: 1fr; }
  .tbl { font-size: .88rem; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
}
