/* Reset and minimal variables */
:root {
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
    --link-color: #003399;
    --font-serif: 'Merriweather', 'Times New Roman', Times, serif;
    --font-sans: 'Inter', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.8;
}

.document {
    max-width: 850px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.doc-header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
}

.date-header {
    text-align: right;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.read-time {
    text-align: right;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #555;
    margin-top: -1.7rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
}

.doc-section {
    margin-bottom: 3.5rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

strong {
    font-weight: 700;
}

/* Call to action text block */
.call-to-action {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.call-to-action p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: #001144;
}

/* Timeline Table */
.timeline-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.timeline-table th, 
.timeline-table td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: top;
    text-align: left;
}

.timeline-table th {
    font-family: var(--font-sans);
    font-weight: 600;
    background-color: #f9f9f9;
}

.td-date {
    white-space: nowrap;
    font-weight: 700;
    width: 20%;
}

/* Print optimizations */
@media print {
    body {
        font-size: 12pt;
    }
    .document {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
}

/* Summary List Styles */
.summary-list {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.summary-list li {
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* Status Box / Counter */
.status-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background-color: #f9f9f9;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.status-box p {
    text-align: center;
    margin-bottom: 0;
}

.status-box strong {
    font-size: 1.15rem;
}

/* Author Signature */
.author-signature {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

/* Antecedentes Styles */
.antecedente-item {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.antecedente-item h4 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

.antecedente-doc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    border-left: 3px solid #ccc;
    margin-top: 1rem;
}

.doc-separator {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 2rem 0;
}

.nota-documentacion {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.nota-documentacion p {
    margin-bottom: 0;
    text-align: left;
}

.evidence-images {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.evidence-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
