/* Resultado del diagnóstico: un mapa legible en pantalla y al guardar como PDF. */
.result { max-width: none; }
.map-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.map-heading > div { max-width: 690px; }
.result .map-heading h2 { margin: 10px 0 12px; font-size: clamp(36px, 4.4vw, 55px); line-height: 1.07; }
.result .map-heading p { margin: 0; color: #475569; font-size: 17px; }
.map-print { flex: none; margin-top: 7px; }
.map-context { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.map-context > span { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 9px 13px; border: 1px solid #c6e5ee; border-radius: 999px; color: #11445c; background: #edfafd; font-size: 13px; }
.map-context strong { color: #06788f; }
.project-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.map-card { position: relative; min-width: 0; min-height: 310px; padding: 24px 21px; border: 1px solid #d1e0e8; border-radius: 20px; background: #f7fafb; }
.map-card:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 34px; right: -18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #076d86; background: #d6f4f8; font-size: 16px; font-weight: 800; }
.map-scope { border-color: #a7dce8; background: #e9f8fb; }
.map-next { background: #edf3fb; }
.map-step { display: inline-block; margin-bottom: 30px; color: #087d93; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.map-card h3 { margin: 0 0 15px; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.12; }
.map-card p { margin: 0 0 10px; color: #475569; font-size: 14px; line-height: 1.5; }
.map-card > strong { display: block; color: #102b45; font-size: 15px; line-height: 1.45; }
.map-card .map-detail { margin-top: 20px; padding-top: 15px; border-top: 1px solid #c9dce6; overflow-wrap: anywhere; }
.map-next .map-next-note { margin-top: 20px; padding-top: 15px; border-top: 1px solid #c9dce6; }
.map-modules { display: grid; gap: 8px; margin-top: 14px; }
.result .map-module { display: flex; align-items: start; gap: 9px; margin-bottom: 0; padding: 10px; border: 1px solid #b8dfe8; border-radius: 11px; color: #12344b; background: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.map-module:has(input:checked) { border-color: #0790a6; background: #fff; }
.map-module input { width: 16px; height: 16px; flex: none; margin: 1px 0 0; accent-color: #087d93; }
.map-module span { min-width: 0; }
.map-modules .map-empty { margin: 0; padding: 12px; border: 1px dashed #8dbbc8; border-radius: 11px; color: #315b69; background: rgba(255,255,255,.7); font-size: 13px; }
.map-disclaimer { margin: 18px 0 0 !important; color: #53697a !important; font-size: 13px !important; }
.result-editor { margin-top: 43px; padding-top: 38px; border-top: 1px solid #d4e2e9; }
.result-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.result-editor-heading h3 { margin: 0 0 6px; font-size: clamp(23px, 2.5vw, 30px); }
.result-editor-heading p { margin: 0; color: #53697a; font-size: 14px; }
.result-editor-heading .button { flex: none; }
.result-editor .suggestion-note { margin: 0 0 18px; }
.result-editor textarea { min-height: 255px; }

@media (max-width: 760px) {
    .map-heading, .result-editor-heading { align-items: stretch; flex-direction: column; }
    .map-print, .result-editor-heading .button { align-self: start; }
    .project-map { grid-template-columns: 1fr; gap: 14px; }
    .map-card { min-height: 0; padding: 23px; }
    .map-card:not(:last-child)::after { top: auto; right: auto; left: 25px; bottom: -19px; content: "↓"; }
    .map-step { margin-bottom: 17px; }
}
@media (max-width: 600px) {
    .map-context { margin: 25px 0; }
    .map-print, .result-editor-heading .button { width: 100%; }
    .result-editor { margin-top: 32px; padding-top: 30px; }
}
@media print {
    @page { size: A4; margin: 16mm; }
    html, body { width: auto; background: white !important; color: #071a30; }
    .site-header, .result-editor, .privacy-note, .site-footer, .map-print, .skip-link { display: none !important; }
    main:has(#result:not([hidden])) :is(.intro, #wizard) { display: none !important; }
    main.shell { width: 100%; max-width: none; margin: 0; }
    .diagnostic-card { padding: 0; border: 0; box-shadow: none; }
    .result:not([hidden]) { display: block !important; }
    .result .map-heading h2 { font-size: 30px; }
    .result .map-heading p { font-size: 13px; }
    .map-context { margin: 17px 0 25px; }
    .project-map { gap: 8px; }
    .map-card { min-height: 0; padding: 13px; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .map-card h3 { font-size: 17px; }
    .map-card p, .map-card > strong, .map-module { font-size: 11px; }
    .map-step { margin-bottom: 14px; font-size: 9px; }
    .map-module { padding: 6px; }
    .map-module:has(input:not(:checked)) { display: none; }
    .map-module input { display: none; }
    .map-disclaimer { margin-top: 15px !important; font-size: 10px !important; }
}
