/* ==========================================================================
   CLÍNICA DENTAL DÍEZ - COOKIES CSS
   ========================================================================== */

#cookiesBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(43, 43, 43, 0.95); /* Fondo ligeramente transparente */
    color: #fff;
    padding: 12px 15px;
    box-sizing: border-box;
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

#cookiesBanner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    padding: 5px 5px;
}

.cookies-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 5px 5px;
}

.cookies-btn-group button {
    font-size: 12px;
    padding: 6px 12px;
    height: auto;
    min-height: 0;
    line-height: 1.2;
    border-radius: 4px;
    margin: 0;
    width: auto;
    font-weight: normal;
    letter-spacing: normal;
}

/* Vista Escritorio (Centrado) */
@media (min-width: 768px) {
    #cookiesBanner {
        flex-direction: column;
        justify-content: center;
        padding: 15px 20px;
    }
    #cookiesBanner p {
        text-align: center;
        padding: 0 0 10px 0;
    }
    .cookies-btn-group {
        width: auto;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 0;
    }
}

/* Configuración de Cookies (Modal 2ª Capa) */
#cookiesSettingsModal {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999999;
    max-width: 400px;
    width: 90%;
}

#cookiesSettingsModal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #888;
    line-height: 1;
}

#cookiesSettingsModal h3 {
    margin-top: 0;
    font-size: 18px;
    padding-right: 25px;
}

#cookiesSettingsModal .cookie-section {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#cookiesSettingsModal .cookie-section.last {
    margin-bottom: 20px;
    border-bottom: none;
}

#cookiesSettingsModal label {
    display: flex;
    align-items: center;
    font-weight: bold;
}

#cookiesSettingsModal label input {
    margin-right: 10px;
}

#cookiesSettingsModal p {
    margin: 5px 0 0 25px;
    font-size: 12px;
    color: #666;
}

#cookiesSettingsModal .save-btn {
    background: #555;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.cookies-config-btn {
    text-decoration: underline;
}