:root {
  --bg: #05070a;
  --bg-card: #10151b;
  --border: #1f2933;
  --green: #00e676;
  --blue: #2979ff;
  --yellow: #ffea00;
  --text: #f2f4f6;
  --text-muted: #8a94a3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

body {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, .label {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease backwards;
}

a { color: inherit; }

header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header.top .brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--text);
}

header.top .brand span { color: var(--green); }

header.top .brand img {
  display: block;
  height: 72px;
  width: auto;
  border-radius: 10px;
}

header.top nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 12px;
  color: var(--text);
}

.hero h1 .accent { color: var(--green); }

.hero p.subtitle {
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: 1px;
  margin: 0 0 48px;
}

.label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-mode {
  display: block;
  padding: 22px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-mode:hover { transform: translateY(-2px); }

.btn-mode.blue { background: var(--blue); color: #fff; }
.btn-mode.blue:hover { box-shadow: 0 8px 24px rgba(41,121,255,0.35); }

.btn-mode.yellow { background: var(--yellow); color: #0a0a0a; }
.btn-mode.yellow:hover { box-shadow: 0 8px 24px rgba(255,234,0,0.3); }

.page-title {
  font-size: clamp(26px, 5vw, 36px);
  margin: 8px 0 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--green);
  letter-spacing: 1px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.section-title {
  font-size: 20px;
  margin: 40px 0 18px;
  color: var(--text);
}

.section-tag + .section-title { margin-top: 4px; }

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), #00b359);
  color: #05210f;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 40px 0 12px;
}

.funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.funnel .step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 16px 20px;
}

.funnel .step .num {
  counter-increment: step;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--green);
  min-width: 28px;
}

.funnel .step .num::before { content: counter(step, decimal-leading-zero); }

.funnel .step h4 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.funnel .step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.calc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  margin: 24px 0;
}

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
  margin: 14px 0;
}

.calc .ops-readout {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.calc .result {
  background: #06210f;
  border: 1px solid #0d3d1d;
  border-radius: 6px;
  padding: 18px;
  text-align: center;
}

.calc .result .l {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #7fd9a3;
  text-transform: uppercase;
}

.calc .result .v {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.stats .stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.stats .stat .v { font-size: 22px; font-weight: 700; color: var(--yellow); font-family: 'Poppins', sans-serif; }
.stats .stat .l { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.source-note {
  font-size: 11.5px;
  color: #5a6270;
  margin-top: -8px;
  margin-bottom: 24px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.agent-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid var(--green);
  box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.12);
  flex-shrink: 0;
}

.agent-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.agent-card p strong {
  display: block;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .agent-card { flex-direction: column; text-align: center; }
  .agent-card img { width: 130px; height: 130px; }
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 36px;
}

.qr-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.qr-box img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}

.qr-box span {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #25d366;
  color: #05210f;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.btn-cta:hover { filter: brightness(1.08); }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 72px;
  height: 72px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulseWa 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.65);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 24px 100px;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

footer .footer-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  font-size: 14px;
}

footer .footer-brand span { color: var(--green); }

footer .footer-tagline {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 6px;
}

footer .footer-contact {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.9;
}

footer .footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

footer .footer-contact a:hover { color: var(--green); }

footer .footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.footer-legal a:hover { color: var(--green); }

.footer-security {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-security svg {
  width: 14px;
  height: 14px;
  fill: var(--green);
}

/* Legal pages (Términos / Privacidad) */
.legal-content h2 {
  font-size: 17px;
  color: var(--green);
  text-transform: none;
  letter-spacing: 0.3px;
  margin: 32px 0 10px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 20px; }

.legal-content strong { color: var(--text); }

.legal-updated {
  font-size: 12.5px;
  color: #5a6270;
  font-style: italic;
  margin-bottom: 32px;
}
