/* ===== Neuropoint · Cotizador Express ===== */
:root {
  --periwinkle: #849bff;
  --blue-deep: #022179;
  --blue-mid: #3550d6;
  --ink: #1d1d1b;
  --ink-soft: #4a4a52;
  --muted: #8a8aa0;
  --line: #e8e9f2;
  --bg: #f6f7fc;
  --card: #ffffff;
  --grad: linear-gradient(120deg, #849bff 0%, #5a73f0 45%, #022179 100%);
  --grad-soft: linear-gradient(120deg, rgba(132,155,255,.16), rgba(2,33,121,.08));
  --shadow-sm: 0 2px 8px rgba(2, 33, 121, .06);
  --shadow-md: 0 12px 32px rgba(2, 33, 121, .10);
  --shadow-lg: 0 24px 60px rgba(2, 33, 121, .16);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.bg-orbs span:nth-child(1) { width: 460px; height: 460px; background: #849bff; top: -160px; right: -120px; }
.bg-orbs span:nth-child(2) { width: 380px; height: 380px; background: #cdd6ff; bottom: -140px; left: -120px; opacity: .55; }
.bg-orbs span:nth-child(3) { width: 300px; height: 300px; background: #022179; top: 40%; left: 55%; opacity: .12; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 247, 252, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
.header-tag {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--grad-soft);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(132,155,255,.4);
}

main { position: relative; z-index: 1; padding-bottom: 64px; }

/* Hero */
.hero { text-align: center; max-width: 780px; margin: 56px auto 40px; }
.pill {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--blue-mid);
  background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; font-weight: 800; margin: 0 0 18px; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); margin: 0 auto; max-width: 660px; }
.hero-sub strong { color: var(--ink); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 28px; margin-bottom: 24px;
}
.card-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 0 0 6px; letter-spacing: -.01em; }
.card-head p { margin: 0 0 20px; color: var(--ink-soft); font-size: .96rem; }
.card-head em { color: var(--blue-mid); font-style: normal; font-weight: 600; }
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--grad); box-shadow: var(--shadow-sm); flex: none;
}

/* Options */
.options { display: grid; gap: 12px; }
.opt-card {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; transition: all .16s ease; background: #fff;
  position: relative;
}
.opt-card:hover { border-color: var(--periwinkle); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.opt-card.selected { border-color: var(--blue-mid); background: linear-gradient(0deg, rgba(132,155,255,.07), rgba(132,155,255,.07)); box-shadow: 0 0 0 3px rgba(132,155,255,.18); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid #c7cbe6; flex: none;
  display: grid; place-items: center; transition: all .16s ease; margin-top: 2px; color: #fff;
}
.opt-card.selected .checkbox { background: var(--grad); border-color: transparent; }
.checkbox svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: all .16s ease; }
.opt-card.selected .checkbox svg { opacity: 1; transform: scale(1); }
.opt-body { flex: 1; min-width: 0; }
.opt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-name { font-weight: 650; font-size: 1rem; }
.opt-price { font-weight: 700; font-size: .95rem; color: var(--blue-deep); white-space: nowrap; }
.opt-price .per { font-weight: 500; color: var(--muted); font-size: .82rem; }
.opt-price.custom { color: var(--blue-mid); font-size: .85rem; }
.opt-price .plus { color: var(--muted); font-weight: 500; padding: 0 2px; }
.opt-desc { margin: 5px 0 0; font-size: .9rem; color: var(--ink-soft); }
.opt-badge {
  display: inline-block; font-size: .72rem; font-weight: 600; color: var(--blue-mid);
  background: rgba(132,155,255,.14); padding: 2px 9px; border-radius: 999px; margin-top: 8px;
}

/* Legend / info note */
.legend {
  display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0;
  background: var(--grad-soft); border: 1px solid rgba(132,155,255,.4);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: .88rem; color: var(--ink-soft);
}
.legend strong { color: var(--blue-deep); font-weight: 650; }
.legend-icon { flex: none; font-size: 1rem; line-height: 1.4; }

/* Form */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .92rem; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #fbfbfe;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--periwinkle); box-shadow: 0 0 0 3px rgba(132,155,255,.2); background: #fff; }
input.invalid, textarea.invalid { border-color: #e0466b; box-shadow: 0 0 0 3px rgba(224,70,107,.14); }
textarea { resize: vertical; }
.form-error { color: #d32f5b; font-size: .9rem; margin: 0; min-height: 0; font-weight: 500; }
.form-error:empty { display: none; }

.btn-primary {
  font-family: inherit; font-size: 1.05rem; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--grad); border: none; border-radius: 13px; padding: 15px 24px;
  box-shadow: 0 10px 24px rgba(53,80,214,.32); transition: transform .14s, box-shadow .14s, opacity .14s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(53,80,214,.4); }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-primary.loading .btn-label::after {
  content: ''; display: inline-block; width: 16px; height: 16px; margin-left: 10px; vertical-align: -2px;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }

/* Success */
.success-box { text-align: center; padding: 18px 8px 8px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-md);
}
.success-box h3 { margin: 0 0 8px; font-size: 1.35rem; }
.success-box p { color: var(--ink-soft); margin: 0 0 20px; }
.btn-ghost {
  font-family: inherit; font-weight: 600; font-size: .95rem; color: var(--blue-mid); cursor: pointer;
  background: #fff; border: 1.5px solid var(--periwinkle); border-radius: 11px; padding: 11px 22px; transition: all .15s;
}
.btn-ghost:hover { background: var(--grad-soft); }

/* Summary */
.summary-wrap { position: sticky; top: 92px; }
.summary { padding: 24px; }
.summary-title { font-size: 1.2rem; margin: 0 0 18px; letter-spacing: -.01em; }
.summary-block { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px; }
.summary-block-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .98rem; margin-bottom: 10px; }
.summary-block-head .muted { font-size: .78rem; color: var(--muted); font-weight: 500; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-soft); }
.summary-lines li span:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.summary-lines li.empty { color: var(--muted); font-style: italic; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .95rem; }
.summary-total strong { font-size: 1.25rem; color: var(--blue-deep); }
.summary-firstmonth {
  background: var(--grad); color: #fff; border-radius: var(--radius-sm); padding: 16px 18px; text-align: center; margin-top: 4px;
  display: grid; gap: 2px; box-shadow: var(--shadow-md);
}
.summary-firstmonth span { font-size: .9rem; opacity: .9; font-weight: 500; }
.summary-firstmonth strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.summary-firstmonth small { font-size: .76rem; opacity: .85; }
.custom-note { margin-top: 16px; font-size: .85rem; color: var(--ink-soft); background: rgba(132,155,255,.1); border-radius: 10px; padding: 12px 14px; }
.custom-note strong { color: var(--blue-deep); }
.fx-note { font-size: .76rem; color: var(--muted); text-align: center; margin: 16px 0 0; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 28px 0; text-align: center; color: var(--ink-soft); background: #fff; }
.site-footer p { margin: 0 0 4px; font-size: .9rem; }
.footer-fine { color: var(--muted); font-size: .82rem; }

/* Responsive */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .summary-wrap { position: static; order: -1; }
  .summary-firstmonth strong { font-size: 1.7rem; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .hero { margin-top: 36px; }
}
