/* cookies-styles.css: Estilos para el aviso de cookies */

/* Centrar el contenido del main */
.cookies-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cookies-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cookies-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cookies-container ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.cookies-container ul li {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #cfcfcf;
}

.cookies-container ul li strong {
    color: #ffea00;
}

/* Estilo para el overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
    z-index: 999; /* Por encima de todos los elementos */
    display: none; /* Oculto por defecto */
}

/* Mostrar el overlay */
#overlay.active {
    display: block;
}

/* Estilo para el aviso de cookies */
#cookieConsent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(34, 34, 34, 0.95);
    color: white;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    z-index: 1000;
    text-align: center;
    max-width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Espaciado entre enlaces y botones */
#cookieConsent a {
    color: #ffea00;
    text-decoration: none;
    font-weight: bold;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

#cookieConsent a:hover {
    color: #00ff00;
}

/* Botones del aviso */
#cookieConsent button {
    background-color: #4caf50;
    padding: 0.7em 1.2em;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0.5rem;
}

#cookieConsent button:hover {
    background-color: #45a049;
}

/* Para asegurar que los botones estén siempre alineados */
#cookieConsent div {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Mejora de diseño responsivo */
@media (max-width: 768px) {
    #cookieConsent {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
    }

    #cookieConsent a,
    #cookieConsent button {
        margin-bottom: 0.5rem;
    }
}
