/* ========== MODAL DE CAPTURA ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-matrix {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 20, 0, 0.95);
    border: 2px solid #0f0;
    padding: 40px;
    z-index: 1001;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), 
                0 0 80px rgba(0, 255, 0, 0.3) inset;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    animation: modalGlitch 3s infinite;
}

@keyframes modalGlitch {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), 0 0 80px rgba(0, 255, 0, 0.3) inset; }
    50% { box-shadow: 0 0 45px rgba(0, 255, 0, 0.7), 0 0 85px rgba(0, 255, 0, 0.4) inset; }
}

.modal-matrix h3 {
    color: #0f0;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-shadow: 0 0 10px #0f0;
}

.modal-subtitle {
    color: #0f0;
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.modal-input {
    background: rgba(0, 10, 0, 0.9);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 12px 15px;
    margin: 10px 0;
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    border-radius: 5px;
    transition: all 0.3s;
}

.modal-input:focus {
    outline: none;
    box-shadow: 0 0 10px #0f0;
    border-color: #0f0;
}

.modal-input::placeholder {
    color: #0a0;
    opacity: 0.7;
}

.modal-btn {
    background: transparent;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 12px 30px;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    width: 100%;
    transition: all 0.3s;
    border-radius: 5px;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px #0f0;
}

.modal-disclaimer {
    color: #0a0;
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    opacity: 0.8;
}

/* Efecto de glitch en el título del modal */
@keyframes textGlitch {
    0%, 100% { transform: translate(0); }
    1% { transform: translate(-1px, 1px); }
    2% { transform: translate(1px, -1px); }
    3% { transform: translate(-1px, 1px); }
    4% { transform: translate(1px, -1px); }
    5% { transform: translate(0); }
}

.modal-matrix h3 {
    animation: textGlitch 5s infinite;
}