:root {
  --blue-950: #03254f;
  --blue-900: #073b80;
  --blue-800: #0a4c9b;
  --blue-700: #1262bd;
  --blue-600: #1975d2;
  --blue-100: #ddebff;
  --blue-50: #f3f8ff;
  --gold: #ffc83d;
  --green: #20b85a;
  --green-dark: #148a43;
  --ink: #10213a;
  --muted: #617087;
  --line: #dce6f2;
  --surface: #ffffff;
  --danger: #c62828;
  --danger-bg: #fff3f3;
  --shadow: 0 18px 54px rgba(3, 37, 79, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(25, 117, 210, .12), transparent 26rem),
    radial-gradient(circle at 100% 15%, rgba(255, 200, 61, .14), transparent 22rem),
    #f4f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell { min-height: 100vh; }
.header {
  color: #fff;
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 200, 61, .24), transparent 18rem),
    linear-gradient(125deg, var(--blue-950), var(--blue-800));
  box-shadow: 0 12px 36px rgba(3, 37, 79, .18);
}
.header-inner {
  width: min(100% - 32px, 1060px);
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { flex: 0 0 auto; }
.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18));
}
.header-copy { display: flex; flex-direction: column; min-width: 0; }
.header-copy span { color: #bad9ff; font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.header-copy strong { font-size: clamp(1.05rem, 3vw, 1.35rem); }
.secure-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: .7rem;
  line-height: 1.35;
}
.secure-badge svg { width: 30px; height: 30px; color: var(--gold); }
.secure-badge b { color: #fff; }

.main {
  width: min(100% - 32px, 1060px);
  margin: 0 auto;
  padding: 36px 0 64px;
}
.intro-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
  align-items: center;
  padding: 38px 42px;
  border: 1px solid rgba(18, 98, 189, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.intro-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(25, 117, 210, .08);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.intro-card h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.8rem, 4.7vw, 2.75rem);
  letter-spacing: -.04em;
  line-height: 1.08;
}
.intro-card p { max-width: 650px; margin: 12px 0 0; color: var(--muted); }
.benefits { position: relative; z-index: 1; display: grid; gap: 11px; }
.benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--blue-950);
  background: #fff;
  font-size: .82rem;
  font-weight: 800;
}
.benefits i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-style: normal;
}

#contract-form { display: grid; gap: 22px; margin-top: 22px; }
.form-section {
  padding: 34px;
  border: 1px solid rgba(18, 98, 189, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 38px rgba(3, 37, 79, .08);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.step-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 8px 18px rgba(18, 98, 189, .24);
  font-weight: 900;
}
.section-heading h2 { margin: 0; color: var(--blue-950); font-size: 1.28rem; letter-spacing: -.02em; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.plan-card {
  position: relative;
  min-width: 0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 25px 18px 19px;
  border: 2px solid var(--line);
  border-radius: 19px;
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.plan-card:hover { transform: translateY(-3px); border-color: #9cc8fb; box-shadow: 0 14px 28px rgba(3, 37, 79, .1); }
.plan-card:has(input:checked) {
  border-color: var(--blue-600);
  background: linear-gradient(180deg, #f7fbff, #fff);
  box-shadow: 0 0 0 3px rgba(25, 117, 210, .11), 0 16px 32px rgba(3, 37, 79, .11);
}
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-ui {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 21px;
  height: 21px;
  border: 2px solid #b8c8dc;
  border-radius: 50%;
  background: #fff;
}
.plan-card:has(input:checked) .radio-ui { border: 6px solid var(--blue-600); }
.plan-card input:focus-visible + .radio-ui { outline: 3px solid rgba(25, 117, 210, .22); outline-offset: 3px; }
.popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue-950);
  background: var(--gold);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 5px 12px rgba(150, 107, 0, .18);
}
.plan-label { color: var(--blue-700); font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.plan-speed { margin-top: 13px; color: var(--blue-950); font-size: 1rem; font-weight: 800; }
.plan-speed b { font-size: 2.35rem; letter-spacing: -.07em; }
.plan-price { display: flex; align-items: baseline; margin-top: 13px; color: var(--blue-950); }
.plan-price small:first-child { margin-right: 3px; font-size: .68rem; font-weight: 800; }
.plan-price b { font-size: 1.65rem; letter-spacing: -.05em; }
.plan-price small:last-child { margin-left: 3px; color: var(--muted); font-size: .58rem; }
.plan-detail { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.premium { background: linear-gradient(145deg, #fffdf6, #fff); }

.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-950);
  font-size: .77rem;
  font-weight: 800;
}
.field label span { color: var(--muted); font-size: .67rem; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #7f94ac;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px 0 45px;
  border: 1.5px solid #ccd9e8;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fbfdff;
  font-size: .86rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-wrap input::placeholder { color: #9aa9ba; }
.input-wrap input:hover { border-color: #adc2d9; }
.input-wrap input:focus { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(25, 117, 210, .11); }
.input-wrap input.invalid { border-color: var(--danger); background: var(--danger-bg); box-shadow: 0 0 0 3px rgba(198, 40, 40, .08); }
.password-wrap input { padding-right: 50px; }
.toggle-password {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: #71839a;
  background: transparent;
}
.toggle-password:hover { color: var(--blue-700); background: var(--blue-50); }
.toggle-password svg { width: 20px; height: 20px; }
.toggle-password .eye-off { display: none; }
.toggle-password[aria-pressed="true"] .eye-open { display: none; }
.toggle-password[aria-pressed="true"] .eye-off { display: block; }
.password-meter { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e8eef6; }
.password-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: #aab7c7; transition: width .2s ease, background .2s ease; }
.password-hint { margin: 5px 0 0; color: var(--muted); font-size: .66rem; }
.field-error { min-height: 1em; margin: 5px 0 0; color: var(--danger); font-size: .68rem; font-weight: 700; }
.plans-error { margin-bottom: 0; }

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--blue-50);
  cursor: pointer;
}
.consent-box input { position: absolute; opacity: 0; }
.checkbox-ui {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 2px solid #9bb0c8;
  border-radius: 7px;
  color: transparent;
  background: #fff;
  font-size: .8rem;
  font-weight: 900;
}
.consent-box:has(input:checked) .checkbox-ui { border-color: var(--blue-600); color: #fff; background: var(--blue-600); }
.consent-box:has(input:focus-visible) { outline: 3px solid rgba(25, 117, 210, .15); outline-offset: 3px; }
.consent-box > span:last-child { color: #43546a; font-size: .76rem; line-height: 1.55; }
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 15px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 11px 11px 0;
  background: #fffaf0;
}
.privacy-note svg { flex: 0 0 auto; width: 22px; height: 22px; color: #8a6200; }
.privacy-note p { margin: 0; color: #625636; font-size: .7rem; line-height: 1.55; }
.submit-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 23px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 28px rgba(20, 138, 67, .23);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(20, 138, 67, .3); }
.submit-button:active { transform: translateY(0); }
.submit-button svg, .button-whatsapp svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }

.footer {
  width: min(100% - 32px, 1060px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 25px 0 35px;
  color: var(--muted);
  font-size: .7rem;
}
.footer img { width: 50px; height: 50px; object-fit: contain; }
.footer div { display: flex; flex-direction: column; }
.footer strong { color: var(--blue-950); }
.footer p { margin: 0; text-align: right; }

.review-dialog {
  width: min(100% - 28px, 630px);
  max-height: min(88vh, 800px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 23px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}
.review-dialog::backdrop { background: rgba(2, 18, 40, .72); backdrop-filter: blur(5px); }
.dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  color: #fff;
  background: linear-gradient(125deg, var(--blue-950), var(--blue-800));
}
.dialog-header span { color: #b8d7ff; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.dialog-header h2 { margin: 2px 0 0; font-size: 1.35rem; }
.dialog-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 1.6rem;
  line-height: 1;
}
.review-success { display: flex; gap: 12px; align-items: center; margin: 22px 25px 0; padding: 14px; border-radius: 13px; background: #edf9f1; }
.review-success > div { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
.review-success p { margin: 0; color: #326044; font-size: .74rem; }
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.review-list > div { min-width: 0; padding: 13px 15px; background: #fff; }
.review-list > div.review-wide { grid-column: 1 / -1; }
.review-list dt { color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.review-list dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--blue-950); font-size: .82rem; font-weight: 800; }
.dialog-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 11px;
  padding: 18px 25px 25px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.dialog-actions button { min-height: 50px; border-radius: 13px; font-weight: 900; }
.button-secondary { border: 1.5px solid #c9d7e7; color: var(--blue-900); background: #fff; }
.button-whatsapp { display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; color: #fff; background: var(--green); box-shadow: 0 10px 22px rgba(20, 138, 67, .2); }
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  transform: translate(-50%, 20px);
  border-radius: 12px;
  color: #fff;
  background: #173253;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  font-size: .76rem;
  font-weight: 800;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .secure-badge { display: none; }
  .intro-card { grid-template-columns: 1fr; gap: 24px; padding: 30px 27px; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .benefits span { flex-direction: column; justify-content: center; text-align: center; padding: 11px 6px; font-size: .65rem; }
  .fields-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-section { padding: 27px 23px; }
}

@media (max-width: 520px) {
  .header-inner, .main, .footer { width: min(100% - 22px, 1060px); }
  .header-inner { min-height: 78px; gap: 11px; }
  .brand img { width: 61px; height: 61px; }
  .header-copy span { font-size: .56rem; }
  .header-copy strong { font-size: 1rem; }
  .main { padding-top: 18px; padding-bottom: 38px; }
  .intro-card { padding: 25px 21px; border-radius: 20px; }
  .intro-card h1 { font-size: 1.9rem; }
  .intro-card p { font-size: .82rem; }
  .benefits { grid-template-columns: 1fr; }
  .benefits span { flex-direction: row; justify-content: flex-start; padding: 9px 11px; }
  #contract-form { gap: 14px; margin-top: 14px; }
  .form-section { padding: 23px 17px; border-radius: 18px; }
  .section-heading { align-items: flex-start; margin-bottom: 21px; }
  .step-number { width: 37px; height: 37px; border-radius: 11px; }
  .section-heading h2 { font-size: 1.12rem; }
  .plans-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan-card { min-height: 210px; padding: 22px 13px 14px; border-radius: 15px; }
  .plan-speed b { font-size: 2rem; }
  .plan-price b { font-size: 1.42rem; }
  .plan-detail { font-size: .61rem; }
  .popular { font-size: .5rem; }
  .input-wrap input { min-height: 50px; font-size: .82rem; }
  .consent-box > span:last-child { font-size: .7rem; }
  .submit-button { min-height: 55px; padding: 0 14px; font-size: .83rem; }
  .footer { grid-template-columns: auto 1fr; }
  .footer p { grid-column: 1 / -1; text-align: left; }
  .review-list { grid-template-columns: 1fr; }
  .review-list > div.review-wide { grid-column: auto; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
