/* Banner Principal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 4px solid #007D7A;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
    display: none;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-text {
    background: transparent;
    color: #007D7A;
    border: none;
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    background: #ecfdf5;
}

.cookie-link {
    color: #007D7A;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-link:hover {
    color: #006969;
}

/* Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #6b7280;
}

.modal-body {
    padding: 1.5rem;
}

.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-title {
    font-weight: 600;
    color: #111;
}

.category-description {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #024248;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-disabled {
    background-color: #024248 !important;
    cursor: not-allowed;
}

.toggle-status {
    font-size: 0.8rem;
    color: #6b7280;
    margin-right: 0.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Responsivo */
@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
    }

    .cookie-banner-buttons {
        flex-direction: row;
        flex-shrink: 0;
    }

    .cookie-banner-text {
        flex: 1;
    }
}