:root {
  --bg: #a45e72;
  --bg-hero: #dc1010;
  --bg-hero-deep: #df1111;
  --surface: #f4eee7;
  --surface-soft: #efe1cd;
  --card: #f5efe7;
  --primary: #df1024;
  --primary-dark: #dd0c2b;
  --primary-soft: #d4a217;
  --accent: #d0991a;
  --accent-soft: #f9ecd0;
  --text: #a63e51;
  --muted: #a92f39ad;
  --line: rgba(116, 20, 29, 0.12);
  --shadow: 0 30px 70px rgba(129, 59, 69, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #1e0d12 0%, #240d11 26%, #12090b 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #b91c1c;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(215, 25, 32, 0.18));
}

.authorized-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0c96c;
  color: #3b1f12;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-button,
.primary-button {
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(17, 9, 13, 0.18);
}

.nav-button:hover,
.primary-button:hover,
.choice:hover,
.term:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 58px 0 30px;
  background: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-hero-deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  background: rgba(240, 201, 108, 0.12);
  color: #f7db8f;
  border: 1px solid rgba(240, 201, 108, 0.26);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  max-width: 620px;
  color: #fffaf7;
}

.hero-copy h1 .highlight,
.hero-copy h1 strong {
  color: var(--accent);
  font-weight: 800;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
}

.hero-copy h1 .highlight {
  display: inline-block;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
}

.promo-badge-hero {
  display: block;
  margin: 24px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700, #f1c40f);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(241, 196, 15, 0.28);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(241, 196, 15, 0.28);
  }
  50% {
    box-shadow: 0 12px 30px rgba(241, 196, 15, 0.42);
  }
}

.stats-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(17, 9, 13, 0.12);
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(240, 201, 108, 0.18);
  color: var(--accent);
  font-weight: 800;
}

.lead-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 42, 34, 0.06);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card-header {
  margin-bottom: 18px;
}

.card-header h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  letter-spacing: -0.05em;
}

.card-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 41, 32, 0.12);
  background: #f8faf8;
  color: var(--text);
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: rgba(15, 143, 90, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 143, 90, 0.08);
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), #d02a3f);
  color: #fff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 18px 35px rgba(103, 15, 26, 0.32);
}

.large-button {
  width: 100%;
  margin-top: 18px;
}

.white-button {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.privacy-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.privacy-note a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.section {
  padding: 84px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.align-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.section-heading p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 41, 32, 0.08);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 18px 40px rgba(15, 52, 38, 0.04);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-soft), #d6f1e7);
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.simulator-shell {
  display: grid;
  gap: 24px;
}

.simulator-card {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr 0.9fr;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 41, 32, 0.07);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(15, 52, 38, 0.08);
}

.simulator-choices,
.slider-box,
.term-box,
.result-panel {
  background: #f5f7f4;
  border-radius: 22px;
  border: 1px solid rgba(18, 41, 32, 0.05);
}

.simulator-choices {
  padding: 22px 18px;
}

.label-title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.choice-list,
.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice,
.term {
  border: 1px solid rgba(18, 41, 32, 0.08);
  background: #fff;
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.choice.active,
.term.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: rgba(15, 143, 90, 0.18);
}

.simulator-body {
  display: grid;
  gap: 20px;
  padding: 14px 16px 14px 0;
}

.slider-box,
.term-box {
  padding: 20px 22px;
}

.range-header,
.term-box p,
.estimate-header p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.range-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

#valorDisplay,
#monthlyValue {
  letter-spacing: -0.06em;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 12px;
}

.term-box {
  display: grid;
  gap: 14px;
}

.result-panel {
  padding: 24px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.money-block {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

#monthlyValue {
  font-size: clamp(2.1rem, 2vw, 3rem);
  line-height: 1;
  color: var(--text);
}

#monthlyMeta {
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(18, 41, 32, 0.08);
  color: var(--muted);
}

.summary-row strong {
  color: var(--text);
}

.total-row {
  border-bottom: none;
  padding-bottom: 0;
  color: var(--text);
  font-weight: 800;
}

.note {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(15, 143, 90, 0.05);
  border: 1px solid rgba(15, 143, 90, 0.08);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.note-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.82rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  padding: 26px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 41, 32, 0.08);
}

.step-number {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  letter-spacing: 0.06em;
}

.step-card h3 {
  margin: 18px 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-strip {
  padding: 0 0 68px;
}

.cta-panel {
  position: relative;
  background: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-hero-deep) 100%);
  border-radius: 32px;
  padding: 38px 32px 32px;
  text-align: center;
  box-shadow: 0 26px 60px rgba(65, 12, 20, 0.38);
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 35%);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #ecfff3;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.cta-panel p {
  max-width: 700px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.07rem;
  line-height: 1.7;
}

.white-button {
  margin-top: 24px;
}

.site-footer {
  background: #0e1b18;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 18px;
}

.footer-brand-block p,
.footer-links li,
.footer-contact li,
.footer-bottom p,
.legal-note p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.native-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  font-family: "Inter", sans-serif;
}

.native-chat-toggle {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #b91c1c;
  color: #fff;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(89, 11, 20, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.native-chat-toggle:hover {
  background: #991b1b;
  transform: translateY(-2px);
}

.native-chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(31, 20, 22, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(31, 20, 22, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.native-chat-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.native-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #991b1b;
  color: #fff;
}

.native-chat-header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.native-chat-header strong {
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.2;
}

.native-chat-header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.native-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.native-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px 14px;
  background: #f7f7f7;
}

.native-chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.native-chat-message.bot {
  align-self: flex-start;
  background: #e5e7eb;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

.native-chat-message.user {
  align-self: flex-end;
  background: #b91c1c;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.native-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 38px;
}

.native-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7280;
  animation: native-chat-bounce 0.9s infinite ease-in-out;
}

.native-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.native-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes native-chat-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.native-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.native-chat-form input {
  min-width: 0;
  flex: 1;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
}

.native-chat-form input:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.native-chat-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.native-chat-form button:disabled,
.native-chat-form input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.native-chat-specialist-link {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .simulator-card,
  .footer-grid,
  .steps-grid,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .simulator-card {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 74px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .nav-button {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .benefit-grid,
  .steps-grid,
  .footer-grid,
  .simulator-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .cta-panel {
    padding: 26px 18px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .native-chat {
    right: 16px;
    bottom: 16px;
  }
}
