/* ==============================================================
   pagolocal.xyz · Estilos de las páginas nuevas (inicio, comercios,
   restauración). Las páginas legales, ayuda, reset, entradas, etc.
   siguen usando styles.css, que no se toca.
   ============================================================== */
:root {
  --ink: #1A1A2E;
  --muted: #4B5060;
  --soft-text: #6B7280;
  --gold: #B07908;
  --gold-text: #8A5E06;
  --gold-dark: #5C3F04;
  --gold-bright: #F5C842;
  --tint: #FBF6E8;
  --bg-soft: #F5F7FB;
  --line: #E2E5EE;
  --line-2: #D4D8E2;
  --dark: #0D0D14;
  --dark-2: #16161F;
  --dark-3: #1E1E2A;
  --dark-line: #2A2A3C;
  --dark-text: #F0F0FA;
  --dark-muted: #B8B8D0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: var(--gold-text); }
a:hover { color: var(--gold); }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; }
.band { padding: 72px 24px; }
.band.tight { padding: 64px 24px; }
.band.soft { background: var(--bg-soft); }
.band.dark { background: var(--dark); color: var(--dark-text); }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { padding: 12px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand:hover { color: var(--ink); }
.brand small { font-size: inherit; font-weight: 600; color: var(--gold-text); }
.nav { display: flex; gap: 22px; margin-left: 12px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; }
.langs button { border: 0; background: none; padding: 8px 6px; min-height: 40px; font: 600 13px Inter, sans-serif; color: var(--soft-text); cursor: pointer; border-radius: 6px; }
.langs button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.langs button:focus-visible, .btn:focus-visible, .toggle button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; }
.btn.sm { min-height: 40px; padding: 9px 16px; font-size: 14px; border-radius: 10px; font-weight: 600; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2A2A44; color: #fff; }
.btn.light { background: #F0F0F5; color: var(--ink); font-weight: 600; }
.btn.light:hover { background: #E6E6EE; color: var(--ink); }
.btn.line { border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold-bright); color: var(--ink); }
.btn.gold:hover { background: #FFD65C; color: var(--ink); }
.btn.line-light { border-color: var(--dark-text); color: var(--dark-text); }
.btn.line-light:hover { background: var(--dark-text); color: var(--ink); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Tipografía ---------- */
.eyebrow { color: var(--gold-text); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.label { color: var(--gold-text); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.dark .label { color: var(--gold-bright); }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; max-width: 860px; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 660px; }
.sub { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 720px; }
.dark .sub { color: var(--dark-muted); }
.note { margin-top: 18px; font-size: 14px; color: var(--soft-text); }

/* ---------- Portada ---------- */
.hero { padding: 80px 24px 56px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.phone { width: 280px; margin: 0 auto; border-radius: 40px; background: var(--dark); padding: 14px; box-shadow: 0 30px 60px rgba(26,26,46,.22); }
.phone-in { border-radius: 28px; background: var(--dark-2); padding: 26px 20px 22px; color: var(--dark-text); }
.phone-in .k { font-size: 13px; color: #A0A0C0; }
.phone-in .v { margin-top: 6px; font-size: 40px; font-weight: 800; color: var(--gold-bright); letter-spacing: -0.02em; }
.phone-rows { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.phone-rows div { display: flex; justify-content: space-between; background: var(--dark-3); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.phone-rows b { color: var(--gold-bright); }
.phone-cta { margin-top: 22px; background: var(--gold-bright); color: var(--ink); text-align: center; border-radius: 14px; padding: 13px; font-weight: 800; }
.sample { margin-top: 10px; text-align: center; font-size: 13px; color: var(--soft-text); }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 26px; }
.grid.w230 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.w220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border-radius: 14px; padding: 18px 20px; }
.card.on-white { background: var(--bg-soft); }
.card.bordered { border: 1px solid var(--line); }
.card h3 { font-size: 16px; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.step { background: #fff; border-radius: 18px; padding: 28px; }
.step .n { font-size: 44px; font-weight: 800; color: var(--gold); line-height: 1; }
.step h3 { margin: 16px 0 6px; font-size: 20px; }
.step p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span { padding: 11px 18px; border-radius: 999px; background: var(--tint); color: var(--gold-dark); font-weight: 600; }

/* ---------- Tres pilares ---------- */
.pil { display: flex; gap: 12px; margin-top: 30px; align-items: stretch; }
.pil-card { flex: 1 1 0; background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pil-card .k { font-size: 14px; font-weight: 700; color: var(--gold-text); }
.pil-card h3 { font-size: 22px; line-height: 1.2; }
.pil-card p { color: var(--muted); font-size: 15px; }
.pil-card .eff { margin-top: auto; padding: 12px 14px; background: var(--tint); border-radius: 12px; color: var(--gold-dark); font-weight: 600; }
.pil-arrow { display: flex; align-items: center; justify-content: center; flex: none; }
.loop { margin-top: 16px; background: var(--dark); color: var(--dark-text); border-radius: 20px; padding: 24px 28px; }
.loop .k { color: var(--dark-muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.loop p { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.loop i { font-style: normal; color: var(--gold-bright); font-weight: 800; }

/* ---------- Cashback ---------- */
.cb { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: center; background: var(--tint); border-radius: 20px; padding: 28px; }
.cb h3 { font-size: 24px; line-height: 1.2; }
.cb > div > p { margin-top: 10px; color: var(--muted); }
.cb-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.cb-stats div { flex: 1 1 140px; background: #fff; border-radius: 14px; padding: 18px; }
.cb-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--gold-dark); }
.cb-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.strong-line { margin-top: 22px; font-size: 17px; font-weight: 600; }

/* ---------- Pilar 3 (oscuro) ---------- */
.nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.nodes div { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 20px; }
.nodes h3 { font-size: 17px; margin-bottom: 4px; }
.nodes p { color: var(--dark-muted); font-size: 14.5px; }
.svc-title { margin-top: 36px; font-size: 20px; }
.svc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.svc span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--dark-3); font-weight: 600; font-size: 15px; }
.svc em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--dark-line); color: #C8C8E0; }
.svc em.ok { background: var(--gold-bright); color: var(--ink); }
.b3-note { margin-top: 28px; font-size: 17px; max-width: 760px; }

/* ---------- Precios ---------- */
.price-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.toggle { display: flex; background: #F0F0F5; border-radius: 12px; padding: 4px; }
.toggle button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 14px Inter, sans-serif; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.plan { border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--gold); background: var(--tint); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 22px; }
.badge { font-size: 13px; font-weight: 700; color: var(--gold-dark); background: var(--gold-bright); padding: 4px 10px; border-radius: 999px; }
.plan .tag { margin-top: 4px; color: var(--muted); }
.amount { margin-top: 22px; white-space: nowrap; }
.amount b { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.amount span { color: var(--soft-text); }
.plan ul { margin: 22px 0 0; padding-left: 20px; color: #2E3140; display: flex; flex-direction: column; gap: 7px; }
.plan li.no { color: #8A8FA0; text-decoration: line-through; }
.plan .btn { margin-top: auto; }
.plan ul + .btn { margin-top: 28px; }
.y { display: none; }
.anual .m { display: none; }
.anual .y { display: inline; }

/* ---------- Lo próximo ---------- */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; align-items: start; }
.quote { display: flex; gap: 18px; align-items: center; margin-top: 26px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--gold-bright); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; flex: none; }
.quote p { font-size: 19px; line-height: 1.4; font-weight: 600; }
.quote small { display: block; margin-top: 6px; color: var(--soft-text); font-size: 15px; }
.future { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.future li { padding: 12px 16px; background: #fff; border-radius: 12px; display: flex; justify-content: space-between; gap: 12px; }
.future em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }

/* ---------- Preguntas ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- Llamada final y pie ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta > div { max-width: 620px; }
.cta p { margin-top: 12px; color: var(--dark-muted); font-size: 17px; }
.foot { padding: 32px 24px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--soft-text); }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .pil { flex-direction: column; }
  .pil-arrow svg { transform: rotate(90deg); }
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 600px) {
  .band, .band.tight { padding: 56px 18px; }
  .hero { padding: 48px 18px 40px; }
  .top .wrap { padding: 10px 16px; gap: 10px; }
  .top-end .btn { display: none; }
  .plan { padding: 24px; }
}
