/* css/recuperar.css - VERSIÓN COMPLETAMENTE CORREGIDA */
.recuperar-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.recuperar-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    border: 1px solid #e0e0e0;
}

.recuperar-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 300;
    position: relative;
}

.recuperar-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* INDICADOR DE PASOS - COMPLETAMENTE REESCRITO */
.paso-indicador {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
    counter-reset: step;
}

.paso-indicador::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.paso {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.paso .circulo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.paso .texto {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    display: block;
}

.paso.activo .circulo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a6fd8;
    color: white;
    transform: scale(1.1);
}

.paso.completado .circulo {
    background: #28a745;
    border-color: #218838;
    color: white;
}

.paso.completado .circulo::after {
    content: '✓';
    font-weight: bold;
}

/* Mensajes */
.mensaje-recuperar {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    border-left: 4px solid;
}

.mensaje-recuperar.error {
    background: #fee;
    border-color: #dc3545;
    color: #721c24;
}

.mensaje-recuperar.success {
    background: #f0fff4;
    border-color: #28a745;
    color: #155724;
}

/* Cajas de contenido */
.instrucciones-recuperar {
    background: #f0f8ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.advertencia-recuperar {
    background: #fffbf0;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.exito-recuperar {
    background: #f0fff4;
    border-left: 4px solid #28a745;
    padding: 25px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    text-align: center;
}

/* Formularios */
.form-group-recuperar {
    margin-bottom: 25px;
}

.form-group-recuperar label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group-recuperar input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-recuperar input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group-recuperar input::placeholder {
    color: #999;
}

/* Preguntas de seguridad */
.pregunta-box-recuperar {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.pregunta-item-recuperar {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 4px solid #667eea;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pregunta-item-recuperar label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.requisito-recuperar {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Botones */
.btn-recuperar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-recuperar:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.4);
}

.btn-recuperar:active {
    transform: translateY(0);
}

.btn-volver-recuperar {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
    text-align: center;
}

.btn-volver-recuperar:hover {
    background: #5a6268;
    text-decoration: none;
    color: white;
}

/* Grupo de botones */
.botones-recuperar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.botones-recuperar .btn-recuperar {
    width: auto;
    flex: 1;
    margin-top: 0;
    min-width: 200px;
}

.botones-recuperar .btn-volver-recuperar {
    flex: 1;
    min-width: 120px;
}

/* Enlaces */
.auth-links-recuperar {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.auth-links-recuperar a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.auth-links-recuperar a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-links-recuperar p {
    margin: 8px 0;
}

/* Intentos restantes */
.intentos-restantes-recuperar {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* RESPONSIVE DESIGN - CORREGIDO */
@media (max-width: 768px) {
    .recuperar-container {
        padding: 10px;
        align-items: flex-start;
        min-height: 100vh;
    }

    .recuperar-form {
        padding: 25px 20px;
        margin: 10px 0;
        max-width: 100%;
    }

    .recuperar-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* INDICADOR DE PASOS - MOBILE */
    .paso-indicador {
        flex-direction: column;
        align-items: flex-start;
        margin: 20px 0;
        gap: 15px;
    }

    .paso-indicador::before {
        display: none;
    }

    .paso {
        display: flex;
        align-items: center;
        text-align: left;
        width: 100%;
        flex: none;
    }

    .paso .circulo {
        margin: 0 15px 0 0;
        flex-shrink: 0;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .paso .texto {
        font-size: 14px;
        display: inline;
    }

    /* BOTONES - MOBILE */
    .botones-recuperar {
        flex-direction: column;
        gap: 10px;
    }

    .botones-recuperar .btn-recuperar,
    .botones-recuperar .btn-volver-recuperar {
        width: 100%;
        min-width: auto;
        flex: none;
        margin-right: 0;
    }

    .btn-volver-recuperar {
        order: -1;
    }

    /* FORMULARIOS - MOBILE */
    .form-group-recuperar input {
        padding: 14px 12px;
        font-size: 16px;
    }

    .pregunta-box-recuperar {
        padding: 15px;
        margin: 15px 0;
    }

    .pregunta-item-recuperar {
        padding: 15px;
        margin-bottom: 20px;
    }

    /* CAJAS DE CONTENIDO - MOBILE */
    .instrucciones-recuperar,
    .advertencia-recuperar,
    .exito-recuperar {
        padding: 15px;
        margin: 15px 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .recuperar-form {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .recuperar-title {
        font-size: 22px;
    }

    .paso .circulo {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .paso .texto {
        font-size: 13px;
    }

    .btn-recuperar {
        padding: 12px 20px;
        font-size: 15px;
    }

    .btn-volver-recuperar {
        padding: 10px 20px;
        font-size: 13px;
    }

    .auth-links-recuperar {
        margin-top: 20px;
        padding-top: 15px;
    }

    .auth-links-recuperar a {
        font-size: 13px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .recuperar-form {
        padding: 15px 10px;
    }

    .recuperar-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .paso .circulo {
        width: 25px;
        height: 25px;
        font-size: 11px;
        margin-right: 10px;
    }

    .paso .texto {
        font-size: 12px;
    }

    .form-group-recuperar input {
        padding: 10px 8px;
    }

    .btn-recuperar {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recuperar-form {
    animation: fadeIn 0.5s ease-out;
}

.pregunta-item-recuperar {
    animation: fadeIn 0.3s ease-out;
}

/* Estados de carga */
.btn-recuperar:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-recuperar:disabled:hover {
    box-shadow: none;
    transform: none;
}

/* Mejoras para accesibilidad */
.form-group-recuperar input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Prevenir zoom en iOS */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}