@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Contenedor ── */
.alvc-wrap {
  font-family: 'Inter', sans-serif;
  color: #0d0d0d;
  width: 100%;
  max-width: 520px;
}

.alvc-hidden { display: none !important; }

/* ── Inputs ── */
.alvc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.alvc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alvc-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.alvc-input-row {
  position: relative;
}

.alvc-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  padding: 10px 40px 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #0d0d0d;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.alvc-input::-webkit-outer-spin-button,
.alvc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.alvc-input::placeholder { color: #ccc; font-weight: 400; }
.alvc-input:focus { border-color: #025fff; }

.alvc-suffix {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 600;
  color: #aaa;
}

/* ── Resultado ── */
.alvc-resultado {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

/* Pérdida */
.alvc-perdida {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #f5f7fa;
  border-radius: 8px;
  margin-bottom: 16px;
}
.alvc-perdida-icon { font-size: 20px; }
.alvc-perdida strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.alvc-perdida p { margin: 0; font-size: 13px; color: #666; line-height: 1.5; }

/* Filas de resultado */
.alvc-ganancia-wrap { margin-bottom: 20px; }

.alvc-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.alvc-fila-label { font-size: 13px; color: #666; }
.alvc-fila-valor { font-size: 18px; font-weight: 700; color: #0d0d0d; }

/* Desglose */
.alvc-desglose { padding: 8px 0 4px; }
.alvc-desglose-titulo {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aaa;
  margin: 0 0 6px;
}
.alvc-desglose-fila {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  padding: 3px 0;
}
.alvc-desglose-cuota { font-weight: 600; color: #555; }

/* Impuesto */
.alvc-impuesto-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #025fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 8px;
}
.alvc-impuesto-box span:first-child {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}
.alvc-val-impuesto {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

/* ── CTA ── */
.alvc-cta { margin-top: 28px; }

.alvc-cta-texto {
  font-size: 15px;
  font-weight: 600;
  color: #0d0d0d;
  margin: 0 0 14px;
}

.alvc-email-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.alvc-email-input {
  flex: 1;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0d0d0d;
  outline: none;
  transition: border-color 0.2s;
}
.alvc-email-input:focus { border-color: #025fff; }
.alvc-email-input::placeholder { color: #bbb; }

.alvc-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.alvc-btn-enviar {
  background: #025fff;
  color: #fff;
}
.alvc-btn-enviar:hover { opacity: .85; }
.alvc-btn-enviar:disabled { opacity: .5; cursor: default; }

/* Honeypot */
.alvc-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ── Error ── */
.alvc-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #cc3300;
}

/* ── Confirmación ── */
.alvc-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f0f5ff;
  border-radius: 8px;
  margin-top: 12px;
}
.alvc-ok-icon {
  width: 28px;
  height: 28px;
  background: #025fff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.alvc-ok p { margin: 0; font-size: 14px; font-weight: 500; color: #0d0d0d; }

/* ── Aviso legal ── */
.alvc-aviso {
  margin: 20px 0 0;
  font-size: 11px;
  color: #bbb;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .alvc-input { font-size: 18px; }
  .alvc-email-form { flex-direction: column; }
  .alvc-btn-enviar { width: 100%; justify-content: center; }
}
