/* Estilos del banner de cookies */
#cookie-banner {
    position: fixed;
    bottom: 50px;
    /* Despegado 50px del final */
    left: 30px;
    transform: none;
    width: 30%;
    min-width: 380px;
    /* Ajustado a la izquierda con ancho del 30% */
    background-color: #F7F7FF;
    /* Fondo solicitado */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    /* Sombra mejorada para globo */
    padding: 30px;
    display: none;
    z-index: 9999;
    border-top: 4px solid #4A6784;
    /* Movitel Corporate Blue */
    border-radius: 8px;
    /* Bordes suaves de globo */
}

#cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.cookie-text {
    font-size: 18px;
    /* Tamaño normal de la página */
    line-height: 1.5;
    color: #363535;
}

.cookie-text h3 {
    font-size: 26px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #4A6784;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

/* Botones con IGUAL prominencia (requisito AEPD) */
.btn-cookie {
    padding: 12px 24px;
    font-size: 18px;
    /* Aumentado para leerse bien */
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}

/* Botón aceptar */
.btn-accept {
    background-color: #A52029;
    /* Movitel Corporate Red */
    color: #fff;
}

.btn-accept:hover {
    background-color: #4A6784;
    /* Hover Blue */
}

/* Botón rechazar */
.btn-reject {
    background-color: #4a4a4a;
    color: #fff;
}

.btn-reject:hover {
    background-color: #363535;
}

/* Botón configurar */
.btn-config {
    background-color: transparent;
    color: #4A6784;
    border: 2px solid #4A6784;
}

.btn-config:hover {
    background-color: rgba(74, 103, 132, 0.1);
}

.cookie-link {
    color: #A52029;
    text-decoration: underline;
    font-weight: bold;
}

/* Ajustes responsivos para mantener usabilidad */
@media (max-width: 991px) {
    #cookie-banner {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 50px;
    }
}

@media (max-width: 767px) {
    #cookie-banner {
        width: 95%;
        bottom: 20px;
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn-cookie {
        width: 100%;
    }
}

/* Panel de configuración */
#cookie-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    color: #363535;
}

#cookie-settings h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#cookie-settings.show {
    display: block;
}

.settings-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.settings-overlay.show {
    display: block;
}

.cookie-category {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
}
