:root {
    --bg: #f4f6f8;
    --card: #fff;
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #0d9488;
    --muted: #64748b;
    --border: #e2e8f0;
    --readonly: #fef2f2;
    --readonly-text: #991b1b;
    --result-bg: #f1f5f9;
    --result-border: #94a3b8;
  }
  * { box-sizing: border-box; }
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .card h2 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 0.85rem;
    font-weight: 600;
  }
  .field { margin-bottom: 0.85rem; }
  .field:last-child { margin-bottom: 0; }
  label, .label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #334155;
  }
  .hint { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-top: 0.25rem; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    font-size: 0.92rem;
    background: #fff;
  }
  .fidem-phone-field {
    display: flex;
    align-items: stretch;
    width: 100%;
  }
  .fidem-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
  }
  .fidem-phone-field input {
    flex: 1;
    min-width: 0;
    border-radius: 0 6px 6px 0;
  }
  input[readonly], .readonly {
    background: var(--readonly);
    color: var(--readonly-text);
    font-weight: 600;
    border-color: #fecaca;
  }
  .prima-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
  }
  .prima-valores {
    text-align: right;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 7rem;
  }
  input[type="range"] { width: 100%; accent-color: var(--primary); }
  .toggle-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
  }
  .toggle-row input { width: auto; }
  .radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    cursor: pointer;
  }
  .radio-group input { width: auto; }
  .result-box {
    background: var(--result-bg);
    border: 2px solid var(--result-border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
  }
  .result-box .label { color: #475569; margin-bottom: 0.35rem; }
  .result-box .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
  }
  .result-box .sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }
  .result-box .cuota-perfil-msg {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    margin: 0.5rem auto 0;
    line-height: 1.45;
    max-width: 22rem;
  }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  @media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
  .errores {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
  }
  .errores ul { margin: 0; padding-left: 1.2rem; }
  button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
  }
  button[type="submit"]:hover { background: var(--primary-light); }
  .pasos-indicador {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
  }
  .pasos-indicador span {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background: #e2e8f0;
    color: var(--muted);
    font-weight: 600;
  }
  .pasos-indicador span.activo {
    background: var(--primary);
    color: #fff;
  }
  /* Ocultar pasos: Elementor usa flex en contenedores (.e-con) */
  #paso-1:not(.activo),
  #paso-2:not(.activo) {
    display: none !important;
  }
  #paso-1.activo,
  #paso-2.activo {
    display: flex !important;
    flex-direction: column;
  }
  .btn-primario,
  .btn-secundario {
    width: 100%;
    padding: 0.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
  }
  .btn-primario {
    background: var(--primary);
    color: #fff;
  }
  .btn-primario:hover { background: var(--primary-light); }
  .btn-secundario {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
  }
  .btn-secundario:hover { background: #f8fafc; }
  .resumen-paso2 {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    color: #475569;
  }
  .resumen-paso2 strong { display: block; margin-bottom: 0.25rem; }
  #resumen-texto {
    display: block;
    white-space: pre-line;
    line-height: 1.55;
  }
  #paso-2 .paso2-intro {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
  }