/* === DOCUMENTOS OFICIALES XUNTA ===
   Estilos de impresión / documentos A4 oficiales (comunicaciones, anexos,
   certificados). Diseñados para verse igual en navegador, Word y PDF. */

.xunta-doc {
  font-family: var(--font-xunta);
  color: #000;
  font-size: 11pt;
  line-height: 1.4;
  background: white;
  padding: 1.5cm 2cm;
  max-width: 21cm;
  margin: 0 auto;
}
.xunta-doc-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--xunta-blue);
  margin-bottom: 1.2rem;
}
/* Tabla de logos en TIRA UNICA - funciona en navegador, Word y PDF */
.xunta-doc-header-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: none !important;
  background: transparent !important;
}
.xunta-doc-header-table td, .xunta-doc-header-table tr {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.xunta-doc-header-table .xunta-logo-cell {
  width: 33.33%;
  text-align: center;
  vertical-align: middle;
  padding: 4px 8px;
  height: 70px;
  border: none !important;
  background: transparent !important;
}
.xunta-doc-header-table img {
  max-height: 60px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.xunta-doc-header-table .logo-placeholder-doc {
  background:#f5f5f5;
  color:#aaa;
  font-size:8pt;
  padding:0.5rem 0.8rem;
  border:1px dashed #ccc;
  border-radius:4px;
  text-align:center;
  font-weight:600;
  height:60px;
  max-width:180px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
}
.xunta-doc h1 { font-size: 14pt; text-align: center; color: var(--xunta-navy); letter-spacing: 1px; margin: 1.2em 0; text-transform: uppercase; font-weight: 700; }
.xunta-doc h2 { font-size: 12pt; color: var(--xunta-navy); margin: 1em 0 0.6em; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; border-bottom:1px solid var(--xunta-blue); padding-bottom:3px; }
.xunta-doc h3 { font-size: 11pt; color: var(--xunta-navy); margin: 0.8em 0 0.4em; font-weight: 700; }
.xunta-doc table { width: 100%; border-collapse: collapse; margin: 0.6em 0; font-size: 10pt; }
.xunta-doc table td, .xunta-doc table th { border: 1px solid #555; padding: 5px 8px; vertical-align: top; text-align: left; }
.xunta-doc table th { background: var(--xunta-blue); color: white; font-weight: 700; }
.xunta-doc table .bgh { background: var(--xunta-blue); color: white; font-weight: 700; }
.xunta-doc table .bgg { background: #f0f0f0; font-weight: 600; }
.xunta-doc p { margin: 0.5em 0; text-align: justify; }
.xunta-doc ul, .xunta-doc ol { margin: 0.5em 0 0.5em 1.5em; }
.xunta-doc li { margin-bottom: 0.3em; line-height: 1.4; }
.xunta-doc .firma-block { margin-top: 2em; }
.xunta-doc .firma-img { max-height: 80px; max-width: 220px; display:block; margin: 8px 0; object-fit: contain; }
.xunta-doc .pie-cofinanciacion { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--xunta-blue); font-size: 8pt; color: #444; text-align: center; font-style: italic; }
