/* Página de venta y páginas legales de Fórmula Propia. Una columna en el celular; tapa oscura con franjas de seguridad. */
:root {
  --ink: #14302F; --paper: #F6F8F6; --surface: #FFFFFF; --text: #14302F; --muted: #56696A; --line: #D6DFDB;
  --amber: #E3A21A; --amber-soft: #FBF1D6; --good: #1F7A5A; --good-soft: #E1F2EA;
  --f-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0F1817; --surface: #16211F; --text: #E6EEEB; --muted: #9DB0AC; --line: #283634; --amber-soft: #2E2715; --good: #5BC49A; --good-soft: #15302A; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
section { padding-block: 64px; }
.eyebrow { font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--amber); color: #14302F; font-family: var(--f-head); font-weight: 700; font-size: 23px;
  padding: 13px 30px; border-radius: 999px; text-decoration: none; border: 2px solid var(--amber); }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.brand { font-family: var(--f-head); font-weight: 700; font-size: 26px; color: #fff; text-decoration: none; letter-spacing: .02em; }
.brand span, .brand-sm span { color: var(--amber); }

/* Tapa */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding-top: 28px; }
.hero::after { content: ""; position: absolute; top: 0; right: -70px; width: 150px; height: 100%;
  background: repeating-linear-gradient(135deg, var(--amber) 0 22px, transparent 22px 44px); opacity: .85; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; position: relative; z-index: 1; padding-right: 70px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 700; margin: 26px 0 16px; }
.hero h1 span { color: var(--amber); }
.hero .sub { font-size: 20px; color: #DCE8E4; max-width: 36ch; margin-bottom: 26px; }
.micro { font-size: 15px; color: #BFD2CD; margin-top: 12px; }
.hero-phones { position: relative; height: 560px; }
.phone { margin: 0; border-radius: 30px; overflow: hidden; border: 8px solid #0A1211; background: #0A1211; box-shadow: 0 24px 60px rgba(0,0,0,.35); width: 250px; aspect-ratio: 1 / 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-phones .phone { position: absolute; }
.hero-phones .back { right: 150px; top: 40px; transform: rotate(-4deg); }
.hero-phones .front { right: 0; top: 0; transform: rotate(3deg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); margin-top: 44px; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.12); }
.stats div { background: var(--ink); padding: 18px 16px 22px; }
.stats b { display: block; font-family: var(--f-head); font-size: 40px; color: var(--amber); line-height: 1; }
.stats span { font-size: 15px; color: #BFD2CD; }

/* Bloques */
.sec-head { max-width: 740px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(34px, 4.8vw, 50px); font-weight: 700; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.feat { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-block: 28px; border-top: 1px solid var(--line); }
.feat.rev { grid-template-columns: auto 1fr; }
.feat.rev .feat-copy { order: 2; }
.feat-copy { max-width: 520px; }
.feat .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #14302F; font-family: var(--f-head); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 32px; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 18px; }
.feat .phone { width: 240px; }
.duo { display: flex; gap: 16px; }
.duo .phone { width: 210px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.line h3 { font-size: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--amber); margin-bottom: 10px; }
.line ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.line em { font-style: normal; font-family: var(--f-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--good-soft); color: var(--good); padding: 1px 8px; border-radius: 99px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.plan.pro { border: 2px solid var(--amber); }
.plan h3 { font-size: 30px; }
.price { font-family: var(--f-head); font-size: 46px; font-weight: 700; line-height: 1; }
.price small { font-size: 20px; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.plan .btn { justify-self: start; }
.fine { font-size: 15px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 780px; }
.faq summary { cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: 23px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--amber); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 8px; }
.cta-end { text-align: center; }
.cta-end h2 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.cta-end p { color: var(--muted); margin-bottom: 22px; font-size: 18px; }
.foot { background: var(--ink); color: #BFD2CD; padding-block: 32px; font-size: 15px; }
.foot p { margin-top: 6px; }
.brand-sm { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: #fff; }

/* Legales */
.legal-head { background: var(--ink); padding-block: 16px; }
.legal { max-width: 760px; padding-block: 36px 64px; }
.legal h1 { font-size: 44px; margin-bottom: 6px; }
.legal .upd { color: var(--muted); margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 8px; }
.legal ul { padding-left: 20px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-right: 0; }
  .hero-copy { padding-right: 34px; }
  .hero::after { width: 90px; right: -50px; opacity: .6; }
  .hero-phones { height: 420px; max-width: 380px; }
  .hero-phones .phone { width: 190px; }
  .hero-phones .back { right: auto; left: 0; top: 30px; }
  .hero-phones .front { right: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 24px; }
  .feat.rev .feat-copy { order: 0; }
  .feat .phone { width: 220px; }
  .duo .phone { width: 46%; max-width: 200px; }
  .lines { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lines { grid-template-columns: 1fr; }
  .hero-phones { height: 380px; }
  .hero-phones .phone { width: 170px; }
}
