:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #3b82f6;
  --sky: #eff6ff;
  --mint: #ecfdf5;
  --green: #059669;
  --amber: #d97706;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

.container { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; }
.container-sm { width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.header-inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.header-inner .logo { flex-shrink: 0; min-width: 0; }
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -0.03em; text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800; letter-spacing: -0.04em; box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: -webkit-optimize-contrast; }

.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: nowrap; }
.nav a {
  color: #334155; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: color 0.15s; white-space: nowrap;
}
.nav a:hover { color: var(--blue); }
.nav .btn { margin-left: 0.15rem; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: none; cursor: pointer; font-weight: 700; border-radius: 12px;
  padding: 0.7rem 1.25rem; font-size: 0.92rem; text-decoration: none;
  transition: all 0.18s ease; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.btn-secondary {
  background: #fff; color: var(--blue-dark); border: 1.5px solid #c7d7fe;
}
.btn-secondary:hover { background: var(--sky); color: var(--blue-dark); border-color: #93c5fd; }
.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 6px 18px rgba(5,150,105,0.25);
}
.btn-green:hover { color: #fff; filter: brightness(1.06); }
.btn-dark {
  background: var(--ink); color: #fff;
}
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.menu-btn {
  display: none; border: 1.5px solid var(--line); background: #fff;
  border-radius: 10px; padding: 0.5rem 0.7rem; cursor: pointer; font-size: 1.2rem;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 0.15rem;
  padding: 0.5rem 0 1.2rem; border-top: 1px solid var(--line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: #334155; font-weight: 600; text-decoration: none;
  padding: 0.7rem 0; border-bottom: 1px solid #f1f5f9;
}
.nav-mobile a:last-child { border: none; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ========== HERO ========== */
.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(1000px 420px at 5% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(800px 360px at 95% 5%, #d1fae5 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
  font-size: 0.78rem; font-weight: 700; padding: 0.35rem 0.85rem;
  border-radius: 999px; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.04em;
  margin: 1rem 0 1rem; font-weight: 800;
}
.hero h1 span { color: var(--blue); }
.hero .lead {
  color: var(--muted); font-size: 1.15rem; max-width: 42ch;
  margin-bottom: 1.75rem; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #fff; border: 1px solid var(--line); color: #475569;
  font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px;
}
.trust-item svg { width: 14px; height: 14px; color: var(--green); }

/* Choice panel */
.panel {
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.6rem;
}
.panel h2 { font-size: 1.05rem; margin-bottom: 1rem; font-weight: 700; }
.choice {
  width: 100%; text-align: left; margin-bottom: 0.6rem;
  padding: 1rem 1.1rem; border-radius: 14px; border: 1.5px solid #e8eef5;
  background: #fff; font-weight: 600; cursor: pointer; color: var(--ink);
  font-family: inherit; font-size: 0.95rem;
  transition: all 0.15s; display: flex; align-items: center; gap: 0.75rem;
}
.choice:hover { border-color: #93c5fd; background: #f8fbff; transform: translateX(3px); }
.choice .choice-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sky); color: var(--blue); display: grid; place-items: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.choice .choice-text { flex: 1; }
.choice .choice-text small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }

/* ========== SECTIONS ========== */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2.2rem; text-align: center; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem); letter-spacing: -0.03em;
  margin-bottom: 0.5rem; font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0 auto; }
.section-head.left { text-align: left; }
.section-head.left p { margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem; height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: grid; place-items: center; font-weight: 800; color: var(--blue-dark);
  margin-bottom: 1rem; font-size: 1.1rem;
}
.card .ico.green { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #047857; }
.card .ico.amber { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #b45309; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.card a.more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem; font-weight: 700; font-size: 0.9rem; }

.price { font-size: 2rem; font-weight: 800; color: var(--blue-dark); margin: 0.4rem 0; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

.badge {
  display: inline-block; background: var(--mint); color: #047857;
  font-size: 0.7rem; font-weight: 800; padding: 0.28rem 0.65rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-amber { background: #fff7ed; color: #c2410c; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-dark { background: #0f172a; color: #fff; }

/* Tip boxes */
.tip {
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-top: 1.5rem;
}
.tip-amber {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fdba74;
}
.tip-amber h3 { color: #c2410c; font-size: 1rem; margin-bottom: 0.4rem; }
.tip-amber p, .tip-amber li { color: #9a3412; font-size: 0.94rem; }
.tip-blue {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #93c5fd;
}
.tip-blue h3 { color: #1e40af; font-size: 1rem; margin-bottom: 0.4rem; }
.tip-blue p { color: #1e3a8a; font-size: 0.94rem; }
.tip-green {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #6ee7b7;
}
.tip-green h3 { color: #047857; font-size: 1rem; margin-bottom: 0.4rem; }
.tip-green p { color: #065f46; font-size: 0.94rem; }

/* ========== SEARCH ========== */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.8rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.8rem; font-weight: 700; color: #475569; margin-bottom: 0.4rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid #e2e8f0;
  border-radius: 12px; font-size: 1rem; background: #fff; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  outline: none; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; min-width: 18px; max-width: 18px;
  padding: 0; margin: 0; accent-color: var(--blue); cursor: pointer;
  flex-shrink: 0;
}
.results { display: none; margin-top: 2rem; }
.results.show { display: block; }
.idealista-cta {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #86efac; border-radius: 18px;
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.listing {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.25rem; margin-bottom: 0.75rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow); align-items: center;
}
.listing h3 { font-size: 1.02rem; margin-top: 0.3rem; }
.meta { color: var(--muted); font-size: 0.88rem; }

.quick-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem;
}
.quick-links a {
  background: #fff; border: 1px solid #dbeafe; color: #1e40af;
  font-size: 0.82rem; font-weight: 700; padding: 0.45rem 0.85rem;
  border-radius: 999px; text-decoration: none; transition: all 0.15s;
}
.quick-links a:hover { background: #eff6ff; border-color: #93c5fd; }

/* ========== PRODUCT ========== */
.product-hero {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--line); padding: 3rem 0 2rem;
}
.product-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 2rem;
  padding: 2rem 0 4rem; align-items: start;
}
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.buy-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-md); padding: 1.6rem; position: sticky; top: 90px;
}
.check-list { margin: 0.9rem 0 1.2rem; }
.check-list li {
  position: relative; padding: 0.45rem 0 0.45rem 1.6rem;
  color: #334155; font-size: 0.95rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800;
}

/* Docs / checklist content */
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem; max-width: 820px; margin: 0 auto 1.5rem; box-shadow: var(--shadow);
}
.doc h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.doc h2 {
  font-size: 1.1rem; color: var(--blue-dark); margin: 1.6rem 0 0.7rem;
  padding-bottom: 0.35rem; border-bottom: 2px solid #dbeafe;
}
.doc li {
  list-style: none; position: relative; padding: 0.5rem 0 0.5rem 1.8rem;
  border-bottom: 1px solid #f1f5f9; font-size: 0.96rem;
}
.doc li::before { content: "☐"; position: absolute; left: 0; color: var(--blue); }
.doc li.bullet::before { content: "•"; left: 0.3rem; }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin: 1.2rem 0; }

.success {
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
  border-radius: 16px; padding: 1.2rem 1.4rem; text-align: center; margin-bottom: 1.3rem;
}

/* ========== CONTENT PAGES ========== */
.content-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--line);
}
.content-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.035em;
  margin: 0.7rem 0 0.8rem; font-weight: 800;
}
.content-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 55ch; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.8rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; color: #334155; }
.prose ul, .prose ol { margin: 0.8rem 0 1.2rem 1.3rem; }
.prose li { margin-bottom: 0.45rem; color: #334155; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--ink); }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 0.7rem; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 1.1rem 1.3rem;
  background: none; border: none; font-weight: 700; font-size: 1rem;
  cursor: pointer; font-family: inherit; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { background: #f8fafc; }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.95rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  margin: 2rem 0;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  text-align: center; padding: 1.4rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.stat .label { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* ========== FOOTER ========== */
.footer {
  background: #0f172a; color: #94a3b8; padding: 3.5rem 0 1.8rem; margin-top: 0;
}
.footer a { color: #cbd5e1; transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; margin-bottom: 0.7rem; font-size: 0.9rem; font-weight: 700; }
.footer p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.8rem; }
.footer ul li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 1.3rem; font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
}

/* Cookie */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #0f172a; color: #e2e8f0; padding: 1.1rem;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.3); display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  width: min(1140px, 100%); margin: 0 auto;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cookie-inner p { font-size: 0.9rem; flex: 1; min-width: 240px; }

/* Legal */
.legal-wrap { width: min(740px, calc(100% - 2.5rem)); margin: 2.5rem auto 4rem; }
.legal-wrap h1 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.legal-wrap h2 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.legal-wrap p, .legal-wrap li { color: #334155; margin-bottom: 0.6rem; }
.legal-wrap ul { margin-left: 1.3rem; }
.legal-wrap li { list-style: disc; }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

@media print {
  .header, .footer, .success, .actions, .cookie-banner, .no-print, .buy-box { display: none !important; }
  body { background: #fff; }
  .doc { box-shadow: none; border: none; }
}

/* Cookie banner improved */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 520px; margin: 0 auto;
  background: #0f172a; color: #e2e8f0;
  padding: 1.25rem 1.3rem; border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid #1e293b;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  width: 100%; margin: 0;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.cookie-inner p { font-size: 0.9rem; line-height: 1.5; color: #cbd5e1; }
.cookie-inner strong { color: #fff; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1; min-width: 120px; }

/* PWA install modal */
.pwa-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 23, 42, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}
.pwa-overlay.show { display: flex; }
.pwa-modal {
  background: #fff; border-radius: 20px;
  max-width: 420px; width: 100%;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(15,23,42,0.25);
  border: 1px solid var(--line);
  position: relative;
}
.pwa-modal h3 {
  font-size: 1.2rem; margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.pwa-modal p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.pwa-modal .pwa-icon {
  width: 56px; height: 56px; border-radius: 14px;
  margin-bottom: 0.9rem; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em;
  box-shadow: 0 4px 14px rgba(29,78,216,0.35);
}
.pwa-close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  border: none; background: #f1f5f9; width: 32px; height: 32px;
  border-radius: 999px; cursor: pointer; font-size: 1.1rem; color: #475569;
}
.pwa-close:hover { background: #e2e8f0; }
.pwa-steps { margin: 0 0 1.1rem 1.1rem; color: #334155; font-size: 0.92rem; }
.pwa-steps li { margin-bottom: 0.35rem; list-style: disc; }

/* Exit-intent modal */
.exit-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.65);
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(5px);
}
.exit-overlay.show { display: flex !important; }
.exit-modal {
  background: #fff; border-radius: 22px;
  max-width: 520px; width: 100%;
  padding: 1.7rem 1.55rem 1.45rem;
  box-shadow: 0 28px 70px rgba(15,23,42,0.28);
  border: 1px solid var(--line);
  position: relative;
  max-height: min(92vh, 720px);
  overflow-y: auto;
}
.exit-modal h3 {
  font-size: 1.35rem; margin: 0 0 0.45rem; letter-spacing: -0.03em; line-height: 1.25;
}
.exit-modal > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.exit-close {
  position: absolute; top: 0.85rem; right: 0.95rem;
  border: none; background: #f1f5f9; width: 34px; height: 34px;
  border-radius: 999px; cursor: pointer; font-size: 1.15rem; color: #475569;
}
.exit-close:hover { background: #e2e8f0; }
.exit-case {
  border: 1px solid #fee2e2;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}
.exit-case strong { display: block; color: #9a3412; font-size: 0.95rem; margin-bottom: 0.25rem; }
.exit-case p { margin: 0; color: #7c2d12; font-size: 0.88rem; line-height: 1.5; }
.exit-loss {
  display: inline-block;
  margin-top: 0.35rem;
  background: #fff; border: 1px solid #fecaca;
  color: #b91c1c; font-weight: 800; font-size: 0.82rem;
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.exit-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 1.1rem; }
.exit-actions .btn { flex: 1; min-width: 140px; }
.exit-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }

/* Share buttons */
.share-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  margin-top: 0.9rem;
}
.share-bar .share-label {
  width: 100%; font-size: 0.8rem; font-weight: 700; color: #64748b; margin-bottom: 0.15rem;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; border: 1px solid var(--line); background: #fff; color: #334155;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.share-btn:hover { transform: translateY(-1px); border-color: #93c5fd; color: #1d4ed8; }
.share-btn.wa { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.share-btn.wa:hover { background: #d1fae5; }
.share-btn.x { background: #f8fafc; }
.share-btn.fb { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.share-btn.copy { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.footer-share {
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid #1e293b;
}
.footer-share .share-label { color: #94a3b8; }
.footer-share .share-btn {
  background: #1e293b; border-color: #334155; color: #e2e8f0;
}
.footer-share .share-btn:hover { background: #334155; color: #fff; border-color: #60a5fa; }
.exit-modal .share-bar {
  margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid #e2e8f0;
}

/* ========== REFORMA / PRESUPUESTO ========== */
.reforma-section {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.reforma-section::before {
  content: "";
  position: absolute;
  top: -80px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
  pointer-events: none;
}
.reforma-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .reforma-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.reforma-copy h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
}
.reforma-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 1.4rem;
}
.reforma-benefits {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.reforma-benefits li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}
.reforma-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}
.reforma-form-card {
  position: relative;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1);
  background: #fff;
}
.reforma-form-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.reforma-form-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.reforma-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.check-accept {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.check-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.check-label a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reforma-ok {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.reforma-ok-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}
.reforma-ok h3 {
  margin-bottom: 0.5rem;
  color: #047857;
}
.reforma-ok p {
  color: var(--muted);
  font-size: 0.95rem;
}
.reforma-form.invalid .check-accept {
  border-color: #f87171;
  background: #fef2f2;
}

/* ========== FLOAT CONTACT ========== */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #0f172a;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3); color: #fff !important; }
.wa-float-ico { font-size: 1.05rem; line-height: 1; }
.wa-float-mail { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
@media (max-width: 480px) {
  .wa-float { right: 0.85rem; bottom: 0.85rem; padding: 0.7rem 0.95rem; }
  .wa-float-txt { display: none; }
}

/* Lead / checklist gratis tweaks */
.check-label:focus-within { outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 8px; }
.check-label input:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }
