/* ─── Selector Interactivo Pro — Frontend Styles ─── */

.sid-container {
    font-family: inherit;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    text-align: center;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* ── Pasos ── */
.sid-step {
    display: none;
}

.sid-step.active {
    display: block;
}

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

@keyframes sidOptionAppear {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.sid-step.active .sid-option {
    animation: sidOptionAppear 0.25s ease forwards;
    opacity: 0;
}

.sid-step.active .sid-option:nth-child(1) { animation-delay: 0ms; }
.sid-step.active .sid-option:nth-child(2) { animation-delay: 200ms; }
.sid-step.active .sid-option:nth-child(3) { animation-delay: 400ms; }
.sid-step.active .sid-option:nth-child(4) { animation-delay: 600ms; }
.sid-step.active .sid-option:nth-child(5) { animation-delay: 800ms; }
.sid-step.active .sid-option:nth-child(6) { animation-delay: 1000ms; }
.sid-step.active .sid-option:nth-child(7) { animation-delay: 1200ms; }
.sid-step.active .sid-option:nth-child(8) { animation-delay: 1400ms; }

/* ── Título ── */
.sid-step-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 28px;
    color: inherit;
    line-height: 1.3;
}

/* ── Grilla de opciones ── */
.sid-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    width: 100%;
}

/* ── Tarjeta de opción ── */
.sid-option {
    cursor: pointer;
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 8px;
    border-radius: 12px;
    border: none;
    transition: transform 0.2s ease;
    background: transparent;
    outline: none;
}

.sid-option:hover,
.sid-option:focus {
    transform: scale(1.15);
}

.sid-option img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e5e5;
    transition: transform 0.2s ease;
    display: block;
}

.sid-option:hover img,
.sid-option:focus img {
    transform: scale(1.05);
}

.sid-option span {
    font-weight: 600;
    font-size: 0.95em;
    color: inherit;
    line-height: 1.3;
}

/* ── Botón volver ── */
.sid-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #c3c4c7;
    color: #555;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s, color 0.2s;
    margin-top: 4px;
}

.sid-back:hover {
    background: #f0f0f1;
    color: #1d2327;
}

/* ── Error ── */
.sid-error {
    color: #b32d2e;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .sid-grid {
        gap: 14px;
    }

    .sid-option {
        width: 130px;
    }

    .sid-option img {
        width: 90px;
        height: 90px;
    }

    .sid-step-title {
        font-size: 1.2em;
    }
}
