*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:       #1741b0;
  --azul-dark:  #0e2770;
  --azul-light: #eef3ff;
  --acento:     #f59e0b;
  --texto:      #111827;
  --suave:      #6b7280;
  --borde:      #e5e7eb;
  --fondo:      #f5f7fc;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
header {
  background: var(--azul-dark);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.logo-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-top: 1px;
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.wa-btn:hover { background: #1db954; transform: translateY(-1px); }

/* ── MAIN / LAYOUT ── */
main {
  flex: 1;
  padding: 48px 24px 60px;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

/* ── COLUMNA IZQUIERDA ── */
.form-titulo {
  margin-bottom: 22px;
}

.form-titulo h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--azul-dark);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.form-titulo p {
  font-size: 0.92rem;
  color: var(--suave);
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border: 1.5px solid #a0aec0;
}

.campo {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

label em {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 4px;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--suave);
  pointer-events: none;
}

select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 2px solid #a0aec0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--texto);
  background: #fff;
  outline: none;
  appearance: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
select:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(23,65,176,0.12);
}

.input-group {
  display: flex;
  align-items: center;
  border: 2px solid #a0aec0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.input-group:focus-within {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(23,65,176,0.12);
}

.input-group span {
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--azul);
  background: #eef3ff;
  border-right: 2px solid #a0aec0;
  user-select: none;
  white-space: nowrap;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--texto);
  font-family: inherit;
}

/* Checkbox */
.check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: var(--azul-light);
  border: 1.5px solid #c7d7f8;
  border-radius: 10px;
  padding: 14px 16px;
}

.check-label input[type="checkbox"] { display: none; }

.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #93aee8;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.check-label input:checked ~ .check-box {
  background: var(--azul);
  border-color: var(--azul);
}
.check-label input:checked ~ .check-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.check-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--azul-dark);
}
.check-info span {
  font-size: 0.75rem;
  color: var(--azul);
  font-weight: 400;
}

.btn-calc {
  width: 100%;
  padding: 14px;
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  margin-top: 4px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(23,65,176,0.3);
}
.btn-calc:hover {
  background: var(--azul-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23,65,176,0.4);
}
.btn-calc:active { transform: translateY(0); }

/* ── RESULTADO ── */
#resultado { margin-top: 20px; }

.res-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--borde);
}

.res-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.badge-ok  { background: #dcfce7; color: #15803d; }
.badge-no  { background: #fee2e2; color: #b91c1c; }

.resumen {
  background: #f9fafb;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--suave);
  line-height: 2;
  margin-bottom: 20px;
}
.resumen strong { color: var(--texto); font-weight: 600; }

.planes-titulo {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--suave);
  margin-bottom: 12px;
}

.planes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan {
  background: linear-gradient(145deg, var(--azul-dark), var(--azul));
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(23,65,176,0.25);
  transition: transform 0.2s;
}
.plan:hover { transform: translateY(-3px); }
.plan-unico {
  background: linear-gradient(145deg, #0e2770, #1741b0);
  border-radius: 16px;
  padding: 22px 24px;
  color: #fff;
  box-shadow: 0 8px 28px rgba(14,39,112,0.35);
  margin-top: 12px;
}

.plan-unico-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 16px;
}

.plan-unico-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.plan-unico-row:last-of-type {
  border-bottom: none;
  margin-bottom: 4px;
}

.plan-unico-row span {
  font-size: 0.82rem;
  opacity: 0.7;
}

.plan-unico-row strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-unico .btn-interesa {
  display: block;
  margin-top: 16px;
  padding: 13px;
  font-size: 0.92rem;
  border-radius: 10px;
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.plan-unico .btn-interesa:hover {
  background: #1db954;
  transform: translateY(-1px);
}

.plan-per {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
  margin-bottom: 8px;
}
.plan-premio {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.plan-sep {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 8px 0;
}
.plan-cuotas { font-size: 0.72rem; opacity: 0.7; margin-bottom: 3px; }
.plan-valor  { font-size: 0.95rem; font-weight: 700; }

.resumen-editable {
  background: #eef3ff;
  border: 1.5px solid #c7d7f8;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.resumen-datos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.82rem;
  color: var(--suave);
}

.resumen-datos-row strong {
  color: var(--azul-dark);
}

.btn-editar {
  background: white;
  border: 1.5px solid #a0aec0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--azul);
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.btn-editar:hover {
  background: var(--azul-light);
  border-color: var(--azul);
}

.cotizando-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background: white;
  border-radius: 16px;
  border: 1.5px solid #a0aec0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  gap: 16px;
}

.cotizando-anim p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
}

.cotizando-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e0e7ff;
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-interesa {
  display: block;
  margin-top: 12px;
  padding: 9px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
}
.btn-interesa:hover { background: #1db954; }
.btn-interesa-full  { margin-top: 16px; padding: 12px; font-size: 0.92rem; }

.denegado-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 18px;
  color: #9a3412;
  font-size: 0.88rem;
  line-height: 1.65;
}
.denegado-box strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* ── COLUMNA DERECHA ── */
.col-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 84px;
}

#info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-brand {
  background: linear-gradient(145deg, var(--azul-dark), var(--azul));
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(14,39,112,0.35);
}

.info-logo-svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.info-brand h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.info-slogan {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.4;
}

.info-cia {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1.5px solid #a0aec0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.cia-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--suave);
  white-space: nowrap;
}

.info-cia img {
  height: 58px;
  object-fit: contain;
}

.info-items {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1.5px solid #a0aec0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-item-ico {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  background: var(--azul-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto);
}
.info-item span {
  font-size: 0.75rem;
  color: var(--suave);
}

.info-condiciones {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--borde);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cond-titulo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--suave);
  margin-bottom: 12px;
}

.info-condiciones ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-condiciones ul li {
  font-size: 0.82rem;
  color: var(--suave);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.info-condiciones ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--azul);
  font-weight: 700;
  font-size: 0.78rem;
}
.info-condiciones ul li strong {
  color: var(--texto);
  font-weight: 600;
}

.info-pasos {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1.5px solid #a0aec0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paso {
  display: flex;
  align-items: center;
  gap: 14px;
}

.paso-num {
  width: 32px;
  height: 32px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.paso strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto);
}

.paso span {
  font-size: 0.75rem;
  color: var(--suave);
}

.pie-legal {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.6;
  font-style: italic;
  padding: 0 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--azul-dark);
  padding: 22px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.footer-marca {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .col-info { position: static; }
  .info-brand { padding: 24px 18px; }
  .planes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .form-titulo h1 { font-size: 1.5rem; }
  main { padding: 24px 14px 36px; }
  .footer-inner { justify-content: center; text-align: center; }
  .card { padding: 20px 18px; }
}

@media (max-width: 520px) {
  header { height: 54px; padding: 0 16px; }
  .logo-svg { width: 34px; height: 34px; }
  .logo-nombre { font-size: 0.95rem; }
  .logo-sub { font-size: 0.6rem; }
  .wa-btn { padding: 7px 13px; font-size: 0.75rem; gap: 5px; }
  .wa-btn svg { width: 15px; height: 15px; }

  main { padding: 18px 12px 30px; }

  .form-titulo { margin-bottom: 16px; }
  .form-titulo h1 { font-size: 1.3rem; margin-bottom: 5px; }
  .form-titulo p { font-size: 0.82rem; }

  .card { padding: 16px 14px; border-radius: 12px; }
  .campo { margin-bottom: 14px; }
  label { font-size: 0.72rem; margin-bottom: 5px; }

  select { padding: 10px 32px 10px 12px; font-size: 0.88rem; }
  .input-group span { padding: 10px 11px; font-size: 0.82rem; }
  .input-group input { padding: 10px 12px; font-size: 0.88rem; }

  .check-label { padding: 11px 13px; gap: 10px; }
  .check-box { width: 20px; height: 20px; }
  .check-info strong { font-size: 0.82rem; }
  .check-info span { font-size: 0.7rem; }

  .btn-calc { padding: 12px; font-size: 0.88rem; }

  .planes { grid-template-columns: 1fr; gap: 8px; }
  .plan { padding: 14px 12px; border-radius: 10px; }
  .plan-per { font-size: 0.65rem; margin-bottom: 5px; }
  .plan-premio { font-size: 1rem; }
  .plan-cuotas { font-size: 0.68rem; }
  .plan-valor { font-size: 0.88rem; }
  .btn-interesa { padding: 8px; font-size: 0.78rem; margin-top: 10px; }

  .resumen-editable { padding: 11px 14px; gap: 8px; }
  .resumen-datos-row { font-size: 0.75rem; gap: 6px 14px; }
  .btn-editar { padding: 6px 11px; font-size: 0.75rem; }

  .res-card { padding: 18px 16px; }
  .res-titulo { font-size: 0.92rem; }

  .info-cia { padding: 14px 16px; }
  .info-cia img { height: 46px; }
  .info-items { padding: 14px 16px; gap: 11px; }
  .info-item-ico { width: 32px; height: 32px; font-size: 1.1rem; }
  .info-item strong { font-size: 0.8rem; }
  .info-item span { font-size: 0.7rem; }
  .info-pasos { padding: 14px 16px; gap: 11px; }
  .paso-num { width: 28px; height: 28px; font-size: 0.78rem; }
  .paso strong { font-size: 0.8rem; }
  .paso span { font-size: 0.7rem; }

  .footer-inner { font-size: 0.7rem; gap: 6px; }
  .footer-marca { font-size: 0.85rem; }
  footer { padding: 16px 16px; }
}
