/* ============================================
   MODAL (VENTANA EMERGENTE)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botón de cerrar (X) */
.close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #333;
}

/* Título del modal */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

/* Enlace de registro en el modal */
.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EEE;
}

.register-link p {
    color: #666;
    font-size: 0.95rem;
}

.register-link a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Modales Admin (Eurotaller Glassmorphism) */
.eurotaller-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.eurotaller-modal-card {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.eurotaller-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.eurotaller-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.eurotaller-modal-close {
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
.eurotaller-modal-close:hover {
    color: #0f172a;
}

.eurotaller-modal-body {
    margin-bottom: 1.25rem;
}

.eurotaller-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

/* Inputs en Modales */
.eurotaller-input {
    width: 100%;
    background: white;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}
.eurotaller-input:focus {
    outline: none;
    border-color: var(--eurotaller-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.eurotaller-input.mono {
    font-family: monospace;
    text-transform: uppercase;
}

/* Botones Modal */
.btn-euro-primary {
    background: linear-gradient(135deg, var(--eurotaller-blue) 0%, var(--eurotaller-green) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(39, 61, 152, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-euro-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(39, 61, 152, 0.24);
}

.btn-euro-secondary {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-euro-secondary:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(39, 61, 152, 0.08);
}
