/* KAITROX · kaitrox-ui.css (v2)
 * Estilos que antes vivían dentro de <style> en index.html.
 * v2: se elimina el @media print que forzaba los contenedores vacíos
 * (causaba la hoja en blanco al imprimir). La impresión la gobierna
 * print.css v4 con las clases body.imprimiendo-libro / -cesion.
 * © 2026 KAITROX (Aviario Tuloro)
 */
.tab-doc { opacity:.55; }
.tab-doc.active { opacity:1; outline:2px solid #2563eb; }
.nav-divider { width:100%; font-size:11px; color:#95a5a6; text-transform:uppercase; letter-spacing:1px; margin:8px 0 4px 0; }
.nav-divider:first-of-type { margin-top: 2px; }
.field-help-error { display:none; color:#e74c3c; margin-top:5px; font-size: 12px; }
.label-bold { color:#2c3e50; font-weight:bold; }
.section-title { color:#2c3e50; margin-bottom:15px; }
.full-width-input { width:100%; padding:10px; border:1px solid #ddd; border-radius:6px; font-family: inherit; font-size: 14px; }
.info-box-blue { background:#e8f4f8; padding:15px; border-radius:8px; margin-bottom:15px; border-left:4px solid #3498db; }
.info-box-yellow { background:#fff3cd; padding:20px; border-radius:8px; border-left:4px solid #ffc107; margin-top:20px; }
.info-box-green { background:#e8f5e9; padding:15px; border-radius:8px; border-left:4px solid #4caf50; margin-bottom:20px; }
.info-box-red { background:#fdf2f2; border:1px solid #f5c6cb; border-radius:8px; padding:20px; margin-top:30px; }
.form-highlight-blue { background:#e8f4f8; padding:15px; border-radius:8px; margin-bottom:15px; border-left:4px solid #3498db; }
.form-highlight-green { background:#e8f5e9; padding:15px; border-radius:8px; border-left:4px solid #4caf50; }
.form-highlight-pink { background:#fce4ec; padding:15px; border-radius:8px; border-left:4px solid #e91e63; }
.nidadas-search-box { margin:20px 0; background:#f8f9fa; padding:20px; border-radius:8px; }
.quick-actions-box { background:#f8f9fa; padding:20px; border-radius:8px; margin-top:20px; }
.quick-actions-title { margin-top:0; }
.quick-actions-grid { display:flex; gap:10px; flex-wrap:wrap; }
.impresion-info { display:none; background: #f8f9fa; border-left: 4px solid #3498db; padding: 20px; margin: 20px 0; border-radius: 8px; }
.impresion-info-title { margin-top: 0; color: #2c3e50; font-size: 18px; border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.info-item { display: flex; flex-direction: column; }
.info-label { font-size: 12px; color: #7f8c8d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-value { font-size: 16px; color: #2c3e50; font-weight: 600; }
.botones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.mensaje-vacio { display:none; text-align: center; padding: 60px 20px; color: #7f8c8d; }
.mensaje-vacio-title { font-size: 18px; margin: 10px 0; }
.texto-ayuda { font-size: 14px; color: #95a5a6; max-width: 600px; margin: 20px auto; }
.recordatorios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 20px; }
.miteco-docs-title { margin:0 0 10px 0; color:#2e7d32; }
.miteco-docs-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.miteco-doc-card { background:white; padding:12px; border-radius:6px; border:1px solid #c8e6c9; }
.miteco-doc-desc { font-size:12px; color:#666; margin-top:5px; }
.miteco-year-select, .miteco-pareja-select { padding:10px; border:1px solid #ddd; border-radius:6px; width: 100%; }
.miteco-generate-btn { margin-bottom:20px; padding:15px 30px; font-size:16px; }
.main-header { border-radius: 8px; }
.header-subtitle { font-size:12px; color:#7f8c8d; margin-top:6px; }
.main-nav { border-radius: 8px; }
.main-footer { text-align:center; padding:15px; background:#2c3e50; color:#ecf0f1; margin-top:30px; border-radius: 8px; }
.footer-text { margin:0; font-size:12px; }
.footer-link { color:#3498db; }
.impresion-selector-label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }
.impresion-select { width: 100%; max-width: 500px; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.impresion-botones-title { color: #2c3e50; font-size: 18px; margin-bottom: 20px; }
.modal-header { background:#2c3e50; color:#fff; padding:12px 20px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.modal-header-title { margin:0; font-size:16px; color:#fff; border:none; padding:0; }
.modal-close-btn { background:#e74c3c; color:#fff; margin:0; }
.modal-toolbar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 15px; background:#f8f9fa; border-bottom:1px solid #ddd; flex-wrap:wrap; }
.toolbar-group { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.modal-body-flex { flex:1; position:relative; overflow:hidden; background:#525659; }
.preview-placeholder { position:absolute; top:0; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; background:#e9ecef; color:#666; z-index:2; }
.miteco-iframe { width:100%; height:100%; border:none; display:none; }
.modal-miteco-content { max-width:1000px; width:96%; height:94vh; max-height:94vh; display:flex; flex-direction:column; padding:0; overflow:hidden; }
.modal-pareja-content { max-width: 600px; }
.modal-autofirma-content { max-width:600px; }
.modal-alertas-content { max-width: 600px; }
.autofirma-list { margin:15px 0 15px 22px; line-height:1.9; font-size:14px; color:#2c3e50; }
.autofirma-link-text { font-size:13px; color:#666; }
.autofirma-link { color:#2563eb; font-weight:600; }
.about-modal { text-align:center; padding: 30px; max-width: 650px; }
.about-logo { width:120px; margin-bottom:15px; }
.about-title { color:#2c3e50; margin-bottom:10px; }
.about-subtitle { font-size:16px; color:#33415e; }
.about-version { font-size:13px; color:#7f8c8d; }
.about-gradient { background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:white; padding:20px; margin:20px 0; border-radius:12px; text-align:left; }
.about-section-title { color:white; margin-top:0; border:none; }
.about-text { font-size:14px; line-height:1.6; margin:10px 0; }
.about-quote { font-size:15px; font-style:italic; text-align:center; margin:15px 0; padding:10px; background:rgba(255,255,255,0.2); border-radius:8px; }
.about-grid { display:grid; grid-template-columns:1fr; gap:20px; margin:25px 0; }
.about-card { display:flex; align-items:center; gap:15px; background:#f8f9fa; padding:15px; border-radius:10px; }
.about-card-green { border-left:4px solid #27ae60; }
.about-card-blue { border-left:4px solid #3498db; }
.about-card-pink { border-left:4px solid #e91e63; }
.about-avatar { width:70px; height:70px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.about-card-text { text-align:left; flex:1; }
.about-card-name { margin:0 0 5px 0; color:#2c3e50; font-size:16px; }
.about-card-role { margin:0; font-size:13px; color:#7f8c8d; }
.about-card-location { margin:5px 0 0 0; font-size:12px; color:#95a5a6; }
.about-card-link { color:#3498db; text-decoration:none; }
.about-contact { background:#ecf0f1; padding:15px; margin:20px 0; border-radius:8px; }
.about-contact-text { font-size:14px; color:#2c3e50; margin:0; }
.about-copyright { font-size:11px; color:#95a5a6; margin-top:20px; }
/* Sin transition: la pantalla de carga se elimina al instante, sin fantasma */
.loading-screen { position:fixed; top:0; left:0; width:100%; height:100%; background:#ffffff; display:flex; flex-direction:column; justify-content:center; align-items:center; z-index:9999; }
.loading-logo { width:120px; height:120px; margin-bottom:30px; animation:pulse 2s infinite; }
.loading-spinner { width:60px; height:60px; border:6px solid #f3f3f3; border-top:6px solid #2563eb; border-radius:50%; animation:spin 1s linear infinite; margin-bottom:25px; }
.loading-title { color:#1f2937; font-weight:500; font-size:22px; letter-spacing:0.5px; margin-bottom:10px; }
.loading-subtitle { color:#6b7280; font-size:15px; margin-top:0; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }

/* 🔒 En pantalla, los contenedores de impresión permanecen ocultos */
@media screen {
    #print-view, #documento-cesion { display:none !important; }
}