/*
Theme Name: Brenda Seguros PPR
Theme URI: https://brendaseguros.lat
Description: Landing page para Plan Personal de Retiro (PPR): calculadora, beneficios fiscales, formulario de contacto con registro de prospectos y botón de WhatsApp. Edita tus datos en Apariencia > Personalizar > Datos de la asesora.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: brenda-ppr
*/

:root {
  --navy: #0f2a4a;
  --navy-2: #163a63;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --accent: #0e9f8a;
  --accent-dark: #0b7f6e;
  --gold: #e8b04a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 74, .08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: "Montserrat", "Inter", sans-serif; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.soft { background: var(--bg-soft); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--navy); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent-dark); }
.nav .btn { padding: 10px 20px; color: #fff; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d5a7a 100%); color: #fff; padding: 90px 0 100px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 10px; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-card h3 { margin-bottom: 4px; }
.hero-card .small { color: var(--muted); font-size: .9rem; }
.big-number { font-family: "Montserrat", sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--accent-dark); margin: 8px 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -50px; position: relative; }
.stat { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.stat strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.7rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(14,159,138,.12); color: var(--accent-dark); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: .8rem; }

.tax-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.tax-box h3 { color: #fff; }
.tax-box ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.tax-box .note { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field label output { color: var(--accent-dark); font-weight: 800; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-result { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.calc-result .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.calc-result .row:last-of-type { border-bottom: 0; }
.calc-result .total { font-family: "Montserrat", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 6px 0 14px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 18px 0 6px; }
.bars div { flex: 1; background: linear-gradient(to top, var(--accent), #5fd1bf); border-radius: 4px 4px 0 0; min-height: 3px; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; padding: 22px; } }

.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.contact { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.85); }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-card input, .form-card select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; }
.form-card input:focus, .form-card select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-card .consent { font-size: .82rem; color: var(--muted); }
.form-card button { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-ok { background: #e3f7f3; color: var(--accent-dark); }
.alert-err { background: #fdecec; color: #a42222; }
.docs { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.docs li::before { content: "📄"; margin-right: 10px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.site-footer { background: #0a1d33; color: rgba(255,255,255,.75); padding: 50px 0 30px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.page-content { padding: 60px 0; }