/* Estilos para el Banner y Modal de Cookies - Adaptado para bdrive.ai */

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(24, 24, 24, 0.75); /* Fondo oscuro consistente con la marca */
    color: #FFFFFF; /* Texto claro */
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(237, 240, 245, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.banner-content {
    max-width: 1430px; /* Ancho del contenedor principal */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-text {
    flex: 1;
    min-width: 320px;
    font-family: 'Geologica', sans-serif;
}

.banner-text h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 1.125rem;
}

.banner-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    transition: all 0.3s ease;
    font-size: 14px;
}

.accept-all {
    background: #98D128; /* Verde menta */
    color: #FFFFFF;
}

.accept-all:hover {
    background: #7ba820;
}

.customize {
    background: transparent;
    color: #EDF0F5;
    border: 2px solid #6666FF; /* Azul/Indigo de la marca */
}

.customize:hover {
    background: #6666FF;
    color: #FFFFFF;
}

.reject {
    background: #CC066A; /* Rojo claro */
    color: #FFFFFF;
}

.reject:hover {
    background: #b1075c;
}

/* Modal de Configuración */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    font-family: 'Geologica', sans-serif;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    color: #181818;
    border-radius: 25px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h5 {
    font-weight: 600;
    font-size: 1.25rem;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.category-header h6 {
    font-weight: 500;
    font-size: 1rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #cbd5e0;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #98D128; 
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: rgb(243, 240, 240);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(25px);
}

.category-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-top: 10px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-button {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.save-prefs {
    background-color: #6666FF;
    color: white;
}

.save-prefs:hover {
    background-color: #5858d8;
}

.cancel-prefs {
    background-color: #E5E7EB;
    color: #1F2937;
}

.cancel-prefs:hover {
    background-color: #D1D5DB;
}


@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-actions {
        justify-content: center;
        width: 100%;
    }
}

.cookie-banner p {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.modal-header p {
    font-size: 0.875rem;
}

html.modal-open {
  overflow: hidden;
}