/* sample-report.css — Dashboard ejecutivo
   (sample_diagnostico_0kbot.html, sample_radar_externo.html)

   Modelo: dashboard de 30-segundos que responde
     "¿cómo está parada la empresa frente a las 2 leyes?"
   Cliente fixture lee, entiende en 30s, hace click en CTA.
   Detalle técnico se delega al área TI cuando contrate.

   Paleta:
     - Navy #1E40AF como single primary
     - Neutros tipo paper (off-white, no blanco puro)
     - Acentos semáforo: rojo / ámbar / verde solo en status
   Tipografía: slab serif (Georgia/PT Serif) para números display +
   sans para body. Tamaños generosos, espacio para respirar. */

@page { size: A4; margin: 14mm 14mm; }
* { box-sizing: border-box; }

:root {
    --navy: #1E40AF;
    --navy-deep: #1E3A8A;
    --navy-darker: #172554;
    --navy-soft: #DBE3F4;
    --navy-tint: #EFF2FB;

    --paper: #FBFAF7;
    --paper-deep: #F4F1EA;

    --ink: #0B1220;
    --ink-soft: #1F2937;
    --ink-light: #475569;

    --grey-500: #64748B;
    --grey-400: #94A3B8;
    --grey-300: #CBD5E1;
    --grey-200: #E2E8F0;
    --grey-100: #F1F5F9;

    --red: #DC2626;
    --red-soft: #FEE2E2;
    --red-deep: #991B1B;
    --amber: #D97706;
    --amber-soft: #FEF3C7;
    --amber-deep: #92400E;
    --green: #059669;
    --green-soft: #D1FAE5;
    --green-deep: #065F46;

    --shadow-sm: 0 1px 3px rgba(11, 18, 32, 0.06), 0 1px 2px rgba(11, 18, 32, 0.04);
    --shadow-md: 0 6px 16px rgba(11, 18, 32, 0.08), 0 2px 6px rgba(11, 18, 32, 0.05);
    --shadow-lg: 0 16px 40px rgba(11, 18, 32, 0.10), 0 4px 12px rgba(11, 18, 32, 0.06);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
}

body {
    font-family: -apple-system, "Inter", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.report-shell {
    max-width: 980px;
    margin: 0 auto;
}

/* Slab serif para titulares y números */
h1, h2, h3,
.cover__product,
.score__num,
.donut__num,
.cta__num {
    font-family: "PT Serif", "Roboto Slab", Georgia, "Times New Roman", serif;
    font-feature-settings: "lnum" 1;
    letter-spacing: -0.01em;
}

/* ==============================================================
   COVER
   ============================================================== */
.cover {
    background: var(--navy);
    color: white;
    padding: 40px 56px 36px;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cover__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.cover__brand {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.cover__brand span {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    font-family: -apple-system, "Inter", system-ui, sans-serif;
    margin-left: 6px;
}

.cover__id {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.08em;
}

.cover__product {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
    color: white;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.cover__lead {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    margin: 0 0 28px;
    max-width: 640px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.cover__chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cover__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.cover__chip strong { color: white; font-weight: 700; }

.cover__chip--amber {
    background: rgba(217, 119, 6, 0.18);
    border-color: rgba(217, 119, 6, 0.5);
}

.cover__chip--watermark {
    background: rgba(255,255,255,0.06);
    border-style: dashed;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 10.5px;
    font-weight: 700;
}

/* ==============================================================
   BODY (sobre paper)
   ============================================================== */
.report-body {
    padding: 48px 56px 24px;
}

/* ==============================================================
   SECTION HEAD
   ============================================================== */
.section {
    margin: 0 0 56px;
}

.section__head {
    margin: 0 0 24px;
}

.section__kicker {
    display: inline-block;
    padding: 5px 11px;
    background: var(--navy-tint);
    color: var(--navy-deep);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 2px;
    margin-bottom: 12px;
}

.section__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.section__sub {
    font-size: 15px;
    color: var(--ink-light);
    margin: 0;
    line-height: 1.55;
    max-width: 640px;
}

/* ==============================================================
   SCORE GLOBAL — hero gauge
   ============================================================== */
.score {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 40px 44px;
    margin: 0 0 56px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 44px;
    align-items: center;
}

.score__gauge {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.score__gauge svg {
    width: 100%;
    height: auto;
    display: block;
}

.score__gauge-arc-red { fill: none; stroke: var(--red); stroke-width: 22; stroke-linecap: butt; }
.score__gauge-arc-amber { fill: none; stroke: var(--amber); stroke-width: 22; stroke-linecap: butt; }
.score__gauge-arc-green { fill: none; stroke: var(--green); stroke-width: 22; stroke-linecap: butt; }

.score__gauge-needle {
    stroke: var(--ink);
    stroke-width: 4;
    stroke-linecap: round;
}

.score__gauge-hub-outer { fill: var(--ink); }
.score__gauge-hub-inner { fill: white; }

.score__gauge-scale-text {
    font-family: -apple-system, "Inter", system-ui, sans-serif;
    font-size: 10px;
    fill: var(--grey-500);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.score__gauge-center {
    margin-top: -28px;
    text-align: center;
}

.score__gauge-zones {
    display: flex;
    justify-content: space-between;
    margin: 14px 6px 0;
    font-size: 9.5px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.score__gauge-zones span:nth-child(1) { color: var(--red); }
.score__gauge-zones span:nth-child(2) { color: var(--amber); }
.score__gauge-zones span:nth-child(3) { color: var(--green); }

.score__num {
    font-size: 64px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.score__num-suffix {
    font-family: "PT Serif", "Roboto Slab", Georgia, serif;
    font-size: 26px;
    color: var(--ink-light);
    font-weight: 400;
}

.donut__num-suffix {
    font-family: "PT Serif", "Roboto Slab", Georgia, serif;
}

.score__num-label {
    display: block;
    font-family: -apple-system, "Inter", system-ui, sans-serif;
    font-size: 11px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-top: 6px;
}

.score__verdict-label {
    display: block;
    font-size: 11px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 8px;
}

.score__verdict {
    font-family: "PT Serif", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 12px;
}

.score__verdict-detail {
    font-size: 14.5px;
    color: var(--ink-light);
    margin: 0 0 20px;
    line-height: 1.55;
}

.score__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--grey-100);
}

.score__pillar {
    text-align: left;
}

.score__pillar-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-500);
    font-weight: 700;
    margin-bottom: 4px;
}

.score__pillar-value {
    font-family: "PT Serif", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.score__pillar-value--red { color: var(--red); }
.score__pillar-value--amber { color: var(--amber); }
.score__pillar-value--green { color: var(--green); }

/* ==============================================================
   2 LEYES SIDE-BY-SIDE
   ============================================================== */
.laws {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 56px;
}

.law-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 32px 32px 24px;
    border-top: 5px solid var(--navy);
    display: flex;
    flex-direction: column;
}

.law-card__head {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
}

.donut {
    position: relative;
    width: 110px;
    height: 110px;
}

.donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut__track { fill: none; stroke: var(--grey-200); stroke-width: 12; }
.donut__fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.donut__fill--red { stroke: var(--red); }
.donut__fill--amber { stroke: var(--amber); }
.donut__fill--green { stroke: var(--green); }

.donut__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut__num {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.donut__num-suffix {
    font-size: 14px;
    color: var(--ink-light);
}

.donut__label {
    display: block;
    font-size: 9px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-top: 2px;
}

.law-card__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-500);
    font-weight: 700;
    margin: 0 0 4px;
    font-family: -apple-system, "Inter", system-ui, sans-serif;
}

.law-card__name {
    font-family: "PT Serif", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
    line-height: 1.15;
}

.law-card__sub {
    font-size: 12.5px;
    color: var(--ink-light);
    margin: 0;
    line-height: 1.4;
}

.law-card__areas {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--grey-100);
    padding-top: 16px;
}

.law-card__area {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-100);
}

.law-card__area:last-child { border-bottom: none; }

.area-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.area-icon--missing { background: var(--red); }
.area-icon--partial { background: var(--amber); }
.area-icon--ok { background: var(--green); }

.law-card__area-name {
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}

.law-card__area-norm {
    display: block;
    font-size: 11px;
    color: var(--grey-500);
    font-weight: 400;
    margin-top: 2px;
}

.law-card__area-pct {
    font-family: "PT Serif", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.law-card__area-pct--red { color: var(--red); }
.law-card__area-pct--amber { color: var(--amber); }
.law-card__area-pct--green { color: var(--green); }

.law-card__foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--grey-100);
    font-size: 12.5px;
    color: var(--ink-light);
    line-height: 1.55;
}

.law-card__foot strong { color: var(--ink); }

/* ==============================================================
   TOP 3 BRECHAS — cards horizontales con severidad lateral
   ============================================================== */
.gaps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 56px;
}

.gap {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    grid-template-columns: 92px 1fr;
    border: 1px solid var(--grey-200);
}

.gap__sev {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 12px;
    color: white;
    text-align: center;
}

.gap__sev--critical { background: var(--red-deep); }
.gap__sev--high { background: var(--red); }
.gap__sev--medium { background: var(--amber); }

.gap__sev-rank {
    font-family: "PT Serif", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.gap__sev-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    line-height: 1.2;
}

.gap__body {
    padding: 20px 26px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}

.gap__main {
    min-width: 0;
}

.gap__norm {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 6px;
}

.gap__title {
    font-family: "PT Serif", Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.3;
}

.gap__desc {
    font-size: 13.5px;
    color: var(--ink-light);
    margin: 0;
    line-height: 1.55;
}

.gap__impact {
    text-align: right;
    border-left: 1px solid var(--grey-200);
    padding-left: 22px;
    min-width: 140px;
}

.gap__impact-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-500);
    font-weight: 700;
    margin-bottom: 4px;
}

.gap__impact-value {
    font-family: "PT Serif", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.gap__impact-value--red { color: var(--red-deep); }

/* ==============================================================
   METODOLOGÍA — 3 bullets cortos
   ============================================================== */
.method {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0 0 56px;
}

.method__item {
    background: white;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--navy);
}

.method__num {
    font-family: "PT Serif", Georgia, serif;
    font-size: 24px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.method__title {
    font-size: 14.5px;
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 6px;
}

.method__desc {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.55;
    margin: 0 0 12px;
}

.method__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    color: var(--navy);
}

.method__icon svg { width: 100%; height: 100%; display: block; }

.method__evidence {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 9px;
    background: var(--navy-tint);
    color: var(--navy-deep);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    border-radius: 3px;
    line-height: 1.4;
}

/* Explicación del monto sancionatorio bajo cada brecha */
.gap__impact-note {
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--grey-500);
    line-height: 1.5;
    font-weight: 400;
    max-width: 160px;
}

/* ==============================================================
   CTA — banda navy con invitación fuerte
   ============================================================== */
.cta {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: white;
    padding: 44px 56px;
    border-radius: 12px;
    margin: 0 0 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta__kicker {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,0.14);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 2px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: "PT Serif", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 0 0 14px;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.cta__lead {
    font-size: 15.5px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.cta__row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta__primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: var(--navy-darker);
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    transition: transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta__primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.cta__primary-num {
    font-family: "PT Serif", Georgia, serif;
}

.cta__secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 2px;
}

.cta__secondary:hover {
    color: white;
    border-bottom-color: white;
}

.cta__sub {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 18px 0 0;
    position: relative;
    z-index: 1;
    line-height: 1.55;
}

/* ==============================================================
   FOOTER mini
   ============================================================== */
footer.foot {
    padding: 24px 56px;
    text-align: center;
    color: var(--grey-500);
    font-size: 11.5px;
    line-height: 1.7;
    border-top: 1px solid var(--grey-200);
}

footer.foot a {
    color: var(--ink-light);
    text-decoration: none;
    border-bottom: 1px solid var(--grey-300);
}

footer.foot a:hover { border-bottom-color: var(--ink-light); }

footer.foot strong { color: var(--ink); }

/* ==============================================================
   PRINT
   ============================================================== */
@media print {
    html, body { background: white; }
    .cover, .cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .score, .law-card, .gap, .method__item, .cta { box-shadow: none; border: 1px solid var(--grey-200); }
    .section { page-break-inside: avoid; }
    .gap, .law-card { page-break-inside: avoid; }
}

@media (max-width: 760px) {
    .cover { padding: 28px 24px; }
    .cover__product { font-size: 28px; }
    .report-body { padding: 32px 24px; }
    .score { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
    .score__gauge { width: 200px; height: 200px; }
    .score__pillars { grid-template-columns: 1fr 1fr; }
    .laws { grid-template-columns: 1fr; }
    .law-card { padding: 24px 22px; }
    .law-card__head { grid-template-columns: 90px 1fr; gap: 18px; }
    .donut { width: 90px; height: 90px; }
    .gap { grid-template-columns: 76px 1fr; }
    .gap__sev { padding: 18px 8px; }
    .gap__body { grid-template-columns: 1fr; gap: 14px; padding: 18px 20px; }
    .gap__impact { text-align: left; border-left: none; border-top: 1px solid var(--grey-200); padding-left: 0; padding-top: 12px; }
    .method { grid-template-columns: 1fr; }
    .cta { padding: 32px 28px; }
    .cta__title { font-size: 24px; }
    footer.foot { padding: 24px; }
}
