.cookie-consent-container {
    font-family: 'Arial', sans-serif;
    position: fixed;
    left: 50%; /* Posicionamiento horizontal al 50% de la pantalla */
    top: 50%; /* Posicionamiento vertical al 50% de la pantalla */
    transform: translate(-50%, -50%); /* Ajuste para centrar exactamente el elemento */
    width: 420px; /* Aumentar el ancho */
    min-height: 250px; /* Altura mínima ajustada */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    padding-bottom: 10px; /* Espacio entre el encabezado y el contenido */
}

.cookie-icon {
    display: inline-block;
    font-size: 24px;
    margin-right: 10px;
}

.cookie-banner-header h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

.cookie-text-content p {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    text-align: justify;
}

.cookie-text-content a {
    color: #4CAF50; /* Color verde para enlace de política de cookies */
    text-decoration: none;
}

.cookie-text-content a:hover,
.cookie-text-content a:focus {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between; /* Asegura que los botones estén separados */
    position: relative; /* Para posicionar las preferencias de cookies en relación a los botones */
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

#btnConfigurar {
    background-color: #e8f5e9;
    color: #4CAF50;
    font-weight: bold;
}

#btnAceptar,
#btnConfigurar:hover,
#btnConfigurar:focus {
    background-color: #4CAF50;
    color: white;
}

#btnRechazar {
    background-color: #ddd;
    color: #333;
}

#btnRechazar:hover,
#btnRechazar:focus {
    background-color: #c2c2c2;
}

.cookie-preferences {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: calc(100% - 40px); /* 20px padding on each side */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: 999; /* Just below the cookie consent banner */
    padding: 10px;
}

.show-preferences {
    max-height: 200px;
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente para oscurecer el sitio */
    z-index: 999; /* Asegura que la capa esté por encima de todo excepto el banner de cookies */
    display: none; /* Oculto por defecto */
}
