
/* DATASIX Cookie Banner Styles */
.datasix-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 999999;
    border-top: 4px solid #4a9fd4;
    font-family: Arial, Helvetica, sans-serif;
    display: none; /* Oculto por defecto, JS lo mostrará si es necesario */
}

.datasix-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.datasix-cookie-logo {
    flex-shrink: 0;
}

.datasix-cookie-text {
    flex: 1;
    min-width: 200px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.datasix-cookie-text strong {
    color: #2c2c2c;
    display: block;
    margin-bottom: 5px;
}

.datasix-cookie-link {
    color: #4a9fd4;
    text-decoration: underline;
}

.datasix-cookie-link:hover {
    color: #6bb8e8;
}

.datasix-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.datasix-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.datasix-btn-primary {
    background: #4a9fd4;
    color: #ffffff;
}

.datasix-btn-primary:hover {
    background: #3a8fc4;
}

.datasix-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.datasix-btn-secondary:hover {
    background: #e5e5e5;
}

/* Modal Styles */
.datasix-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.datasix-modal-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.datasix-modal-header {
    padding: 20px;
    border-bottom: 2px solid #4a9fd4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.datasix-modal-header h2 {
    margin: 0;
    color: #2c2c2c;
    font-size: 24px;
}

.datasix-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.datasix-close:hover {
    color: #4a9fd4;
}

.datasix-modal-body {
    padding: 20px;
}

.datasix-cookie-category {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #4a9fd4;
}

.datasix-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.datasix-category-header h3 {
    margin: 0;
    color: #2c2c2c;
    font-size: 16px;
}

.datasix-required {
    background: #4a9fd4;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Toggle Switch */
.datasix-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.datasix-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.datasix-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.datasix-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.datasix-toggle input:checked + .datasix-slider {
    background-color: #4a9fd4;
}

.datasix-toggle input:checked + .datasix-slider:before {
    transform: translateX(26px);
}

.datasix-cookie-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
}

.datasix-cookie-list li {
    margin-bottom: 5px;
}

.datasix-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .datasix-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .datasix-cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .datasix-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.datasix-cookie-reopen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4a9fd4;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999998;
    transition: transform 0.3s ease;
    display: none;
}
.datasix-cookie-reopen-btn:hover {
    transform: scale(1.1);
    background: #3a8fc4;
}


/* Integración local y accesibilidad: el estado visible se controla con hidden. */
.datasix-cookie-banner { display: block; max-height: 85vh; overflow-y: auto; }
.datasix-cookie-reopen-btn { display: block; }
.datasix-cookie-banner[hidden], .datasix-cookie-modal[hidden], .datasix-cookie-reopen-btn[hidden] { display: none !important; }
.datasix-cookie-modal, .datasix-cookie-modal * { box-sizing: border-box; }
.datasix-cookie-modal { font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; }
.datasix-cookie-logo img { width: 190px; height: auto; }
.datasix-cookie-text p { margin: 0; }
.datasix-cookie-modal .datasix-modal-header h2 { line-height: 1.2; }
.datasix-cookie-modal .datasix-category-header h3 { line-height: 1.4; }
.datasix-toggle { flex-shrink: 0; margin: 0; }
.datasix-toggle input:focus-visible + .datasix-slider { outline: 3px solid #155c83; outline-offset: 4px; }
.datasix-cookie-banner button, .datasix-cookie-modal button { font-family: Arial, Helvetica, sans-serif; }
@media (max-width: 768px) {
 .datasix-cookie-banner { padding: 15px; }
 .datasix-cookie-content { gap: 12px; }
 .datasix-cookie-logo img { width: 150px; }
 .datasix-cookie-buttons { gap: 8px; }
 .datasix-btn { padding: 10px 14px; }
 .datasix-cookie-modal { padding: 12px; }
 .datasix-modal-header h2 { font-size: 21px; }
}
