:root {
    --cfcs-primary: #005ba6; /* Azul Comfamiliar */
    --cfcs-secondary: #a3cb38; /* Verde Comfamiliar */
    --cfcs-border: #dae1e7;
    --cfcs-text: #444;
}

/* CONTENEDOR PRINCIPAL - Forzamos expansión total */
.cfcs-simulator-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch; /* Fix para contenedores Elementor con flex centrado */
    background: #fff;
    margin: 0 !important;
    padding: 30px;
    border-radius: 15px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.cfcs-body { width: 100%; }

/* Grupos de campos */
.cfcs-group { 
    margin-bottom: 20px; 
    width: 100%; 
}

.cfcs-group label { 
    display: block; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: var(--cfcs-primary); 
    font-size: 0.95rem; 
}

/* Inputs y Selects */
.cfcs-input, 
.cfcs-select-wrapper select {
    width: 100% !important; /* Forzar ancho completo */
    display: block;
    padding: 12px 15px;
    border: 1px solid var(--cfcs-border);
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    height: auto;
}

.cfcs-input:focus {
    border-color: var(--cfcs-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 166, 0.1);
}

/* Input con signo pesos */
.cfcs-input-group {
    position: relative;
    width: 100%;
}
.cfcs-currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 10;
}
.cfcs-input-group input {
    padding-left: 30px !important;
}

/* TARJETAS DE CATEGORÍA (Diseño Horizontal) */
.cfcs-radios { 
    display: flex; 
    gap: 15px; 
    width: 100%;
}

.cfcs-radios label {
    flex: 1; /* Esto hace que se dividan el espacio equitativamente */
    margin: 0;
    cursor: pointer;
}
.cfcs-radios input { display: none; }

.cfcs-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border: 2px solid var(--cfcs-border);
    border-radius: 10px;
    background: #fff;
    color: #777;
    transition: all 0.2s;
    text-align: center;
}

.cfcs-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    stroke: #999;
}

/* Estados Activos */
.cfcs-radios input:checked + .cfcs-card-content {
    border-color: var(--cfcs-primary);
    background: #f0f7ff;
    color: var(--cfcs-primary);
}
.cfcs-radios input:checked + .cfcs-card-content .cfcs-icon {
    stroke: var(--cfcs-primary);
}

/* SLIDER */
.cfcs-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.cfcs-badge {
    background: var(--cfcs-secondary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}
.cfcs-range {
    width: 100% !important;
    -webkit-appearance: none;
    height: 6px;
    background: #e1e4e8;
    border-radius: 5px;
    outline: none;
    margin-top: 10px;
    display: block;
}
.cfcs-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--cfcs-secondary);
    border-radius: 50%;
    cursor: pointer;
}

/* BOTÓN */
.cfcs-btn {
    width: 100% !important;
    background: var(--cfcs-secondary);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
}
.cfcs-btn:hover { background: #a3cb38; }

/* RESULTADOS */
.cfcs-result {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: #f4f9ff;
    border-radius: 10px;
    border: 1px solid #dcebf9;
}
.cfcs-result.hidden { display: none; }

.cfcs-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cfcs-primary);
    margin: 10px 0;
}