/* ==========================================================================
   REPORTE IFCS — 02 · Propuestas de rediseño
   Cada propuesta es una ficha (<details>) con filete fino y folio; las normas
   van como etiquetas sobrias. Al final, la plantilla del PDF.
   ========================================================================== */

.propuestas-section { color: var(--tinta); }
.propuestas-section .subtitle { font-size: var(--t-sm); line-height: 1.55; color: var(--tinta-2); max-width: 44ch; }

#propuestas-container { display: grid; gap: 10px; counter-reset: prop; }

/* --- Ficha (<details>/<summary>) ----------------------------------------- */
.propuesta-card {
    counter-increment: prop;
    background: var(--blanco);
    border: 1px solid var(--filete);
    border-radius: var(--r);
    transition: border-color var(--transition);
}
.propuesta-card:hover { border-color: var(--tinta-3); }
.propuesta-card[open] { border-color: var(--tinta); }

.propuesta-card summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    color: var(--tinta);
}
.propuesta-card summary::-webkit-details-marker { display: none; }
.propuesta-card summary::before {
    content: counter(prop, decimal-leading-zero);
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 3px;
    font: 500 .6875rem/1 var(--mono);
    letter-spacing: .06em;
    color: var(--tinta-3);
}
.propuesta-card summary::after {
    content: "+";
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--filete);
    border-radius: var(--r);
    font: 400 1rem/1 var(--mono);
    color: var(--tinta);
}
.propuesta-card[open] > summary::after { content: "−"; border-color: var(--tinta); }
.propuesta-card summary:hover::after { border-color: var(--tinta); }
.propuesta-card summary:focus-visible { outline: 2px solid var(--verde-tinta); outline-offset: -2px; border-radius: var(--r); }

.propuesta-card .propuesta-titulo-wrap { flex: 1; min-width: 0; display: grid; gap: 4px; }
.propuesta-card .propuesta-categoria {
    font: 500 .6875rem/1.2 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--verde-tinta);
}
.propuesta-card .propuesta-titulo { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }

.propuesta-card .propuesta-body {
    margin: 0 16px;
    padding: 14px 0 16px;
    border-top: 1px dashed var(--filete);
}
.propuesta-card .propuesta-sugerencia {
    max-width: 70ch;
    margin: 0 0 14px;
    font-size: .975rem;
    line-height: 1.6;
    color: var(--tinta);
}

/* --- Normas como etiquetas ------------------------------------------------ */
.propuesta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.propuesta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--tinta);
    border-radius: var(--r);
    background: transparent;
    color: var(--tinta);
    font: 500 .8125rem/1.2 var(--sans);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}
.propuesta-chip::after { content: "↗"; font-size: .75rem; color: var(--tinta-3); }
.propuesta-chip:hover,
.propuesta-chip:focus-visible { background: var(--tinta); color: var(--papel); }
.propuesta-chip:hover::after,
.propuesta-chip:focus-visible::after { color: var(--papel); }

/* --- Sin propuestas ------------------------------------------------------- */
.propuestas-empty {
    padding: 18px 20px;
    border: 1px dashed var(--filete);
    border-radius: var(--r);
    background: var(--blanco);
    color: var(--tinta-2);
    line-height: 1.5;
}

/* --- Normatividad referenciada ------------------------------------------- */
.normas-referencia { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--filete); }
.normas-referencia h3 {
    margin-bottom: 12px;
    font: 500 var(--t-xs)/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tinta-2);
}
#normas-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#normas-list li { font-size: var(--t-sm); line-height: 1.45; color: var(--tinta); }
#normas-list a { color: var(--verde-tinta); font-weight: 600; text-decoration: none; }
#normas-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
#normas-list .norma-meta { margin-left: 6px; color: var(--tinta-2); font-weight: 400; }

/* --- Nota de alcance ------------------------------------------------------ */
.propuestas-disclaimer {
    margin-top: 24px;
    padding: 14px 18px;
    border-left: 2px solid var(--tinta);
    background: var(--papel-2);
    font-size: var(--t-sm);
    line-height: 1.6;
    color: var(--tinta-2);
}

@media (max-width: 600px) {
    .propuesta-card summary { padding: 12px 14px; gap: 12px; }
    .propuesta-card .propuesta-body { margin: 0 14px; }
}

/* --- Impresión: todas expandidas ----------------------------------------- */
@media print {
    .propuesta-card { break-inside: avoid; page-break-inside: avoid; }
    .propuesta-card summary::after { display: none; }
    .propuesta-card .propuesta-body { display: block !important; }
}

/* ==========================================================================
   PDF EXPORT — propuestas agrupadas por categoría, sin acordeón
   ========================================================================== */

#reporte-pdf .pdf-propuestas-grupo { margin: 1rem 0 1.25rem; page-break-inside: avoid; }
#reporte-pdf .pdf-propuestas-grupo:first-child { margin-top: .5rem; }

#reporte-pdf .pdf-categoria-titulo {
    margin: 0 0 .55rem;
    padding-bottom: .25rem;
    border-bottom: 1.5px solid #17201B;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #17201B;
}

#reporte-pdf .pdf-propuesta-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin: 0;
    padding-left: 1.4rem;
    list-style: decimal;
}
#reporte-pdf .pdf-propuesta-item { padding: .15rem 0; page-break-inside: avoid; }
#reporte-pdf .pdf-propuesta-titulo { margin: 0 0 .3rem; font-size: .92rem; font-weight: 700; line-height: 1.3; color: #17201B; }
#reporte-pdf .pdf-propuesta-sugerencia { margin: 0 0 .45rem; font-size: .85rem; line-height: 1.55; color: #333; text-align: justify; }
#reporte-pdf .pdf-propuesta-sugerencia strong { font-weight: 700; color: #0B6A33; }
#reporte-pdf .pdf-propuesta-normas-titulo {
    margin: 0 0 .15rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #555;
}
#reporte-pdf .pdf-propuesta-normas-list { margin: 0; padding-left: 1rem; list-style: square; }
#reporte-pdf .pdf-propuesta-normas-list li { font-size: .78rem; line-height: 1.4; color: #555; }
