/* ===== PÁGINA DEL CANDADO ===== */
.candado-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.candado-icono {
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
    filter: drop-shadow(var(--sombra));
    animation: suaveFlotar 3s ease-in-out infinite;
}

@keyframes suaveFlotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.candado-titulo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.candado-subtitulo {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* ===== INPUTS DE 6 DÍGITOS ===== */
.codigo-contenedor {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.codigo-input {
    width: 70px;
    height: 80px;
    border: 2px solid var(--color-borde);
    border-radius: 15px;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
    background: white;
    transition: var(--transicion);
    outline: none;
}

.codigo-input:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
    transform: translateY(-2px);
}

.codigo-input.error {
    border-color: #ff4444;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== BOTÓN DESBLOQUEAR ===== */
.btn-desbloquear {
    padding: 15px 50px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--color-primario), #ff9eb5);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: var(--transicion);
    box-shadow: var(--sombra);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.btn-desbloquear:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--sombra-hover);
}

.btn-desbloquear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== MENSAJE DE ERROR ===== */
.mensaje-error {
    color: #ff4444;
    font-size: 1rem;
    min-height: 30px;
    opacity: 0;
    transition: var(--transicion);
}

.mensaje-error.visible {
    opacity: 1;
}