:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-darker: #1e40af;
  --navy: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --white: #ffffff;
  --border: #e2e8f0;
  --whats: #25D366;
  --whats-dark: #1da851;
  --alert-height: 36px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* Tarja de alerta superior */
.top-alert {
  position: sticky;
  top: 0;
  z-index: 61;
  background: #b91c1c;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #991b1b;
}
.top-alert-track {
  display: inline-flex;
  gap: 48px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  animation: alert-marquee 22s linear infinite;
}
.top-alert-track span { flex-shrink: 0; }
@keyframes alert-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 12px; }

.btn-whats {
  background: var(--whats);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .25);
}
.btn-whats:hover { background: var(--whats-dark); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}
.btn-blue:hover { background: var(--blue-dark); }

.wa-icon { width: 20px; height: 20px; fill: currentColor; }

/* Header */
.header {
  position: sticky;
  top: var(--alert-height);
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand img { height: 40px; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; margin-right: 8px; }
.nav a { color: var(--slate); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--blue); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, .18), transparent),
    linear-gradient(180deg, #eef2ff, #f8fafc);
  padding: 36px 0 56px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero-text { margin-top: 4px; }
.hero-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 640px;
}
.hero-landing-sub {
  color: var(--slate);
  font-size: 18px;
  max-width: 480px;
}
.hero-landing-img {
  display: block;
  width: min(300px, 88vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.hero-cta-main {
  min-width: 240px;
  max-width: 100%;
  margin-top: 6px;
  line-height: 1.35;
  text-align: center;
}
.hero-landing-price {
  color: var(--muted);
  font-size: 14px;
}
.hero-landing-price strong {
  color: var(--navy);
  font-size: 16px;
}
.badge {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--blue-dark);
  border: 1px solid rgba(37, 99, 235, .25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1,
.hero .hero-title { font-size: 46px; line-height: 1.15; margin-bottom: 14px; }
.hero h1 .hl,
.hero .hero-title .hl { color: var(--blue); }
.hero-text > p { color: var(--slate); font-size: 18px; max-width: 560px; margin: 0 auto 22px; }
.hero-cta { margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--slate); font-size: 14px; font-weight: 600; }
.hero-trust span { color: var(--blue-dark); }

/* Hero art */
.hero-art { display: flex; justify-content: center; width: 100%; overflow: visible; }
.chat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}
.chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { color: var(--whats-dark); font-weight: 700; font-size: 12px; }
.chat-bubble {
  background: var(--bg-soft);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 10px;
}
.chat-bubble.me {
  background: var(--blue);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  margin-left: auto;
  max-width: 80%;
}

/* Lead form (hero) */
.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--blue);
  border-radius: 18px;
  padding: 26px 24px;
  width: 100%;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}
.lead-form-step1 { max-width: 620px; position: relative; padding-top: 34px; }
.price-balloon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, .35);
  white-space: nowrap;
  z-index: 2;
}
.price-balloon::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #15803d;
}
.price-balloon-label {
  font-size: 11px;
  font-weight: 700;
  opacity: .92;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-balloon-value {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.form-step1-hint {
  text-align: center;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}
.tipo-card-loading {
  border-color: var(--blue) !important;
  background: var(--bg-soft) !important;
  opacity: .75;
  pointer-events: none;
}
.tipo-grid-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 10px;
}
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 560px) {
  .tipo-grid { grid-template-columns: repeat(3, 1fr); }
}
.tipo-grid.invalid {
  animation: shake-grid .45s ease;
}
.tipo-grid.invalid .tipo-card {
  border-color: #fca5a5;
}
@keyframes shake-grid {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.tipo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 130px;
  padding: 14px 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.tipo-card:hover {
  border-color: var(--blue);
  background: var(--bg-soft);
  transform: translateY(-2px);
}
.tipo-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tipo-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--bg-soft);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .15);
}
.tipo-card-icon {
  font-size: 36px;
  line-height: 1;
}
.tipo-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.tipo-card-icons-dual {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tipo-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tipo-mini small {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.tipo-emoji {
  font-size: 28px;
  line-height: 1;
}
.tipo-emoji-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tipo-x {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}
.lead-form-head { margin-bottom: 18px; text-align: center; }
.lead-form-head h3 { font-size: 22px; color: var(--navy); }
.lead-form-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-group-uf { flex: 0 0 90px; }
.lead-form-submit { width: 100%; margin-top: 4px; }
.lead-form-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.lead-form-note a { color: var(--blue); text-decoration: underline; }
.lead-form-note a:hover { color: var(--blue-dark); }
.funnel-step {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--blue-dark);
  border: 1px solid rgba(37, 99, 235, .25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.tipo-selecionado {
  background: var(--bg-soft);
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 14px;
}
.tipo-selecionado strong { color: var(--navy); }
.form-back {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.form-back:hover { color: var(--blue); }

/* Solicitar page */
.solicitar-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, .18), transparent),
    linear-gradient(180deg, #eef2ff, #f8fafc);
}
.solicitar-wrap { width: min(440px, 92%); }
.solicitar-wrap-wide { width: min(620px, 92%); }

/* Legal pages */
.legal-page {
  padding: 48px 0 70px;
  background: var(--white);
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal-content h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--navy);
}
.legal-content p,
.legal-content li {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}
.legal-content ul {
  margin: 10px 0 10px 20px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.legal-back:hover { color: var(--blue-dark); }

/* Sections */
.section { padding: 70px 0; }
.section-soft { background: var(--white); }
.section-title { font-size: 32px; text-align: center; }
.section-title span { color: var(--blue); }
.section-sub { text-align: center; color: var(--muted); margin: 10px 0 36px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(37,99,235,.12); }
.card-featured { border-color: var(--blue); box-shadow: 0 10px 30px rgba(37,99,235,.1); }
.card-tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
}
.card-icon { font-size: 40px; margin-bottom: 12px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* Pools */
.pools-grid { margin-top: 8px; }
.pool-card { text-align: left; }
.pool-img {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 150px;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--c1, #38bdf8), var(--c2, #0ea5e9));
  box-shadow: inset 0 -30px 50px rgba(15, 23, 42, .18);
}
.pool-specs {
  color: var(--blue-dark) !important;
  font-weight: 700;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px 20px;
  border-top: 3px solid var(--blue);
}
.feature-num { color: var(--blue); font-weight: 900; font-size: 22px; }
.feature h4 { margin: 8px 0 6px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; }

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  padding: 70px 0;
  color: #fff;
}
.cta-inner { text-align: center; }
.cta-final h2 { font-size: 32px; margin-bottom: 10px; }
.cta-final p { color: rgba(255,255,255,.85); margin-bottom: 26px; }

/* Footer */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner img { height: 36px; margin-bottom: 10px; }
.footer-inner p { color: var(--muted); font-size: 14px; }
.footer-company { max-width: 460px; }
.footer-name { font-weight: 700; color: var(--navy) !important; font-size: 15px !important; margin-bottom: 4px; }
.footer-detail { font-size: 13px !important; line-height: 1.6; }
.footer-detail:empty { display: none; }
.footer-meta { text-align: right; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  margin-top: 8px;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
}
.footer-links a:hover { color: var(--blue); }
.footer-admin { color: var(--border); font-size: 13px; }
.footer-admin:hover { color: var(--blue); }

/* Floating WhatsApp */
.float-whats {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 60px; height: 60px;
  border: none; border-radius: 50%;
  background: var(--whats);
  color: #fff;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}
.float-whats .wa-icon { width: 30px; height: 30px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--blue);
  border-radius: 16px;
  padding: 36px 30px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform .25s ease;
  box-shadow: 0 30px 60px rgba(15,23,42,.25);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-logo { height: 50px; margin-bottom: 16px; }
.modal h2 { font-size: 24px; margin-bottom: 10px; }
.modal h2 span { color: var(--blue); }
.modal p { color: var(--muted); margin-bottom: 22px; }
.modal .btn { width: 100%; }
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  color: var(--muted);
  font-size: 26px; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--blue); }

/* Sales home */
.sales-hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #f0f9ff 0%, var(--white) 100%);
}
.sales-hero-inner { max-width: 720px; }
.sales-hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 16px 0 18px;
  color: var(--slate);
}
.sales-hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.sales-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.sales-cta-row-center { justify-content: center; }
.pools-grid { margin-top: 8px; }
.sales-catalog-link {
  text-align: center;
  margin-top: 28px;
  font-weight: 600;
}
.sales-catalog-link a { color: var(--blue); }
.sales-btn-light {
  border-color: rgba(255,255,255,.85);
  color: var(--white);
}
.sales-btn-light:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* Catalog */
.catalog-page { padding: 32px 0 64px; }
.catalog-page .section-title { margin-top: 12px; }
.catalog-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(15,23,42,.04);
}
.catalog-item-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.catalog-img {
  width: 120px;
  min-width: 120px;
  height: 80px;
  font-size: 14px;
}
.catalog-item h2 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--slate);
}
.catalog-tag {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
}
.catalog-item > p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.catalog-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.catalog-specs li {
  font-size: 15px;
  color: var(--slate);
  padding-left: 18px;
  position: relative;
}
.catalog-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}
.catalog-cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 16px;
  color: var(--white);
  margin-top: 12px;
}
.catalog-cta h2 { font-size: 26px; margin-bottom: 10px; }
.catalog-cta p { opacity: .92; margin-bottom: 22px; }

/* Responsive */
@media (max-width: 860px) {
  .hero h1,
  .hero .hero-title { font-size: 36px; }
  .nav { display: none; }
  .cards, .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 36px 0 48px; }
  .hero-inner { gap: 28px; }
  .hero h1,
  .hero .hero-title { font-size: 28px; }
  .hero-text > p { font-size: 16px; margin-bottom: 18px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 15px 22px; font-size: 16px; }
  .hero-trust { gap: 10px 16px; font-size: 13px; }
  .tipo-grid { grid-template-columns: 1fr; }
  .lead-form-step1 { max-width: 100%; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .cta-final { padding: 48px 0; }
  .cta-final h2 { font-size: 26px; }
  .chat-card { max-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-company { max-width: 100%; }
  .footer-meta { text-align: center; }
  .footer-links { justify-content: center; }
  .sales-hero h1 { font-size: 28px; }
  .sales-cta-row .btn { width: 100%; }
  .catalog-item-head { flex-direction: column; }
  .catalog-img { width: 100%; min-width: 0; height: 100px; }
}
