/* Fondo oscuro */
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    display: none;
}

/* Banner principal */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    background: #fff;
    color: #333;
    padding: 35px 40px;
    border-radius: 14px 14px 0 0;
    z-index: 9999;
    display: none;
    font-family: system-ui, Arial;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15);
}

#cookie-banner p {
    margin: 0 0 20px 0;
    font-size: 17px;
    line-height: 1.5;
}

/* Botones */
.cookie-btn {
    padding: 12px 22px;
    border: 2px solid transparent;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

#accept-cookies {
    background: #1ecb3a;
    color: #fff;
    border-color: #1ecb3a;
}

#accept-cookies:hover {
    background: #18a62f;
}

#reject-cookies {
    background: #fff;
    color: #1a73e8;
    border-color: #1a73e8;
}

#reject-cookies:hover {
    background: #e8f0fe;
}

#configure-cookies {
    background: #fff;
    color: #333;
    border-color: #ccc;
}

#configure-cookies:hover {
    background: #f2f2f2;
}

/* Panel de configuración */
#cookie-settings {
    position: fixed;
    background: #fff;
    color: #222;
    width: 95%;
    max-width: 480px;
    padding: 30px;
    border-radius: 12px;
    z-index: 10000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    font-family: system-ui, Arial;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
}

#cookie-settings h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
}

/* Switches tipo Cookiebot */
#cookie-settings label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

#cookie-settings input[type="checkbox"] {
    width: 42px;
    height: 22px;
    appearance: none;
    background: #ccc;
    outline: none;
    border-radius: 15px;
    position: relative;
    transition: 0.2s;
}

#cookie-settings input[type="checkbox"]:checked {
    background: #1a73e8;
}

#cookie-settings input[type="checkbox"]:after {
    content: "";
    width: 18px;
    height: 18px;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    transition: 0.2s;
}

#cookie-settings input[type="checkbox"]:checked:after {
    left: 21px;
}

/* Botón guardar */
.save-settings {
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 16px;
    background: #1ecb3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}

/* Botón flotante solo icono */
#cookie-floating-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #1a1a1aff;
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transition: 0.2s ease;
}

#cookie-floating-btn:hover {
    background: #353535ff;
    transform: scale(1.07);
}
