

.navbar:hover {
    background-color: #3b237e;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.7);
}

.consulta-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #3b237e;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.pregunta-seccion {
    background-color: #2a1a5e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pregunta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fecha {
    font-size: 14px;
    color: #c2c2f0;
}

.respuestas-seccion {
    margin-top: 30px;
}

.respuesta {
    background-color: #2a1a5e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.respuesta:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.respuesta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.etiqueta {
    background-color: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

.profesional {
    border-left: 5px solid #4CAF50;
    background-color: #1f1347;
}

pre {
    background-color: #1a094a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #c2c2f0;
}

.nueva-respuesta {
    margin-top: 30px;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    resize: vertical;
    background-color: #2a1a5e;
    color: white;
}

.responder-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.responder-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

/* Fondo oscuro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Ventana emergente */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a094a; /* Color de fondo oscuro */
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    z-index: 1000;
    animation: slideDown 0.5s ease-out; /* Animación de la ventana */
}

/* Animación */
@keyframes slideDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Botones en la ventana emergente */
.popup-buttons {
    margin-top: 20px;
}

.popup-button {
    background-color: #5ce1e6;
    border: none;
    color: #1a094a;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.popup-button:hover {
    background-color: #4ab9b8;
}

