/* Estilos del CMP */
        #cmp-popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            padding: 20px;
            box-sizing: border-box;
        }

        #cmp-popup.cmp-popup-visible {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cmp-content {
            background: #fff;
            padding: 30px;
            border-radius: 12px;
            max-width: 750px;
            width: 100%;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            line-height: 16px;
        }
        
        #cmp-popup .title-cmp { font-size: 20px; font-weight: bold; margin-top: 0; }
        #cmp-popup .txt-cmp { font-size: 12px; color: #444; margin-bottom: 20px; }

        .cmp-option-group {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }

        .cmp-option-text {
            flex-grow: 1;
            margin-right: 15px;
        }

        .cmp-option-text strong {
            font-size: 1.1em;
            display: block;
            margin-bottom: 3px;
        }

        .cmp-option-text .description {
            font-size: 0.85em;
            color: #666;
            margin: 0;
        }

        /* Estilos del Toggle Switch */
        .cmp-toggle-switch input[type="checkbox"] {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .cmp-slider {
            position: relative;
            cursor: pointer;
            display: block;
            width: 50px;
            height: 28px;
            background-color: #ccc;
            transition: .4s;
            border-radius: 28px;
            flex-shrink: 0;
        }

        .cmp-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        /* Cuando el checkbox está CHECKEADO (ACTIVADO) */
        .cmp-toggle-switch input:checked + .cmp-slider {
            background-color: #006039; /* Verde Oscuro */
        }

        /* Mover el círculo a la derecha cuando está activado */
        .cmp-toggle-switch input:checked + .cmp-slider:before {
            transform: translateX(22px);
        }

        /* Estilo para opción DESHABILITADA (Necesarias): Verde y Activa, pero bloqueada */
        .cmp-option-group input:disabled + .cmp-slider {
            background-color: #006039 !important; /* Verde forzado */
            cursor: not-allowed;
            transform: translateX(0); 
        }

        .cmp-option-group input:disabled + .cmp-slider:before {
            transform: translateX(22px); /* Posición ON forzada */
            opacity: 1;
        }

        /* Estilos de Botones */
        .cmp-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
        }

        #open-cmp-settings { border-radius: 0px; position: fixed; bottom: 0px; right: 0px; z-index: 999; padding: 4px 8px; font-size: 12px; margin: 0px; }

        .btn {
            padding: 8px 14px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 700;
            transition: background-color 0.2s;
            flex-grow: 1;
            max-width: 180px;
            font-size: 10px;
        }

        .btn-primary {
            background-color: #006039;
            color: white;
        }

        .btn-primary:hover {
            background-color: #127749;
        }

        .btn-secondary {
            background-color: #333;
            color: white;
        }

        .btn-secondary:hover {
            background-color: #1a1a1a;
        }
        
        /* Responsividad */
        @media (max-width: 550px) {
            #cmp-popup .txt-cmp {
                margin-bottom: 10px;
            }
            #cmp-popup .title-cmp {
                font-size: 16px;
                margin-bottom: 0px;
            }
            #cmp-popup .txt-cmp {
                font-size: 10px;
            }
            #open-cmp-settings { width: unset; }
                .cmp-option-text strong {
                font-size: 0.7em;
            }
            .cmp-option-group {
                margin-bottom: 5px;
            }
            .cmp-option-text .description {
                font-size: 0.55em;
                color: #666;
                margin: 0;
            }
            .cmp-content {
                max-width: 95%;
                padding: 20px 15px;
            }
            .cmp-actions {
                flex-direction: column;
                align-items: center;
                gap: 5px;
            }
            .btn {
                width: 100%;
                max-width: none;
                font-size: 12px;
            }
        }

        /* --- NUEVOS ESTILOS PARA EL ACORDEÓN --- */

        .cmp-accordion-header {
            cursor: pointer; /* Indica que es clickeable */
            margin-bottom: 0px !important; /* Elimina el margen del header para pegarlo al contenido */
            border-bottom: none !important;
        }

        .cmp-accordion-header .cmp-toggle-icon {
            font-size: 0.8em;
            margin-left: 10px;
            transition: transform 0.2s;
            display: inline-block;
        }

        .cmp-accordion-content {
            max-height: 0; /* Por defecto colapsado */
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            padding: 0 10px;
            border-bottom: 1px solid #eee;
        }

        .cmp-accordion-content.open {
            max-height: 300px; /* Suficiente altura para el contenido, ajústala si es necesario */
            padding: 10px;
        }

        .cmp-sub-option {
            padding: 8px 0;
            font-size: 0.9em;
        }

        .cmp-sub-option strong {
            font-size: 1em;
            display: block;
            margin-bottom: 2px;
        }

        .cmp-sub-option .description {
            font-size: 0.8em;
            color: #777;
            margin: 0;
            padding-bottom: 5px;
        }

        .cmp-accordion-header.active .cmp-toggle-icon {
            transform: rotate(180deg); /* Gira el icono de la flecha cuando está abierto */
        }

        .cmp-option-group:last-child {
            border-bottom: 1px solid #eee; /* Asegura que la última opción también tenga línea divisoria si el acordeón no está abierto */
        }