/* ================================================================
   BALLESTA MKT — COTIZADOR CSS
   cotizador.css — Estilos multi-paso, selector de servicios y resultados
================================================================ */

.bm-quoter-container {
    max-width: 900px;
    margin-inline: auto;
    padding-bottom: 4rem;
}

/* ─── INDICADOR DE PASOS ─────────────────────────────────────── */
.bm-quoter-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}

.bm-quoter-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--bm-border);
    z-index: 1;
}

.bm-quoter-step-progress {
    position: absolute;
    top: 24px;
    left: 40px;
    height: 3px;
    background: var(--bm-cyan);
    z-index: 2;
    transition: width 0.3s ease;
    width: 0%;
}

.bm-quoter-step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.bm-quoter-step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--bm-radius-full);
    background: #ffffff;
    border: 3px solid var(--bm-border);
    color: var(--bm-text-muted);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--bm-transition);
}

.bm-quoter-step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bm-text-muted);
    transition: var(--bm-transition);
}

/* Estados de paso */
.bm-quoter-step-item--active .bm-quoter-step-number {
    background: var(--bm-blue);
    border-color: var(--bm-cyan);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(12, 165, 196, 0.2);
}

.bm-quoter-step-item--active .bm-quoter-step-title {
    color: var(--bm-blue);
    font-weight: 700;
}

.bm-quoter-step-item--completed .bm-quoter-step-number {
    background: var(--bm-success);
    border-color: var(--bm-success);
    color: #ffffff;
}

/* ─── CARD DEL COTIZADOR ─────────────────────────────────────── */
.bm-quoter-card {
    background: #ffffff;
    border-radius: var(--bm-radius-xl);
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .bm-quoter-card {
        padding: 1.5rem;
    }
    .bm-quoter-step-title {
        display: none;
    }
}

.bm-step-content {
    display: none;
}

.bm-step-content--active {
    display: block;
    animation: bmFadeIn 0.3s ease-in-out;
}

@keyframes bmFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── TARJETAS DE SELECCIÓN DE SERVICIOS ──────────────────────── */
.bm-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-block: 2rem;
}

.bm-option-card {
    border: 2px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--bm-transition);
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bm-option-card:hover {
    border-color: var(--bm-cyan);
    background: var(--bm-bg-alt);
}

.bm-option-card input[type="checkbox"],
.bm-option-card input[type="radio"] {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 20px;
    height: 20px;
    accent-color: var(--bm-cyan);
    cursor: pointer;
}

.bm-option-card.selected {
    border-color: var(--bm-blue);
    background: rgba(0, 91, 151, 0.04);
    box-shadow: 0 4px 12px rgba(0, 91, 151, 0.1);
}

.bm-option-icon {
    font-size: 2rem;
    color: var(--bm-cyan);
    margin-bottom: 0.75rem;
}

.bm-option-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--bm-text);
}

.bm-option-desc {
    font-size: 0.85rem;
    color: var(--bm-text-muted);
    line-height: 1.5;
}

/* ─── BARRA INFERIOR DE ACCIONES Y ESTIMADO EN VIVO ────────────── */
.bm-quoter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bm-border);
    padding-top: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bm-live-estimate {
    display: flex;
    flex-direction: column;
}

.bm-live-estimate-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bm-live-estimate-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bm-blue);
    font-family: var(--bm-font-display);
}

/* ─── RESULTADO FINAL (PASO 4) ────────────────────────────────── */
.bm-result-box {
    text-align: center;
    padding-block: 2rem;
}

.bm-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.15);
    color: var(--bm-success);
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: var(--bm-radius-full);
    margin-bottom: 1.5rem;
}

.bm-result-price-card {
    background: linear-gradient(135deg, #0f172a 0%, #003659 100%);
    color: #ffffff;
    border-radius: var(--bm-radius-xl);
    padding: 2.5rem;
    margin-block: 2rem;
    box-shadow: var(--bm-shadow-lg);
    border: 1px solid rgba(12, 165, 196, 0.3);
}

.bm-result-amount {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 900;
    font-family: var(--bm-font-display);
    color: var(--bm-cyan);
    line-height: 1;
    margin-block: 0.5rem 0.25rem;
}

.bm-result-folio {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
