/**
 * SS Cotizador Hogar — estilos
 * Diseño alineado con los componentes ss-* del sitio: navy #1a2856, dorado #c8a415,
 * esquinas rectas (border-radius: 0, regla anti-IA de la guía de estilo).
 */

.ss-cotizador {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

.ss-cotizador *,
.ss-cotizador *::before,
.ss-cotizador *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* ---------- Indicador de progreso ---------- */
.ssc-progress {
    display: flex;
    margin-bottom: 36px;
    border: 1px solid #dce0e4;
}

.ssc-progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px;
    background: #f7f8fa;
    color: #8a93a5;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-right: 1px solid #dce0e4;
    transition: background .25s, color .25s;
}

.ssc-progress-step:last-child {
    border-right: none;
}

.ssc-progress-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #dce0e4;
    color: #6b7280;
    font-size: .8rem;
    font-weight: 700;
}

.ssc-progress-step.is-active {
    background: #1a2856;
    color: #fff;
}

.ssc-progress-step.is-active .num {
    background: #c8a415;
    color: #1a2856;
}

.ssc-progress-step.is-done {
    background: #eef1f6;
    color: #1a2856;
}

.ssc-progress-step.is-done .num {
    background: #1a2856;
    color: #fff;
}

/* ---------- Pasos ---------- */
.ssc-form {
    margin: 0;
}

.ssc-step {
    display: none;
    border: 1px solid #dce0e4;
    padding: 32px;
    margin: 0;
    background: #fff;
}

.ssc-step.is-active {
    display: block;
}

.ssc-intro {
    margin: 0 0 24px;
    color: #4a4a4a;
    font-size: .95rem;
    line-height: 1.6;
    text-align: left;
}

.ssc-subtitle {
    margin: 32px 0 16px;
    padding-bottom: 8px;
    color: #1a2856;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 2px solid #c8a415;
}

/* ---------- Campos ---------- */
.ssc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 4px;
}

.ssc-field {
    flex: 1 1 200px;
    margin-bottom: 16px;
}

.ssc-field-wide {
    flex: 2 1 320px;
}

.ssc-field label {
    display: block;
    margin-bottom: 6px;
    color: #1a2856;
    font-size: .85rem;
    font-weight: 600;
    text-align: left;
}

.ssc-field .req {
    color: #c0392b;
}

.ssc-field input[type="text"],
.ssc-field input[type="email"],
.ssc-field input[type="tel"],
.ssc-field input[type="number"],
.ssc-field input[type="date"],
.ssc-field select,
.ssc-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #c5ccd6;
    background: #fff;
    color: #1a1a1a;
    font-size: .95rem;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}

.ssc-field input:focus,
.ssc-field select:focus,
.ssc-field textarea:focus {
    outline: 2px solid #1a2856;
    outline-offset: 2px;
    border-color: #1a2856;
    box-shadow: 0 0 0 2px rgba(26, 40, 86, 0.12);
}

.ssc-field input.has-error,
.ssc-field select.has-error,
.ssc-field textarea.has-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.1);
}

.ssc-help {
    display: block;
    margin-top: 5px;
    color: #8a93a5;
    font-size: .8rem;
    line-height: 1.4;
    text-align: left;
}

.ssc-field-error {
    display: block;
    margin-top: 5px;
    color: #c0392b;
    font-size: .8rem;
    font-weight: 600;
    text-align: left;
}

/* ---------- Preguntas Sí/No ---------- */
.ssc-yesno {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1f6;
}

.ssc-yesno-label {
    flex: 1;
    color: #2a2a2a;
    font-size: .92rem;
    line-height: 1.5;
    text-align: left;
}

.ssc-yesno-buttons {
    display: flex;
    flex-shrink: 0;
}

.ssc-yesno-buttons label {
    cursor: pointer;
}

.ssc-yesno-buttons input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ssc-yesno-buttons span {
    display: inline-block;
    min-width: 64px;
    padding: 9px 18px;
    border: 1px solid #c5ccd6;
    background: #fff;
    color: #4a4a4a;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    transition: all .2s;
}

.ssc-yesno-buttons label:first-child span {
    border-right: none;
}

.ssc-yesno-buttons input[type="radio"]:checked + span {
    background: #1a2856;
    border-color: #1a2856;
    color: #fff;
}

.ssc-yesno.has-error .ssc-yesno-buttons span {
    border-color: #c0392b;
}

/* ---------- RGPD ---------- */
.ssc-rgpd {
    margin: 24px 0;
    padding: 16px;
    background: #f7f8fa;
    border: 1px solid #dce0e4;
}

.ssc-rgpd label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    color: #4a4a4a;
    font-size: .85rem;
    line-height: 1.55;
    text-align: left;
}

.ssc-rgpd input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #1a2856;
}

.ssc-rgpd a {
    color: #1a2856;
    text-decoration: underline;
}

.ssc-rgpd.has-error {
    border-color: #c0392b;
    background: #fdf3f2;
}

/* ---------- Errores globales ---------- */
.ssc-error-global {
    margin: 16px 0;
    padding: 14px 18px;
    background: #fdf3f2;
    border-left: 4px solid #c0392b;
    color: #8c2b21;
    font-size: .9rem;
    text-align: left;
}

/* ---------- Botones ---------- */
.ssc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eef1f6;
}

.ssc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #c8a415;
    border: 1px solid #c8a415;
    color: #1a2856;
    font-size: .92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: all .2s;
}

.ssc-btn:hover {
    background: #1a2856;
    border-color: #1a2856;
    color: #fff;
}

.ssc-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ssc-btn-secondary {
    background: transparent;
    border-color: #c5ccd6;
    color: #4a4a4a;
}

.ssc-btn-secondary:hover {
    background: #f0f2f5;
    border-color: #8a93a5;
    color: #1a2856;
}

.ssc-btn .arrow {
    font-size: 1.1em;
    line-height: 1;
}

/* ---------- Honeypot (invisible para humanos) ---------- */
.ssc-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ---------- Confirmación ---------- */
.ssc-success {
    text-align: center;
    padding: 40px 20px;
}

.ssc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    background: #1a2856;
    color: #c8a415;
    font-size: 2.2rem;
    font-weight: 700;
}

.ssc-success h3 {
    margin: 0 0 16px;
    color: #1a2856;
    font-size: 1.6rem;
    font-weight: 800;
}

.ssc-success p {
    max-width: 520px;
    margin: 0 auto 12px;
    color: #4a4a4a;
    font-size: .98rem;
    line-height: 1.65;
}

.ssc-ref {
    margin-top: 20px !important;
    font-size: .9rem !important;
}

.ssc-ref-num {
    color: #1a2856;
    font-size: 1.05rem;
    letter-spacing: .04em;
}

/* ---------- Microcopy de confianza (reversión de riesgo) ---------- */
.ssc-reassurance {
    margin: 16px 0 0;
    color: #8a93a5;
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
}

/* ---------- Timeline de siguientes pasos (confirmación) ---------- */
.ssc-timeline {
    max-width: 480px;
    margin: 32px auto 0;
    padding: 24px 28px;
    background: #f7f8fa;
    border: 1px solid #dce0e4;
    text-align: left;
}

.ssc-timeline h4 {
    margin: 0 0 16px;
    color: #1a2856;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ssc-timeline ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: ssc-pasos;
}

.ssc-timeline li {
    position: relative;
    padding: 0 0 18px 42px;
    counter-increment: ssc-pasos;
    color: #4a4a4a;
    font-size: .92rem;
    line-height: 1.5;
}

.ssc-timeline li:last-child {
    padding-bottom: 0;
}

.ssc-timeline li::before {
    content: counter(ssc-pasos);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1a2856;
    color: #c8a415;
    font-size: .85rem;
    font-weight: 700;
}

/* Línea vertical conectando los pasos */
.ssc-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: #dce0e4;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .ssc-step {
        padding: 20px 16px;
    }

    .ssc-progress-step .lbl {
        display: none;
    }

    .ssc-row {
        flex-direction: column;
        gap: 0;
    }

    .ssc-yesno {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ssc-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .ssc-nav .ssc-btn {
        width: 100%;
        justify-content: center;
    }
}
