/**
 * Estilos del Componente Checklist
 * Archivo: geopol21-core/assets/css/checklist.css
 */

.geopol-checklist-widget {
    width: 100%;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 24px;
    border-radius: 12px;
    box-sizing: border-box;
}

.geopol-chk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.geopol-chk-main-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.geopol-chk-counter {
    font-size: 14px;
    font-weight: 700;
    color: #003366;
}

/* Barra de progreso */
.geopol-chk-progress-track {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.geopol-chk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #003366 100%);
    border-radius: 4px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rejilla responsive */
.geopol-chk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .geopol-chk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .geopol-chk-grid { grid-template-columns: 1fr; }
}

/* Estilos de la tarjeta */
.geopol-chk-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.geopol-chk-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.geopol-chk-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Checkbox personalizado */
.geopol-chk-custom-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.geopol-chk-custom-box svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

/* Estado SELECCIONADO (Checked) */
.geopol-chk-card:has(.geopol-chk-input:checked) {
    background: #f0f7ff;
    border-color: #2563eb;
}

.geopol-chk-input:checked + .geopol-chk-custom-box {
    background: #003366;
    border-color: #003366;
}

.geopol-chk-input:checked + .geopol-chk-custom-box svg {
    opacity: 1;
    transform: scale(1);
}

.geopol-chk-item-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
}

.geopol-chk-item-desc {
    margin: 0;
    font-size: 14px; 
    font-weight: 400;
    color: #000000;  
    line-height: 1.45;
}