/* ==========================================================================
   revision.css: the sample proposal under review.
   Shared by index.html (hero) and segunda-opinion.html. Loaded after site.css.
   ========================================================================== */

/* The sample proposal under review --------------------------------------
   A page of a vendor's proposal as it looks in a PDF review: document header
   and footer, numbered clauses, highlighted passages tied to numbered comments.
   Every fact comes from the fictitious example published in segunda-opinion.html. */
.revision { margin: 0; }
.revision-mesa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14.5rem;
    gap: 20px;
    align-items: start;
    position: relative;
}

.hoja-px-atras,
.hoja-px {
    background: var(--hoja);
    border: 1px solid #E1E5E8;
}
.hoja-px-atras {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 14.5rem - 20px);
    height: 100%;
    transform: rotate(1.2deg);
    box-shadow: 0 10px 24px -18px rgba(22, 26, 30, .35);
}
.hoja-px {
    position: relative;
    padding: 26px 30px 20px;
    font-family: var(--serif);
    font-size: 12.75px;
    line-height: 1.55;
    color: #2A2F33;
    box-shadow: 0 1px 2px rgba(22, 26, 30, .06), 0 24px 48px -30px rgba(22, 26, 30, .45);
}
.hoja-px p { margin: 0 0 9px; text-align: justify; hyphens: auto; }

.hoja-px-cabeza {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #3B4A57;
    font-family: var(--sans);
}
.px-marca { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #3B4A57; }
.px-marca svg { width: 18px; height: 18px; }
.px-ref { font-size: 9.5px; line-height: 1.35; color: #6B767E; text-align: right; }

.px-titulo {
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0;
    color: #3B4A57;
    margin: 14px 0 7px;
}
.px-titulo:first-of-type { margin-top: 0; }

.px-tabla { width: 100%; border-collapse: collapse; margin: 4px 0 11px; font-size: 11.75px; line-height: 1.4; }
.px-tabla th {
    text-align: left;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #3B4A57;
    padding: 5px 8px;
}
.px-tabla td { padding: 5px 8px; border-bottom: 1px solid #E1E5E8; vertical-align: top; }
.px-tabla td:last-child { width: 38%; white-space: nowrap; }
.px-tabla tbody tr:nth-child(even) td { background: #F7F9FA; }

.hoja-px mark {
    background: rgba(179, 38, 30, .13);
    color: inherit;
    box-shadow: inset 0 -1.5px 0 var(--lapiz);
    padding: 0 1px;
}
.marcador {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--lapiz);
    color: #fff;
    font-family: var(--sans);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    vertical-align: 3px;
}

.hoja-px-pie {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #E1E5E8;
    font-family: var(--sans);
    font-size: 9.5px;
    color: #6B767E;
}

/* Review comments, as in a PDF reviewer's sidebar */
.comentarios { list-style: none; margin: 0; padding: 26px 0 0; display: grid; gap: 14px; }
.comentario {
    position: relative;
    background: var(--hoja);
    border: 1px solid var(--regla);
    border-left: 3px solid var(--lapiz);
    border-radius: 3px;
    padding: 11px 12px 12px;
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: 0 8px 18px -16px rgba(22, 26, 30, .45);
}
.comentario p { margin: 0; }
.comentario-cabeza { display: flex; align-items: center; gap: 8px; margin-bottom: 7px !important; }
.comentario-cabeza > span:nth-child(2) { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.3; color: var(--grafito); }
.comentario-cabeza b { font-size: 12.5px; color: var(--tinta); font-weight: 600; }
.avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    flex: none;
}
.numero {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lapiz);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    flex: none;
    align-self: flex-start;
}
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--lapiz); margin-bottom: 4px !important; }
.estado svg { width: 8px; height: 8px; }

/* Review summary with the verdict */
.resumen {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--hoja);
    border: 1px solid var(--regla);
    border-radius: 3px;
}
.sello {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    color: var(--lapiz);
    border: 2px solid var(--lapiz);
    border-radius: 2px;
    padding: 9px 15px 11px;
    margin: 0;
    transform: rotate(-2.5deg);
    flex: none;
}
.sello span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .02em; margin-bottom: 5px; }
.resumen-texto { flex: 1; min-width: 0; }
.resumen-texto p { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--grafito); }
.resumen-texto .conteo { color: var(--tinta); font-size: 14.5px; }
.barra { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin: 8px 0 9px; }
.barra span { height: 8px; border-radius: 1px; }
.b-alarma { background: var(--lapiz); }
.b-aclarar { background: #C9963A; }
.b-ok { background: var(--ok); }

.revision figcaption { font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--grafito); margin-top: 12px; }
.revision figcaption a { color: var(--grafito); }

@media (max-width: 700px) {
    .revision-mesa { grid-template-columns: 1fr; }
    .hoja-px-atras { width: calc(100% - 14px); height: auto; bottom: -8px; }
    .comentarios { padding-top: 6px; }
    .resumen { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 560px) {
    .hoja-px { padding: 18px 16px 14px; font-size: 12px; }
    .hoja-px p { text-align: left; }
    .px-tabla td:last-child { white-space: normal; }
}
