/* =============================================
   Estilos compartidos – Cuestionarios FAVDC
   CDD · EMIF · Combinados
   ============================================= */

/* Contenedor principal */
.cuest-wrapper {
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #1a1a1a;
}
.cuest-wrapper-cdd       { max-width: 1300px; }
.cuest-wrapper-emif      { max-width: 1300px; }
.cuest-wrapper-combinados { max-width: 1000px; }

.centro{
  text-align: center;
}
.espacio{
    margin-left: 20px;
}
.closebtn {
  margin-left: 15px;
  color: black;
  font-weight: bold;
  float: left;
  font-size: 30px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: red;
}
/* Cabecera */
.cuest-cabecera {
    background: #166534;
    color: #fff;
    padding: 24px 28px;
    border-radius: 10px 10px 0 0;
}
.cuest-cabecera h2 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    font-weight: 700;
}
.cuest-cabecera p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.85;
}

/* Instrucciones */
.cuest-instrucciones {
    background: #f0fdf4;
    border-left: 4px solid #166534;
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #14532d;
}

/* Errores */
.cuest-errores {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    margin: 16px 0 0;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    color: #991b1b;
}
.cuest-errores ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

/* Formulario */
.cuest-form {
    padding: 20px 0;
}

/* Bloque de pregunta */
.cuest-pregunta {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafafa;
}
.cuest-pregunta p {
    margin: 0 0 10px 0;
    font-size: 0.93rem;
    line-height: 1.5;
}

/* Número de pregunta */
.cuest-num {
    display: inline-block;
    background: #166534;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 8px;
}

/* Etiquetas de extremos (CDD) */
.cuest-extremos {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}
.cuest-extremos span {
    max-width: 45%;
    font-style: italic;
}
.cuest-extremos span:last-child {
    text-align: right;
}

/* Opciones de respuesta */
.cuest-opciones {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cuest-opcion-label {
    flex: 1;
    min-width: 34px;
    text-align: center;
    cursor: pointer;
}
.cuest-opcion-label input[type="radio"] {
    display: none;
}
.cuest-opcion-span {
    display: block;
    padding: 8px 4px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.3;
    transition: all 0.15s;
}
.cuest-opcion-span.seleccionado {
    background: #166534;
    color: #fff;
    border-color: #166534;
    font-weight: 700;
}

/* Botones */
.cuest-botones {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.cuest-btn-calcular {
    flex: 1;
    padding: 13px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
}
.cuest-btn-calcular:hover {
    background: #b91c1c;
}
.cuest-btn-siguiente {
    padding: 9px 20px;
    background: #166534;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
}
.cuest-btn-siguiente:hover {
    background: #14532d;
}
.cuest-btn-reset {
    padding: 13px 22px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}
.cuest-btn-reset:hover {
    background: #e2e8f0;
}

/* Bloque de resultados */
.cuest-resultado {
    margin-top: 8px;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
}
.cuest-resultado h3 {
    margin: 0 0 18px 0;
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 700;
}

/* Tabla de resultados */
.cuest-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.cuest-tabla thead tr {
    background: #f8fafc;
}
.cuest-tabla th {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
}
.cuest-tabla th.centrado,
.cuest-tabla td.centrado {
    text-align: center;
}
.cuest-tabla td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.cuest-tabla tr.total {
    background: #f8fafc;
}
.cuest-tabla td.items {
    color: #64748b;
    font-size: 0.82rem;
}
.cuest-tabla td.maximo {
    color: #94a3b8;
}

/* Categoría */
.cuest-categoria {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cuest-categoria-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cuest-categoria span {
    font-size: 0.82rem;
    color: #64748b;
}
.cuest-categoria strong {
    display: block;
    font-size: 1rem;
}

/* Escala de referencia */
.cuest-escala {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.7;
}
.cuest-escala strong {
    color: #475569;
}

/* Referencia legal */
.cuest-legal {
    margin-top: 24px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}
.cuest-legal strong {
    color: #475569;
}

/* Input numérico */
.cuest-input-num {
    width: 70px;
    padding: 8px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}
.cuest-input-num:focus {
    outline: none;
    border-color: #166534;
}

/* Resultado grande (combinados) */
.cuest-resultado-valor {
    font-size: 2rem;
    font-weight: 700;
    color: #166534;
}
/* =============================================
   Estilo minimalista – Valores Combinados
   ============================================= */

.cuest-wrapper-combinados {
    max-width: 1300px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    padding: 10px 0;
}

.cuest-wrapper-combinados h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

/* Ocultar cabecera verde y bloque de instrucciones */
.cuest-wrapper-combinados .cuest-cabecera,
.cuest-wrapper-combinados .cuest-instrucciones {
    display: none;
}

.cuest-wrapper-combinados .cuest-form {
    padding: 0;
}

.cuest-wrapper-combinados .cuest-pregunta {
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cuest-wrapper-combinados .cuest-pregunta label {
    font-size: 0.95rem;
    font-weight: 400;
    color: #1a1a1a;
}

.cuest-wrapper-combinados .cuest-input-num {
    width: 60px;
    padding: 6px 8px;
    border: 1.5px solid #adb5bd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    background: #fff;
}

.cuest-wrapper-combinados .cuest-btn-siguiente {
    padding: 10px 22px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.cuest-wrapper-combinados .cuest-btn-calcular {
    padding: 10px 22px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    flex: unset;
}

.cuest-wrapper-combinados .cuest-btn-reset {
    display: none;
}

.cuest-wrapper-combinados .cuest-botones {
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

.cuest-wrapper-combinados .cuest-resultado {
    border: none !important;
    padding: 0;
    margin-top: 0;
}

.cuest-wrapper-combinados .cuest-resultado h3 {
    display: none;
}

.cuest-wrapper-combinados .cuest-resultado-valor {
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
}

.cuest-wrapper-combinados .cuest-legal {
    margin-top: 32px;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: #1a3a8a;
    font-weight: 700;
    border-radius: 0;
}

/*Estilo Pestañas calculadoras*/
.pes{
    overflow: hidden; border: 1px solid #ccc; background-color: #737373;
}
.pesenlace{
    background-color: inherit;display: inline-block; border: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; font-size: 17px;font-family:"Lucida Sans Unicode";
}
button.pesenlace:hover{
    background-color: #ddd;
}
.pescontenido{
    display: none; padding: 6px 12px; border: 1px solid #ccc; border-top: none;
}

/*Estilo espacios*/

/*Estilo bla extendido*/
 @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');

    .bla-wrap * { box-sizing: border-box; }

    .bla-wrap {
        font-family: 'DM Sans', sans-serif;
        max-width: 1300px;
        margin: 0 auto;
        padding: 0 16px 60px;
        color: #1a2332;
        --blue:    #059669;
        --blue-lt: #ECFDF5;
        --green:   #059669;
        --green-lt:#ECFDF5;
        --amber:   #D97706;
        --amber-lt:#FFFBEB;
        --red:     #DC2626;
        --red-lt:  #FEF2F2;
        --gray:    #64748B;
        --border:  #E2E8F0;
        --surface: #F8FAFC;
    }

    /* ── CABECERA ─────────────────────────────────── */
    .bla-header {
        background: linear-gradient(135deg, #064e35 0%, #059669 100%);
        border-radius: 16px;
        padding: 36px 40px;
        margin-bottom: 32px;
        color: #fff;
        position: relative;
        overflow: hidden;
    }
    .bla-header::before {
        content:'';
        position:absolute; inset:0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    .bla-header h1 {
        font-family: 'DM Serif Display', serif;
        font-size: 28px;
        font-weight: 400;
        margin: 0 0 8px;
        position: relative;
    }
    .bla-header p {
        margin: 0;
        opacity: .8;
        font-size: 14px;
        font-weight: 300;
        position: relative;
    }

    /* ── PROGRESO ─────────────────────────────────── */
    .bla-progress-bar {
        background: var(--border);
        border-radius: 99px;
        height: 6px;
        margin-bottom: 8px;
        overflow: hidden;
    }
    .bla-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #059669, #34d399);
        border-radius: 99px;
        transition: width .4s ease;
        width: 0%;
    }
    .bla-progress-text {
        text-align: right;
        font-size: 12px;
        color: var(--gray);
        margin-bottom: 24px;
    }

    /* ── SECCIONES ────────────────────────────────── */
    .bla-section {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        margin-bottom: 20px;
        overflow: hidden;
        transition: box-shadow .2s;
    }
    .bla-section:hover { box-shadow: 0 4px 24px rgba(5,150,105,.08); }

    .bla-section-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 24px;
        cursor: pointer;
        user-select: none;
        background: var(--surface);
        border-bottom: 1px solid transparent;
        transition: background .2s, border-color .2s;
    }
    .bla-section-header:hover { background: #f1f5f9; }
    .bla-section.open .bla-section-header {
        border-bottom-color: var(--border);
        background: var(--green-lt);
    }

    .bla-section-icon {
        width: 38px; height: 38px;
        border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }
    .bla-section-title {
        flex: 1;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: .02em;
    }
    .bla-section-badge {
        font-size: 11px;
        font-weight: 600;
        background: #e2e8f0;
        color: var(--gray);
        border-radius: 99px;
        padding: 3px 10px;
        transition: background .2s, color .2s;
    }
    .bla-section.has-values .bla-section-badge {
        background: var(--blue);
        color: #fff;
    }
    .bla-section-chevron {
        color: var(--gray);
        transition: transform .3s;
        font-size: 12px;
    }
    .bla-section.open .bla-section-chevron { transform: rotate(180deg); }

    .bla-section-body {
        display: none;
        padding: 20px 24px;
    }
    .bla-section.open .bla-section-body { display: block; }

    /* ── SELECTOR TIPO DE VIDA ────────────────────── */
    .bla-tipo-vida {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 20px 24px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .bla-tipo-vida-label {
        font-size: 14px;
        font-weight: 600;
        color: #334155;
        flex-shrink: 0;
    }
    .bla-tipo-vida-options {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .bla-tipo-radio { position: relative; }
    .bla-tipo-radio input[type="radio"] {
        position: absolute;
        opacity: 0; width: 0; height: 0;
    }
    .bla-tipo-radio label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 9px;
        border: 2px solid var(--border);
        background: var(--surface);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all .2s;
        color: #475569;
    }
    .bla-tipo-radio label:hover {
        border-color: var(--green);
        color: var(--green);
    }
    .bla-tipo-radio input:checked + label {
        border-color: var(--green);
        background: var(--green);
        color: #fff;
    }

    /* ── ACTIVIDAD COLAPSABLE ─────────────────────── */
    .bla-activity {
        padding: 0;
        border-bottom: 1px solid var(--border);
    }
    .bla-activity:last-child { border-bottom: none; }

    .bla-activity-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 0;
        cursor: pointer;
        user-select: none;
    }
    .bla-activity-header:hover .bla-activity-name { color: var(--green); }

    .bla-activity-name {
        flex: 1;
        font-size: 14px;
        font-weight: 500;
        color: #334155;
        transition: color .15s;
        margin-bottom: 0;
    }
    .bla-activity-status {
        font-size: 11px;
        font-weight: 600;
        padding: 3px 9px;
        border-radius: 99px;
        background: var(--border);
        color: var(--gray);
        white-space: nowrap;
        transition: background .2s, color .2s;
    }
    .bla-activity.valorada .bla-activity-status {
        background: var(--green);
        color: #fff;
    }
    .bla-activity-chevron {
        color: var(--gray);
        font-size: 11px;
        transition: transform .25s;
        flex-shrink: 0;
    }
    .bla-activity.open .bla-activity-chevron { transform: rotate(180deg); }

    .bla-options {
        display: none;
        flex-direction: column;
        gap: 6px;
        padding: 0 0 14px 0;
    }
    .bla-activity.open .bla-options { display: flex; }

    .bla-option-group {
        background: var(--surface);
        border: 1.5px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
        transition: border-color .2s, background .2s;
    }
    .bla-option-group:has(input:checked) {
        border-color: var(--blue);
        background: var(--blue-lt);
    }

    .bla-option-group-label {
        font-size: 12px;
        font-weight: 600;
        color: var(--gray);
        padding: 8px 14px 4px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .bla-radio-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 14px 10px;
    }

    .bla-radio-option { position: relative; }

    .bla-radio-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0; height: 0;
    }

    .bla-radio-option label {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 7px;
        border: 1.5px solid var(--border);
        background: #fff;
        font-size: 12.5px;
        font-weight: 500;
        cursor: pointer;
        transition: all .15s;
        white-space: nowrap;
        color: #475569;
    }

    .bla-radio-option input:checked + label {
        border-color: var(--blue);
        background: var(--blue);
        color: #fff;
    }
    .bla-radio-option label:hover {
        border-color: var(--blue);
        color: var(--blue);
    }
    .bla-radio-option input:checked + label:hover { color: #fff; }

    /* colores semánticos por categoría */
    .bla-og-apoyo:has(input:checked)   { border-color: #7c3aed; background: #f5f3ff; }
    .bla-og-apoyo input:checked + label  { border-color: #7c3aed; background: #7c3aed; }
    .bla-og-entorno:has(input:checked)  { border-color: var(--green); background: var(--green-lt); }
    .bla-og-entorno input:checked + label { border-color: var(--green); background: var(--green); }
    .bla-og-disp:has(input:checked)    { border-color: var(--amber); background: var(--amber-lt); }
    .bla-og-disp input:checked + label  { border-color: var(--amber); background: var(--amber); }
    .bla-og-dific:has(input:checked)   { border-color: var(--red); background: var(--red-lt); }
    .bla-og-dific input:checked + label { border-color: var(--red); background: var(--red); }
    .bla-og-nd:has(input:checked)      { border-color: #94a3b8; background: #f8fafc; }
    .bla-og-nd input:checked + label   { border-color: #94a3b8; background: #94a3b8; }

    /* ── RESULTADO ────────────────────────────────── */
    .bla-result-area {
        background: linear-gradient(135deg, #064e35, #059669);
        color: #fff;
        border-radius: 14px;
        padding: 30px 32px;
        margin-top: 32px;
        display: none;
    }
    .bla-result-area.visible { display: block; }
    .bla-result-area h2 {
        font-family: 'DM Serif Display', serif;
        font-size: 22px;
        font-weight: 400;
        margin: 0 0 20px;
    }
    .bla-result-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }
    .bla-result-card {
        background: rgba(255,255,255,.12);
        border-radius: 10px;
        padding: 14px 16px;
    }
    .bla-result-card-name {
        font-size: 11px;
        font-weight: 600;
        opacity: .7;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 6px;
    }
    .bla-result-card-val {
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
    }
    .bla-result-total {
        background: rgba(255,255,255,.2);
        border-radius: 10px;
        padding: 18px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .bla-result-total-label { font-size: 16px; font-weight: 500; }
    .bla-result-total-val   { font-size: 42px; font-weight: 700; line-height: 1; }

    .bla-detail-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        font-size: 13px;
        background: rgba(255,255,255,.08);
        border-radius: 10px;
        overflow: hidden;
    }
    .bla-detail-table th {
        background: rgba(255,255,255,.15);
        padding: 10px 14px;
        text-align: left;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }
    .bla-detail-table td {
        padding: 9px 14px;
        border-top: 1px solid rgba(255,255,255,.08);
        vertical-align: middle;
    }
    .bla-detail-table tr:hover td { background: rgba(255,255,255,.06); }
    .bla-val-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px; height: 26px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 13px;
        background: rgba(255,255,255,.2);
    }

    /* ── BOTONES ──────────────────────────────────── */
    .bla-btn-row {
        display: flex; flex-wrap: wrap; gap: 12px;
        margin-top: 24px;
    }
    .bla-btn {
        padding: 12px 28px;
        border-radius: 9px;
        border: none;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all .2s;
        display: flex; align-items: center; gap: 8px;
    }
    .bla-btn-primary {
        background: var(--blue);
        color: #fff;
    }
    .bla-btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
    .bla-btn-secondary {
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1.5px solid rgba(255,255,255,.3);
    }
    .bla-btn-secondary:hover { background: rgba(255,255,255,.25); }
    .bla-btn-outline {
        background: #fff;
        color: var(--green);
        border: 1.5px solid var(--green);
    }
    .bla-btn-outline:hover { background: var(--green-lt); }

    .bla-calc-btn {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #064e35, #059669);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 24px;
        transition: all .2s;
        display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .bla-calc-btn:hover {
        opacity: .92;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(5,150,105,.3);
    }

    /* ── RESET ────────────────────────────────────── */
    .bla-reset-btn {
        margin-top: 16px;
        background: transparent;
        border: 1.5px solid var(--border);
        color: var(--gray);
        border-radius: 8px;
        padding: 9px 20px;
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all .2s;
    }
    .bla-reset-btn:hover { border-color: var(--red); color: var(--red); }

    @media (max-width: 600px) {
        .bla-header { padding: 24px 20px; }
        .bla-section-body { padding: 16px; }
        .bla-radio-row { gap: 5px; }
        .bla-radio-option label { font-size: 11.5px; padding: 5px 9px; }
    }
.bla-group-header td {font-weight: 700; padding: 8px 12px; }
.bla-group-subtotal td {font-size: 13px; padding: 6px 12px; }
.bla-group-bla td {font-size: 13px; padding: 6px 12px; }

    /* Estilos para las tablas dominio 7 */
        details.movilidad-section {
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: 6px;
            overflow: hidden;
        }
        
        details.movilidad-section[open] {
            border-color: #B2DFDB;
            background: #f9f9f9;
        }
        
        summary {
            background: linear-gradient(135deg, #B2DFDB 0%, #764ba2 100%);
            color: white;
            padding: 15px 20px;
            cursor: pointer;
            font-weight: 600;
            font-size: 16px;
            user-select: none;
            transition: all 0.3s;
        }
        
        summary:hover {
            opacity: 0.9;
        }
        
        details[open] > summary {
            border-bottom: 2px solid #B2DFDB;
        }
        
        .tabla-movilidad {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
        }
        
        .tabla-movilidad thead {
            background-color: #f0f0f0;
            border-bottom: 2px solid #B2DFDB;
        }
        
        .tabla-movilidad th {
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-right: 1px solid #ddd;
        }
        
        .tabla-movilidad th:last-child {
            border-right: none;
        }
        
        .tabla-movilidad td {
            padding: 12px;
            border-bottom: 1px solid #e0e0e0;
            border-right: 1px solid #e0e0e0;
        }
        
        .tabla-movilidad td:last-child {
            border-right: none;
        }
        
        .tabla-movilidad tbody tr:hover {
            background-color: #fafafa;
        }
        
        .tabla-movilidad tr.subtitulo td {
            background-color: #e8eaf6;
            font-weight: 600;
            color: #764ba2;
            padding: 10px 12px;
            border-bottom: 1px solid #d1c4e9;
        }
        
        .tabla-movilidad input[type="number"] {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .tabla-movilidad input[type="number"]:focus {
            outline: none;
            border-color: #B2DFDB;
            box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
            background-color: #f8f9ff;
        }
        
        .tabla-movilidad input[type="number"]::placeholder {
            color: #bbb;
        }
        
        .tabla-movilidad small {
            display: block;
            color: #666;
            font-size: 12px;
            margin-top: 3px;
        }
        
        .anquilosis-group {
            padding: 15px;
            background: #fff3cd;
            border-top: 1px solid #ffc107;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .anquilosis-group label {
            margin: 0;
            display: flex;
            align-items: center;
            cursor: pointer;
            font-weight: 600;
            color: #856404;
            gap: 8px;
        }
        
        .anquilosis-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
            /* Resultados */
        .results-section {
            margin-top: 40px;
            padding: 30px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 10px;
        }
        
        .results-title {
            font-size: 22px;
            font-weight: bold;
            color: #333;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .result-card {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border-top: 4px solid #81C784;
        }
        
        .result-card.warning {
            border-top-color: #ff9800;
        }
        
        .result-card.danger {
            border-top-color: #f44336;
        }
        
        .result-card.success {
            border-top-color: #4caf50;
        }
        
        .result-card-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
        }
        
        .result-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            font-size: 14px;
        }
        
        .result-row:last-child {
            border-bottom: none;
        }
        
        .result-label {
            color: #666;
            font-weight: 500;
        }
        
        .result-value {
            font-weight: bold;
            color: #333;
        }
        
        .result-value.highlight {
            color: #B2DFDB;
            font-size: 16px;
        }
        
        .total-deficiency {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
            border: 3px solid #81C784;
        }
        
        .total-deficiency-label {
            font-size: 18px;
            color: #666;
            margin-bottom: 10px;
        }
        
        .total-deficiency-value {
            font-size: 48px;
            font-weight: bold;
            color: #B2DFDB;
        }
        
        .anquilosis-badge {
            display: inline-block;
            background: #ff9800;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-top: 10px;
        }