/* Herramientas en castellano (Ruta al mercado, Comprobador de textos, Tarifas) y, de momento, las páginas de pago del borrador. Se apoya en /style.css. */

[hidden] { display: none !important; }

.draft-bar { background: #fef9e7; color: #7a5d00; border-bottom: 1px solid #f3e3a1; font-size: 14px; text-align: center; padding: 8px 16px; }
.draft-bar strong { color: #1a2332; }
.crumb { display: inline-block; color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 8px; text-decoration: none; }
.crumb:hover { color: #ffffff; }
.page-header.left { text-align: left; padding: 44px 0; }
.page-header.left p { margin: 0; max-width: 640px; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #4a5568; }
.kicker { display: inline-block; background: #fef9e7; color: #7a5d00; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.text-link { color: #1a2332; font-weight: 600; }
.text-link:hover { color: #4a5568; }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.bg-soft { background: #f7fafc; }
.section.tight { padding: 48px 0; }
.small-print { font-size: 13px; color: #4a5568; }

/* Herramientas */
.feature-card { background: #ffffff; border: 1px solid #e2e8f0; border-top: 4px solid #f5c518; border-radius: 12px; padding: 36px 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.feature-card h2 { font-size: 30px; font-weight: 800; color: #1a2332; margin: 10px 0 12px; line-height: 1.2; }
.feature-card p { color: #4a5568; font-size: 17px; margin-bottom: 22px; }
.mini-steps { list-style: none; display: grid; gap: 16px; }
.mini-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.mini-steps .n { width: 32px; height: 32px; border-radius: 50%; background: #1a2332; color: #f5c518; font-weight: 700; display: grid; place-items: center; }
.mini-steps strong { display: block; color: #1a2332; }
.mini-steps .d { color: #4a5568; font-size: 15px; }
.tools-grid .tool-card { display: flex; flex-direction: column; }
.tools-grid .tool-card .btn { align-self: flex-start; margin-top: auto; }
.band-dark { background: #1a2332; color: #ffffff; border-radius: 12px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-top: 32px; }
.band-dark > div { flex: 1 1 420px; min-width: 0; }
.band-dark .eyebrow { color: #f5c518; }
.band-dark h2 { color: #ffffff; font-size: 24px; font-weight: 800; margin: 4px 0 8px; }
.band-dark p { color: rgba(255,255,255,0.85); max-width: 62ch; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.duo article { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px 32px; display: grid; gap: 10px; align-content: start; }
.duo h3 { font-size: 20px; font-weight: 800; color: #1a2332; }
.duo p { color: #4a5568; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.plan.highlight { border: 2px solid #f5c518; }
.plan h2 { font-size: 21px; font-weight: 800; color: #1a2332; line-height: 1.25; }
.plan .price { font-size: 32px; font-weight: 800; color: #1a2332; line-height: 1.1; }
.plan .price small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: #4a5568; }
.plan .who { font-size: 15px; color: #4a5568; }
.plan .tool-features { margin-bottom: 0; }
.plan .btn { align-self: flex-start; margin-top: auto; padding: 12px 24px; }
.btn-dark { background: #1a2332; color: #ffffff; }
.btn-dark:hover { box-shadow: 0 6px 18px rgba(26,35,50,0.25); }
.tiers { display: grid; gap: 6px; font-size: 14px; }
.tiers div { display: flex; justify-content: space-between; gap: 8px; background: #f7fafc; border-radius: 6px; padding: 6px 10px; }
.tiers span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note-box { background: #f7fafc; border-radius: 8px; padding: 12px 14px; font-size: 14px; color: #4a5568; }
.note-box strong { color: #1a2332; }
.start-band { margin-top: 32px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.start-band .links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* Tarifas */
.panel { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 24px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg button { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #cbd5e0; background: #ffffff; color: #1a2332; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #1a2332; border-color: #1a2332; color: #ffffff; }
.table-wrap { overflow-x: auto; }
.fees { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.fees th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #e2e8f0; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: #4a5568; }
.fees td { padding: 12px; border-bottom: 1px solid #e2e8f0; }
.fees .num { text-align: right; font-variant-numeric: tabular-nums; }
.placeholder { color: #718096; font-style: italic; }
.tag-grey { display: inline-block; background: #edf2f7; color: #4a5568; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.cta-yellow { margin-top: 24px; background: #fef9e7; border: 2px solid #f5c518; border-radius: 12px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta-yellow > div:first-child { flex: 1 1 440px; min-width: 0; }
.cta-yellow h2 { font-size: 22px; font-weight: 800; color: #1a2332; margin-bottom: 6px; }
.cta-yellow p { color: #4a5568; }

/* Comprobador */
.url-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 18px; }
.url-form .field { flex: 1 1 420px; min-width: 0; display: grid; gap: 6px; }
.url-form label { font-size: 14px; font-weight: 600; color: #ffffff; }
.url-form input { min-height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid #e2e8f0; font: inherit; font-size: 16px; color: #1a2332; }
.url-form .btn { min-height: 48px; padding: 0 32px; }
.page-header .limit-note { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.75); max-width: none; }
.info-note { background: #e8eefc; color: #23408e; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; overflow-wrap: anywhere; }
.info-note.estado-ok { background: #e6f4ea; color: #22603a; }
.info-note.estado-error { background: #fdf0e3; color: #8a4b0b; }
.url-form .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.paste-label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; color: #1a2332; }

/* Ruta al mercado: estilos del prototipo, adaptados a la web */
.ruta { --ink: #1a2332; --ink-2: #4a5568; --ink-3: #718096; --line: #e2e8f0; --sunken: #f7fafc;
  --med: #b83030; --med-bg: #fbe8e8; --ivd: #2361a3; --ivd-bg: #e3edf9; --rev: #9d5505; --rev-bg: #fbefdc;
  --well: #26744d; --well-bg: #e1f2e8; --disc: #5c687a; --disc-bg: #eaedf2; color: #2d3748; }
.ruta-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ruta-steps a { text-decoration: none; font-size: 14px; color: #ffffff; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 5px 14px; }
.ruta-steps a:hover { border-color: #f5c518; }
.ruta-steps b { color: #f5c518; margin-right: 4px; }
.ruta .step { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.ruta .step:last-of-type { border-bottom: 0; }
.ruta .step-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-bottom: 22px; }
.ruta .step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f5c518; color: #1a2332; font-weight: 700; font-size: 16px; }
.ruta .step-head h2 { font-size: 24px; font-weight: 800; color: #1a2332; line-height: 1.25; }
.ruta .step-head p { color: var(--ink-2); margin-top: 4px; max-width: 68ch; }
.ruta .split { display: grid; gap: 22px; }
@media (min-width: 880px) { .ruta .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.ruta .pane { min-width: 0; display: grid; gap: 10px; }
.ruta .label { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; color: #1a2332; }
.ruta textarea, .claims-box { width: 100%; box-sizing: border-box; min-height: 260px; resize: vertical; font: inherit; font-size: 15px; line-height: 1.6; color: #1a2332; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; }
.ruta textarea:focus, .claims-box:focus { border-color: #2b6cb0; outline: none; box-shadow: 0 0 0 3px rgba(43,108,176,0.2); }
.ruta .privacy { font-size: 13px; color: var(--ink-3); }
.lector-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #4a5568; }
.lector-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.med { background: #b83030; } .dot.ivd { background: #2361a3; } .dot.rev { background: #9d5505; } .dot.well { background: #26744d; } .dot.disc { background: #5c687a; }

.verdict { padding: 14px 16px; border-radius: 8px; background: #f7fafc; display: grid; gap: 4px; }
.verdict strong { font-size: 16px; line-height: 1.35; color: #1a2332; }
.verdict p { color: #4a5568; font-size: 14px; }
.verdict.med { background: #fbe8e8; } .verdict.med strong { color: #b83030; }
.verdict.ivd { background: #e3edf9; } .verdict.ivd strong { color: #2361a3; }
.verdict.rev { background: #fbefdc; } .verdict.rev strong { color: #9d5505; }
.verdict.well { background: #e1f2e8; } .verdict.well strong { color: #26744d; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.count { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #ffffff; color: #4a5568; font-variant-numeric: tabular-nums; }
.sentences { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid #e2e8f0; }
.sentences li { padding: 11px 0 11px 14px; border-bottom: 1px solid #e2e8f0; border-left: 3px solid transparent; display: grid; gap: 4px; min-width: 0; }
.sentences li.med { border-left-color: #b83030; }
.sentences li.ivd { border-left-color: #2361a3; }
.sentences li.evid, .sentences li.cond, .sentences li.verb { border-left-color: #9d5505; }
.sentences li.well { border-left-color: #26744d; }
.sentences li.disc { border-left-color: #5c687a; }
.sentences li.neutral .s-text { color: #718096; }
.s-text { overflow-wrap: anywhere; }
.s-note { font-size: 13px; color: #4a5568; }
.s-kind { font-weight: 600; margin-right: 6px; }
li.med .s-kind { color: #b83030; } li.ivd .s-kind { color: #2361a3; }
li.evid .s-kind, li.cond .s-kind, li.verb .s-kind { color: #9d5505; }
li.well .s-kind { color: #26744d; } li.disc .s-kind { color: #5c687a; }
.sentences mark { color: inherit; border-radius: 2px; padding: 0 2px; }
mark.m-med { background: #fbe8e8; text-decoration: underline 2px #b83030; }
mark.m-ivd { background: #e3edf9; text-decoration: underline 2px #2361a3; }
mark.m-rev { background: #fbefdc; text-decoration: underline 2px #9d5505; }
mark.m-well { background: #e1f2e8; text-decoration: underline 2px #26744d; }
mark.m-disc { background: #eaedf2; text-decoration: underline 2px #5c687a; }
mark[class^="m-"] { text-underline-offset: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ref { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: #4a5568; border: 1px solid #e2e8f0; border-radius: 3px; padding: 0 5px; margin: 2px 4px 0 0; white-space: nowrap; }
.empty { color: #718096; font-size: 14px; padding: 12px 0; }
.btn-small { padding: 9px 16px; font-size: 14px; }

.ruta .q-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.ruta fieldset { margin: 0; min-width: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #ffffff; padding: 14px 16px 12px; display: grid; gap: 8px; }
.ruta legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-weight: 600; font-size: 15px; line-height: 1.4; color: #1a2332; }
.ruta .q-help { font-size: 13px; color: #718096; }
.ruta .q-hint { font-size: 13px; color: #4a5568; background: #f7fafc; border-radius: 4px; padding: 6px 9px; }
.ruta .opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 7px 9px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.ruta .opt:hover { background: #f7fafc; }
.ruta .opt input { margin: 3px 0 0; accent-color: #1a2332; width: 16px; height: 16px; }
.ruta .opt:has(input:checked) { border-color: #e2e8f0; background: #f7fafc; }
.ruta .opt small { display: block; color: #718096; font-size: 12.5px; }
.ruta .result { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: #1a2332; color: #ffffff; display: grid; gap: 6px; }
.ruta .result-main { font-size: 19px; font-weight: 600; }
.ruta .result-main .cls { color: #f5c518; }
.ruta .result-sub { color: rgba(255,255,255,0.75); font-size: 14px; }
.ruta .result ul { margin: 4px 0 0; padding-left: 18px; color: rgba(255,255,255,0.75); font-size: 14px; display: grid; gap: 2px; }
.ruta .banner { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #fbefdc; color: #1a2332; font-size: 14px; }

.ruta .facts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 26px; }
.ruta .fact { background: #ffffff; padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.ruta .fact-k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: #718096; font-weight: 600; }
.ruta .fact-v { font-size: 17px; font-weight: 700; color: #1a2332; }
.ruta .fact-s { font-size: 12.5px; color: #718096; }
.ruta .fact-s a { color: #1a2332; font-weight: 600; }
.ruta .fact-v.yes { color: #b83030; }
.ruta .fact-v.no { color: #26744d; }
.progress { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; font-size: 14px; color: #4a5568; }
.progress-bar { flex: 1 1 200px; height: 8px; background: #edf2f7; border-radius: 4px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: #38a169; border-radius: 4px; transition: width .2s; }
.ruta .phases { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: ph; }
.ruta .phase { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-top: 1px solid #e2e8f0; counter-increment: ph; align-items: start; }
.ruta .phase::before { content: counter(ph); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #1a2332; font-weight: 600; font-size: 14px; color: #1a2332; }
.ruta .phase h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: #1a2332; }
.ruta .phase-body { display: grid; gap: 8px; color: #4a5568; max-width: 72ch; }
.ruta .phase-body ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.ruta .phase-body code { color: #1a2332; font-size: 0.9em; }
.ruta .phase-note { font-size: 13.5px; background: #f7fafc; border-radius: 4px; padding: 7px 10px; color: #4a5568; }
.status-btn { min-width: 112px; min-height: 40px; border-radius: 20px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 14px; border: 1px solid #e2e8f0; background: #edf2f7; color: #4a5568; }
.status-btn.s1 { background: #fef9e7; color: #7a5d00; border-color: #f3e3a1; }
.status-btn.s2 { background: #e6f4ea; color: #22603a; border-color: #c6e6d0; }

.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; margin-top: 32px; }
.next .box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 26px 28px; display: grid; gap: 12px; align-content: start; }
.next .box.paid { border: 2px solid #f5c518; }
.next .box h3 { font-size: 22px; font-weight: 800; color: #1a2332; }
.next .head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.next .head .price { font-size: 26px; font-weight: 800; color: #1a2332; }
.next .head .price small { font-size: 14px; font-weight: 500; color: #4a5568; }
.plus-list { list-style: none; display: grid; gap: 8px; font-size: 15px; color: #4a5568; }
.plus-list li { padding-left: 22px; position: relative; }
.plus-list li::before { content: "+"; position: absolute; left: 2px; color: #1a2332; font-weight: 800; }
.next .tool-features { margin-bottom: 0; }
.next .box .btn { justify-self: start; }
.inst-bar { margin-top: 24px; background: #fef9e7; border: 1px solid #f3e3a1; border-radius: 12px; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.copy-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; color: #4a5568; }
.copy-status { color: #26744d; }
#copyFallback { min-height: 160px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; width: 100%; margin-top: 8px; }

@media (max-width: 900px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .feature-card, .duo, .next { grid-template-columns: minmax(0, 1fr); }
  .ruta .phase { grid-template-columns: 34px minmax(0, 1fr); }
  .ruta .phase .status-btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}

/* Vigilancia: alta y prueba */
.vig-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vig-h2 { font-size: 22px; font-weight: 800; color: #1a2332; margin-bottom: 14px; }
.vig-form { display: grid; gap: 14px; }
.vig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vig-field { display: grid; gap: 6px; min-width: 0; }
.vig-field label { font-weight: 600; font-size: 14px; color: #1a2332; }
.vig-field input, .vig-field textarea, .vig-field select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 8px; font: inherit; font-size: 15px; color: #1a2332; background: #ffffff; }
.vig-field textarea { resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.vig-field input:focus, .vig-field textarea:focus, .vig-field select:focus { border-color: #2b6cb0; outline: none; box-shadow: 0 0 0 3px rgba(43,108,176,0.2); }
.vig-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14px; color: #4a5568; align-items: start; }
.vig-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #1a2332; }
.vig-form .btn { justify-self: start; }
.vig-form .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.vig-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vig-how .mini-steps { margin-bottom: 16px; }
.vig-result { margin-top: 24px; }
.vig-url { font-size: 14px; color: #4a5568; margin: 18px 0 6px; overflow-wrap: anywhere; }
.vig-list { list-style: none; display: grid; gap: 6px; }
.vig-list li { border-left: 3px solid #9d5505; padding: 4px 0 4px 12px; font-size: 15px; color: #1a2332; }
.vig-list li.med { border-left-color: #b83030; } .vig-list li.ivd { border-left-color: #2361a3; }
.vig-list li.med .s-kind { color: #b83030; } .vig-list li.ivd .s-kind { color: #2361a3; }
.vig-list li .s-kind { color: #9d5505; }
.vig-bad { color: #8a4b0b; font-size: 14px; } .vig-good { color: #22603a; font-size: 14px; }
.vig-test { margin-top: 24px; border: 2px dashed #cbd5e0; border-radius: 12px; padding: 24px 28px; background: #ffffff; }
.vig-test code { font-size: 12.5px; }
#correoVista { width: 100%; height: 720px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f7fafc; margin-top: 8px; }
@media (max-width: 768px) { .vig-grid, .vig-row { grid-template-columns: minmax(0, 1fr); } }

/* Informe de ruta: documento imprimible */
.inf-tools { display: grid; gap: 14px; margin-bottom: 24px; }
.inf-inv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.inf-tools select { min-height: 44px; padding: 8px 10px; border: 1px solid #cbd5e0; border-radius: 8px; font: inherit; font-size: 15px; background: #ffffff; color: #1a2332; }
.doc { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 44px 48px; max-width: 900px; margin: 0 auto; color: #2d3748; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 4px solid #f5c518; padding-bottom: 20px; margin-bottom: 8px; }
.doc-kicker { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7a5d00; }
.doc-head h1 { font-size: 32px; font-weight: 800; color: #1a2332; line-height: 1.15; margin: 4px 0; }
.doc-head p { color: #4a5568; }
.doc-logo { width: 64px; height: 64px; flex: none; }
.doc-sec { padding: 22px 0; border-bottom: 1px solid #e2e8f0; break-inside: auto; }
.doc-sec:last-of-type { border-bottom: 0; }
.doc-sec h2 { font-size: 20px; font-weight: 800; color: #1a2332; margin-bottom: 12px; }
.doc-sec h3 { font-size: 15px; font-weight: 700; color: #1a2332; margin: 14px 0 6px; }
.doc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.doc-facts div { background: #ffffff; padding: 12px 14px; display: grid; gap: 2px; }
.doc-facts span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #718096; font-weight: 600; }
.doc-facts b { font-size: 16px; color: #1a2332; }
.doc-facts small { font-size: 12px; color: #718096; }
.doc-notes { margin: 10px 0 0 18px; font-size: 14px; color: #4a5568; }
.doc-muted { color: #4a5568; font-size: 14px; }
.doc-pending { background: #f7fafc; border: 1px dashed #cbd5e0; border-radius: 8px; padding: 12px 14px; color: #4a5568; font-size: 14px; }
.doc-src { font-size: 12.5px; color: #718096; margin-top: 8px; }
.doc-frase { border-left: 3px solid #9d5505; padding: 6px 0 6px 14px; margin: 12px 0; break-inside: avoid; }
.doc-frase.fr-med { border-left-color: #b83030; } .doc-frase.fr-ivd { border-left-color: #2361a3; }
.doc-frase .q { font-size: 16px; color: #1a2332; margin-bottom: 4px; }
.doc-frase p { font-size: 14px; }
.doc-frase .hacer { margin-top: 4px; color: #1a2332; }
.doc-frase .propuesta { margin-top: 6px; background: #f4faf6; border-radius: 4px; padding: 6px 10px; color: #1a2332; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-frase .propuesta ins { background: #d5eedf; text-decoration: underline 2px #26744d; text-underline-offset: 3px; padding: 0 2px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc-alarms { list-style: none; display: grid; gap: 8px; }
.doc-alarms li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
.doc-alarms li span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.al-alta { background: #fbe8e8; color: #7f1d1d; } .al-media { background: #fbefdc; color: #6b3b05; } .al-ok { background: #e6f4ea; color: #22603a; }
.gantt { display: grid; gap: 8px; margin-top: 12px; }
.g-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 80px; gap: 10px; align-items: center; font-size: 14px; }
.g-track { position: relative; height: 16px; background: #f7fafc; border-radius: 4px; }
.g-track i { position: absolute; top: 0; bottom: 0; background: #1a2332; border-radius: 4px; }
.g-val { font-size: 13px; color: #4a5568; font-variant-numeric: tabular-nums; }
.g-axis { display: flex; justify-content: space-between; margin-left: 220px; margin-right: 90px; font-size: 12px; color: #718096; border-top: 1px solid #e2e8f0; padding-top: 4px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #718096; padding: 8px; border-bottom: 2px solid #e2e8f0; }
.doc-table td { padding: 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.doc-table td small { display: block; color: #718096; font-size: 12px; }
.doc-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-table .src { font-size: 12.5px; color: #4a5568; }
.doc-table tr.tot td { font-weight: 800; color: #1a2332; border-bottom: 0; }
.doc-check { list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.doc-check li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.doc-check .box { width: 14px; height: 14px; border: 1.5px solid #1a2332; border-radius: 3px; margin-top: 4px; }
.doc-phases { list-style: none; display: grid; gap: 14px; counter-reset: dph; }
.doc-phases li { break-inside: avoid; }
.ph-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: #1a2332; }
.ph-st { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.st-todo { background: #edf2f7; color: #4a5568; } .st-run { background: #fef9e7; color: #7a5d00; } .st-ok { background: #e6f4ea; color: #22603a; }
.ph-body { font-size: 14px; color: #4a5568; display: grid; gap: 6px; margin-top: 4px; }
.ph-body ul { margin-left: 18px; }
.ph-body .phase-note { font-size: 13.5px; background: #f7fafc; border-radius: 4px; padding: 6px 10px; }
.doc-list { margin-left: 18px; font-size: 14.5px; display: grid; gap: 3px; }
.doc-foot { margin-top: 18px; font-size: 12.5px; color: #718096; }
@media (max-width: 768px) {
  .inf-inv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: 24px 18px; }
  .g-row { grid-template-columns: 120px minmax(0, 1fr) 64px; }
  .g-axis { margin-left: 130px; margin-right: 74px; }
}
@media (max-width: 560px) {
  /* Plan: la etiqueta encima de la barra, para que la barra use todo el ancho */
  .g-row { grid-template-columns: minmax(0, 1fr) 64px; row-gap: 2px; }
  .g-lab { grid-column: 1 / -1; font-size: 13px; }
  .g-axis { margin-left: 0; margin-right: 74px; white-space: nowrap; }
  /* Tablas de costes: cada partida en un bloque */
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: auto; }
  .doc-table tr { padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
  .doc-table td { border: 0; padding: 2px 0; }
  .doc-table td.num { display: inline-block; text-align: left; font-weight: 700; color: #1a2332; margin-right: 5px; }
  .doc-table td.igual { display: none; }
  .doc-table td.num + td.num::before { content: "a "; font-weight: 400; color: #718096; }
  .doc-table td:empty { display: none; }
  .doc-table tr.tot { border-bottom: 0; }
}
@media print {
  .no-print, .inf-tools, footer.footer { display: none !important; }
  .informe-page .section { padding: 0; background: #ffffff; }
  .informe-page .container { max-width: none; padding: 0; }
  .doc { border: 0; border-radius: 0; padding: 0; max-width: none; }
  .doc a { color: inherit; text-decoration: none; }
  .g-track i, .doc-facts, .doc-alarms li, .ph-st { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ph-body .ph-li { padding-left: 16px; position: relative; }
.ph-body .ph-li::before { content: "•"; position: absolute; left: 4px; }
.fees-summary { font-size: 15px; color: #1a2332; margin-bottom: 14px; }
.fee-note { display: block; font-size: 12px; color: #718096; font-weight: 400; }
.fee-none { font-size: 12.5px; color: #718096; font-style: italic; }
.fee-warn { color: #8a4b0b; }
.fees td.num { white-space: normal; max-width: 220px; }
.fee-det { margin-top: 4px; font-size: 12.5px; color: #718096; }
.fee-det summary { cursor: pointer; color: #4a5568; }
.fee-det p { margin-top: 4px; }

/* Lo que pide cada país */
.paises { margin-top: 28px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px 26px; }
.paises-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.paises-head h3 { font-size: 20px; font-weight: 800; color: #1a2332; }
.pais-list { margin-top: 14px; display: grid; gap: 4px; }
.pais-list dt { font-weight: 700; color: #1a2332; margin-top: 10px; }
.pais-list dd { margin: 0; color: #4a5568; font-size: 15px; }
.pais-src { display: block; font-size: 12.5px; margin-top: 3px; color: #718096; }
.pais-src a { color: #4a5568; }
.pais-pend { margin-top: 16px; background: #fdf0e3; color: #6b3b05; border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.pais-pend ul { margin: 6px 0 0 18px; }
.inf-paises { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.inf-paises legend { width: 100%; margin-bottom: 4px; }
.inf-paises .vig-check { grid-template-columns: 20px auto; }
.doc .pais-list dd { font-size: 14px; }
.ruta .phase-body a { color: #1a2332; font-weight: 600; }

/* ---------- Resultado del lector: resumen + «lo que dices → propuesta» ---------- */
.entrada { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 22px; display: grid; gap: 8px; }
.entrada-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.entrada .claims-box, .entrada textarea { min-height: 150px; }
.entrada .actions-row { margin: 0; }
.res { margin-top: 22px; }
.res-head { display: grid; gap: 14px; }
@media (min-width: 900px) { .res-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; } }
.res-head .verdict { align-content: center; }
.res-head .verdict:only-child { grid-column: 1 / -1; }
.res-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { font: inherit; text-align: left; background: #ffffff; border: 1px solid #e2e8f0; border-top: 3px solid #cbd5e0; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.stat b { font-size: 26px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; line-height: 1.3; color: #4a5568; }
.stat:hover:not(:disabled) { border-color: #a0aec0; }
.stat:disabled { cursor: default; opacity: .55; }
.stat:focus-visible { outline: 3px solid rgba(43,108,176,.35); outline-offset: 1px; }
.st-med { border-top-color: #b83030; } .st-med b { color: #b83030; } .st-med.on { background: #fbe8e8; border-color: #b83030; }
.st-ivd { border-top-color: #2361a3; } .st-ivd b { color: #2361a3; } .st-ivd.on { background: #e3edf9; border-color: #2361a3; }
.st-rev { border-top-color: #9d5505; } .st-rev b { color: #9d5505; } .st-rev.on { background: #fbefdc; border-color: #9d5505; }
.st-ok { border-top-color: #26744d; } .st-ok b { color: #26744d; }
.res-titulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 28px 0 4px; }
.res-titulo h3 { font-size: 19px; font-weight: 800; color: #1a2332; }
.res-titulo h3 span { font-size: 13px; font-weight: 700; color: #4a5568; background: #edf2f7; border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 2px; }
.res-todas { background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.res-aviso { font-size: 13px; color: #4a5568; margin-bottom: 12px; max-width: 760px; }
.res-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 0 6px 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #718096; }
.res-cols span { padding-left: 18px; }
.cambios { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cambio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #ffffff; border: 1px solid #e2e8f0; border-left: 4px solid #9d5505; border-radius: 10px; overflow: hidden; }
.cambio.c-med { border-left-color: #b83030; } .cambio.c-ivd { border-left-color: #2361a3; }
.c-antes, .c-despues { padding: 14px 18px; min-width: 0; }
.c-despues { background: #f4faf6; border-left: 1px solid #e2e8f0; }
.c-label { display: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #718096; margin-bottom: 4px; }
.c-frase { font-size: 15.5px; line-height: 1.55; color: #1a2332; overflow-wrap: anywhere; }
.c-frase mark { color: inherit; border-radius: 2px; padding: 0 2px; }
.c-por { font-size: 13px; color: #4a5568; margin-top: 6px; }
.c-med .c-por b { color: #b83030; } .c-ivd .c-por b { color: #2361a3; } .c-rev .c-por b { color: #9d5505; }
.c-despues ins { background: #d5eedf; border-radius: 2px; padding: 0 2px; text-decoration: underline 2px #26744d; text-underline-offset: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.c-copiar { margin-top: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: #1a2332; background: #ffffff; border: 1px solid #cbd5e0; border-radius: 6px; padding: 3px 12px; cursor: pointer; }
.c-copiar:hover { border-color: #26744d; }
.c-copiar.ok { color: #26744d; border-color: #26744d; }
.c-sin { font-size: 14px; color: #4a5568; }
.c-sin b { color: #1a2332; }
.c-san { font-size: 12.5px; color: #4a5568; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #cfe3d6; }
.res-mas { margin-top: 12px; }
.res-limpio { margin-top: 18px; padding: 12px 16px; border-radius: 8px; background: #e1f2e8; color: #26744d; font-weight: 600; }
.res-ok { margin-top: 18px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; }
.res-ok summary { padding: 12px 16px; font-weight: 700; color: #1a2332; cursor: pointer; }
.res-ok summary span { font-size: 13px; color: #26744d; background: #e1f2e8; border-radius: 999px; padding: 1px 9px; margin-left: 6px; }
.res-ok ul { list-style: none; margin: 0; padding: 0 16px 8px; }
.res-ok li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid #edf2f7; font-size: 14px; color: #4a5568; min-width: 0; }
.res-ok li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ok-tag { flex: none; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.t-well { background: #e1f2e8; color: #26744d; } .t-disc { background: #eaedf2; color: #5c687a; }
.t-otro { background: #fbefdc; color: #9d5505; }
.res-otro summary span { color: #9d5505; background: #fbefdc; }
.res-otro-nota { margin: 0; padding: 0 16px 10px; font-size: 14px; color: #4a5568; }
@media (max-width: 760px) {
  .res-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-cols { display: none; }
  .cambio { grid-template-columns: minmax(0, 1fr); }
  .c-despues { border-left: 0; border-top: 1px solid #e2e8f0; }
  .c-label { display: block; }
  .entrada { padding: 16px; }
}

/* ---------- Licencia para instituciones: panel, programa, actividad ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pn-entrar { max-width: 560px; display: grid; gap: 10px; }
.pn-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.pn-invita { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .pn-invita { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; } }
.pn-enlace { display: flex; gap: 8px; min-width: 0; }
.pn-enlace input { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; color: #1a2332; background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.pn-kpis { margin-bottom: 20px; }
.pn-kpi { cursor: default; }
.pn-kpi small { font-size: 12px; color: #718096; }
.pn-lista-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 16px; margin-bottom: 8px; }
.pn-buscar { width: min(320px, 100%); }
.pn-tabla { background: #ffffff; border-radius: 10px; min-width: 860px; }
.pn-tabla td { vertical-align: top; font-size: 14.5px; }
.pn-tabla td small { display: block; font-size: 12.5px; color: #718096; margin-top: 2px; }
.pn-tabla .pn-ojo { color: #9d5505; }
.pn-avance { min-width: 150px; }
.pn-barra-av { height: 8px; background: #edf2f7; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.pn-barra-av i { display: block; height: 100%; background: var(--pn-color, #1a2332); border-radius: 999px; }
.pn-rojo { color: #b83030; } .pn-verde { color: #26744d; font-weight: 600; } .pn-gris { color: #718096; }
.pn-acc { white-space: nowrap; }
.pn-acc .text-link { margin-right: 12px; }
.pn-quitar { font: inherit; font-size: 13px; color: #718096; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.pn-quitar:hover { color: #b83030; }
.pn-vacio { text-align: center; color: #4a5568; padding: 28px 12px; }
.prog-bar { background: #1a2332; color: #ffffff; font-size: 14px; }
.prog-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.prog-bar b { color: #f5c518; }
.prog-acc { display: inline-flex; gap: 14px; align-items: center; }
.prog-sync { color: rgba(255,255,255,.7); font-size: 13px; }
.prog-bar .text-link { color: #ffffff; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.act-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .act-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.act-reparto { display: grid; gap: 8px; margin: 8px 0 10px; }
.act-tag { font-size: 11px; font-weight: 700; color: #22603a; background: #e6f4ea; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.act-tag.gris { color: #4a5568; background: #edf2f7; }
.act-facts b { font-size: 26px; font-weight: 800; }
.act-facts div { align-content: start; }

/* ---------- Pedido del informe ---------- */
.pd-productos { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pd-prod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #ffffff; }
.pd-prod:has(input:checked) { border-color: #1a2332; box-shadow: 0 0 0 1px #1a2332; background: #fffdf3; }
.pd-prod span { display: grid; gap: 2px; }
.pd-prod small { font-size: 13px; color: #4a5568; }
.pd-prod em { font-style: normal; font-weight: 800; font-size: 18px; color: #1a2332; }
.pd-resumen { align-self: start; display: grid; gap: 10px; }
.pd-ruta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; }
.pd-ruta dt { color: #718096; }
.pd-ruta dd { margin: 0; font-weight: 600; color: #1a2332; }
.pd-h3 { font-size: 15px; font-weight: 800; color: #1a2332; margin-top: 6px; }
/* Vista previa del informe */
.prev-cerrado b { color: #718096 !important; }
.prev-cerrado b::before { content: ""; display: inline-block; width: 10px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid #a0aec0; border-radius: 2px 2px 3px 3px; box-sizing: border-box; }
.prev-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.prev-lista li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid #edf2f7; font-size: 14.5px; }
.prev-lista b { color: #1a2332; }
.prev-lista span { color: #4a5568; }
@media (max-width: 640px) { .prev-lista li { grid-template-columns: minmax(0, 1fr); } }
.prev-muestra { margin-top: 16px; }
.prev-tag { display: inline-block; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: #4a5568; background: #edf2f7; border-radius: 999px; padding: 1px 8px; }
.prev-cta { display: grid; gap: 14px; margin-top: 26px; padding: 22px 24px; border-radius: 12px; background: #fef9e7; border: 1px solid #f5c518; }
@media (min-width: 760px) { .prev-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.prev-cta h2 { font-size: 20px; font-weight: 800; color: #1a2332; margin-bottom: 4px; }
.prev-cta p { font-size: 14.5px; color: #4a5568; }
.prev-btns { display: grid; gap: 8px; justify-items: stretch; }
.prev-btns .btn { text-align: center; }
.prev-borrador { margin-top: 14px; }

/* Mientras no se cobre (js/modo.js), sin lo de pago y con lo que lo sustituye */
html.sin-ventas [data-pago] { display: none !important; }
html:not(.sin-ventas) [data-sin-pago] { display: none !important; }

/* Aviso para quien tiene la web en otro idioma: estas herramientas solo están en castellano */
.aviso-idioma { background: #fef9e7; border-bottom: 1px solid #f5c518; padding: 10px 0; font-size: 14px; font-weight: 600; color: #7a5d00; text-align: center; }
