/* Estilos generales para el body y el layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    /* Grid container para centrar todo el contenido */
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden; /* Evita el scroll horizontal */
    text-align: center;
}

/* Estilos para el fondo de todas las páginas */
.bg-cuestionario, .bg-dashboard {
    background-image: url('https://www.aorixss.com/evaluate/images/fondo_modsec.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Contenedor principal para los formularios */
.container {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 20px;
}

/* Estilos de las cajas de formularios */
.form-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.form-box.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute; /* Para que el layout no se mueva */
}

/* Estilos de los inputs y botones */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Estilos para los enlaces */
p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

/* Estilos del modal (aviso de privacidad) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: grid;
    place-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative; /* Para el botón de cerrar */
}

.modal-content h2 {
    margin-top: 0;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.modal-content .button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-content #accept-consent {
    background-color: #2ecc71;
    color: white;
}

.modal-content #accept-consent:hover {
    background-color: #27ae60;
}

.modal-content #close-consent {
    background-color: #e74c3c;
    color: white;
}

.modal-content #close-consent:hover {
    background-color: #c0392b;
}

/* Estilos para los logos */
.logo-dinamica {
    width: 200px; /* Tamaño un poco más pequeño */
    height: auto;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.logo-70 {
    width: 100px; /* Tamaño un poco más pequeño */
    height: auto;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

/* Responsive design para dispositivos móviles */
@media (max-width: 768px) {
    .logo-dinamica {
        width: 150px;
    }

    .logo-70 {
        width: 80px;
    }

    .form-box {
        padding: 20px;
    }
}
