/* =========================================
   ESTILOS DEL MODAL (VENTANA EMERGENTE)
   ========================================= */

/* El fondo oscuro que cubre toda la pantalla */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 9999; /* Encima de todo, incluso del slider */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Negro muy oscuro */
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
    
    /* Flexbox para centrar la tarjeta */
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* CLASE QUE JS ACTIVA PARA MOSTRARLO */
.modal-overlay.show {
    display: flex; /* Se vuelve visible */
    opacity: 1;
}

/* La tarjeta del formulario */
.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 30px 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px; /* Que no sea gigante en PC */
    position: relative;
    box-shadow: 0 0 30px rgba(230, 36, 41, 0.2); /* Resplandor rojo sutil */
    animation: slideUp 0.3s ease;
}

/* Animación de entrada de la tarjeta */
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Botón Cerrar (X) */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.close-modal:hover { color: #E62429; }

/* Textos */
.modal-title {
    color: white;
    text-align: center;
    margin-top: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.modal-subtitle {
    color: #888;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- FORMULARIO --- */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

/* Iconos dentro de los inputs */
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #E62429; /* Rojo marca */
}
/* Ajuste especial para el icono del textarea (que va arriba) */
.input-group textarea ~ i {
    top: 20px;
}

/* Inputs y Textarea */
.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Padding izq para el icono */
    background-color: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border 0.3s;
}

.input-group textarea {
    resize: none;
    min-height: 100px;
}

/* Foco (cuando escribes) */
.input-group input:focus, 
.input-group textarea:focus {
    border-color: #E62429;
    box-shadow: 0 0 5px rgba(230, 36, 41, 0.3);
}

/* Checkbox Anónimo */
.anon-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
}
.anon-option input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #E62429;
}

/* Botón Enviar dentro del modal */
.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #E62429;
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover {
    background-color: #c21c21;
    transform: translateY(-2px);
}