/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Estilos específicos para index.php (login) */
body.login-page {
    height: 100vh;
    overflow: hidden;
}

/* Contenedor principal */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Lado izquierdo - Promocional */
.left-side {
    flex: 1;
    background: linear-gradient(135deg, #1f2937 0%, #1f2937 50%, #1f2937 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

/* Fondo con imagen del templo en el lado izquierdo */
.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/templobg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    color: white;
}

.promo-header {
    margin-bottom: 30px;
}

.join-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.promo-title .highlight {
    color: #60a5fa;
    font-weight: 600;
}

.promo-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.promo-buttons {
    display: flex;
    gap: 16px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Lado derecho - Formulario */
.right-side {
    flex: 1;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    color: white;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

/* Mensajes de error */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half {
    flex: 1;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 16px 20px;
    padding-right: 50px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-group input::placeholder {
    color: #9ca3af;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
}

.toggle-password:hover {
    color: #d1d5db;
}

/* Checkbox personalizado */
.checkbox-group {
    margin: 8px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #d1d5db;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Botón principal */
.create-account-btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.create-account-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Login alternativo */
.login-alternative {
    text-align: center;
    margin-top: 24px;
    color: #9ca3af;
    font-size: 14px;
}

.login-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    color: #60a5fa;
}

/* Credenciales temporales */
.temp-credentials {
    margin-top: 32px;
    padding: 16px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 8px;
    border: 1px solid #4b5563;
}

.temp-credentials p {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
}

.temp-credentials code {
    background: #1f2937;
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-side {
        flex: none;
        height: 40vh;
        padding: 40px;
    }
    
    .right-side {
        flex: none;
        height: 60vh;
        padding: 40px;
    }
    
    .promo-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .left-side, .right-side {
        padding: 24px;
    }
    
    .promo-title {
        font-size: 28px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .promo-buttons {
        flex-direction: column;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA HOME.PHP ===== */

/* Navbar con la nueva paleta */
.navbar.is-primary {
    background: linear-gradient(161deg, #1c273f 0%, #111827 50%, #111827 100%) !important;
    box-shadow: 0 2px 8px rgb(3 13 40 / 30%);
}

.navbar-brand .navbar-item {
    color: white !important;
    font-weight: 600;
}

.navbar-item {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.navbar-item:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.navbar-dropdown {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
}

.navbar-dropdown .navbar-item {
    color: #d1d5db !important;
}

.navbar-dropdown .navbar-item:hover {
    background: #374151 !important;
    color: white !important;
}

/* Hero section con gradiente moderno */
.hero.is-primary {
    background: linear-gradient(135deg, #1f2937 0%, #1f2937 50%, #1f293700 100%);
    position: relative;
    overflow: hidden;
}

.hero.is-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/templobg.png');
    background-size: cover;
    background-position: center -229px;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-bodys {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
}

.hero .title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Tarjetas de estadísticas modernas */
.stats-card {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
}

.stats-card .card-content {
    background: transparent !important;
    color: white !important;
}

.stats-card .title {
    color: #3b82f6 !important;
    font-weight: 700;
}

.stats-card .subtitle {
    color: #9ca3af !important;
}

.stats-card .content {
    color: #d1d5db !important;
}

.stats-card .content p {
    color: #d1d5db !important;
    margin-bottom: 0.5rem;
}

/* Iconos en las tarjetas */
.stats-card .fas {
    color: #3b82f6 !important;
}

.has-text-warning {
    color: #f59e0b !important;
}

.has-text-success {
    color: #10b981 !important;
}

.has-text-info {
    color: #3b82f6 !important;
}

.has-text-danger {
    color: #ef4444 !important;
}

/* Específicamente para el icono de apartados */
.stats-card .fas.fa-archive.has-text-danger {
    color: #ef4444 !important;
}

/* Estilos específicos para la tarjeta de apartados */
.apartados-card {
    border-color: #ef4444 !important;
}

.apartados-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3) !important;
    border-color: #ef4444 !important;
}

.apartados-card .title {
    color: #ef4444 !important;
    font-weight: 700;
}

/* Tarjeta de filtros moderna */
.filter-card {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
}

.filter-card .card-header {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-bottom: 1px solid #4b5563 !important;
}

.filter-card .card-header-title {
    color: white !important;
    font-weight: 600;
}

.filter-card .card-content {
    background: transparent !important;
}

.filter-card .label {
    color: #d1d5db !important;
    font-weight: 500;
}

.filter-card .select select {
    background: #374151 !important;
    border: 1px solid #4b5563 !important;
    color: white !important;
    border-radius: 8px;
}

.filter-card .select select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.filter-card .select select option {
    background: #374151 !important;
    color: white !important;
}

/* Botón de limpiar filtros */
.filter-card .button.is-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-card .button.is-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Tarjeta de tabla moderna */
.card {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.card .card-header {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-bottom: 1px solid #4b5563 !important;
}

.card .card-header-title {
    color: white !important;
    font-weight: 600;
}

.card .card-content {
    background: transparent !important;
}

.targetas {
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.icontargetas {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tabla moderna */
.table {
    background: transparent !important;
    color: white !important;
}

.table thead th {
    background: #374151 !important;
    color: white !important;
    border-bottom: 2px solid #4b5563 !important;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    background: transparent !important;
    border-bottom: 1px solid #374151 !important;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

.table tbody td {
    color: #d1d5db !important;
    border-bottom: 1px solid #374151 !important;
    padding: 1rem;
}

.table tbody td strong {
    color: white !important;
}

/* Tags modernos */
.tag.is-success {
    background: #10b981 !important;
    color: white !important;
}

.tag.is-danger {
    background: #ef4444 !important;
    color: white !important;
}

.tag.is-info {
    background: #3b82f6 !important;
    color: white !important;
}

.tag.is-light {
    background: #4b5563 !important;
    color: #d1d5db !important;
}

/* Estilos para mejorar legibilidad del modal de ficha */
.modal-card-body {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #f8fafc !important;
}

.modal-card-body h3 {
    color: #e2e8f0 !important;
    font-weight: bold !important;
}

.modal-card-body p {
    color: #cbd5e1 !important;
    margin-bottom: 0.75rem !important;
}

.modal-card-body strong {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

.modal-card-body .tag {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    font-weight: 500 !important;
}

.modal-card-head {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border-bottom: 1px solid #475569 !important;
}

.modal-card-title {
    color: #f8fafc !important;
    font-weight: bold !important;
}

.modal-card-foot {
    background: rgba(30, 41, 59, 0.95) !important;
    border-top: 1px solid #475569 !important;
}

/* Footer moderno */
.footer {
    background: #111827 !important;
    color: #9ca3af !important;
    border-top: 1px solid #374151 !important;
}

.footer strong {
    color: #3b82f6 !important;
}

/* Ajustes específicos para home.php */
body:not(.login-page) {
    background: #111827 !important;
    color: #d1d5db !important;
    min-height: 100vh;
}

/* Contenedor principal */
.section {
    background: transparent !important;
}

.container {
    background: transparent !important;
}

/* Imagen de perfil placeholder */
.image img.is-rounded {
    border: 2px solid #374151;
    transition: all 0.3s ease;
}

.image img.is-rounded:hover {
    border-color: #3b82f6;
}

/* Estilos específicos para ficha.php - Mejor legibilidad */
.card-content {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #f8fafc !important;
}

.card-content .title {
    color: #e2e8f0 !important;
    font-weight: bold !important;
}

.card-content .subtitle {
    color: #cbd5e1 !important;
}

.card-content .label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.card-content .input[readonly] {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #e2e8f0 !important;
    border: 1px solid #475569 !important;
}

.card-content .textarea[readonly] {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #e2e8f0 !important;
    border: 1px solid #475569 !important;
}

/* Mejora para checkboxes marcados y bloqueados */
.card-content input[type="checkbox"]:disabled:checked {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
    opacity: 1 !important;
}

.card-content input[type="checkbox"]:disabled:checked::before {
    color: white !important;
    font-weight: bold !important;
}

.card-content input[type="checkbox"]:disabled {
    background-color: #7f8c8d;
    border-color: #95a5a6;
    opacity: 0.8;
}

.card-content .checkbox {
    color: #cbd5e1 !important;
    margin-right: 1rem !important;
}

.card-content .checkbox input[type="checkbox"]:disabled:checked + span,
.card-content .checkbox:has(input[type="checkbox"]:disabled:checked) {
    color: #cbd5e1 !important;
    font-weight: normal;
}

.card-content .checkbox input[type="checkbox"] {
    margin-right: 0.5rem !important;
}

.card-content .content {
    color: #cbd5e1 !important;
}

.card-header {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border-bottom: 1px solid #475569 !important;
}

.card-header-title {
    color: #f8fafc !important;
    font-weight: bold !important;
}

.card-header-icon .icon {
    color: #cbd5e1 !important;
}

.card-header-icon:hover .icon {
    color: #f8fafc !important;
}

/* Botón de editar ficha */
.edit-button {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1rem !important;
}

.edit-button:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3) !important;
}

.edit-button i {
    margin-right: 0.5rem !important;
}

/* Responsive para home.php */
@media (max-width: 768px) {
    .hero-bodys {
        padding: 2rem 1rem;
    }
    
    .hero .title {
        font-size: 1.5rem;
    }
    
    .stats-card .title {
        font-size: 1.25rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* Estilos específicos para ficha.php */
.ficha-page {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.ficha-page .card {
    background-color: #34495e;
    color: #ecf0f1;
}

.ficha-page .card-header {
    background-color: #3498db;
    color: white;
}

.ficha-page .title,
.ficha-page .label {
    color: #ecf0f1 !important;
}

.ficha-page .input,
.ficha-page .textarea {
    background-color: #34495e;
    color: #ecf0f1;
    border-color: #7f8c8d;
}

.ficha-page .input:focus,
.ficha-page .textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.125em rgba(52, 152, 219, 0.25);
}

/* Estilos para iconos de checkbox en modo visualización */
.checkbox-display {
    display: block;
}

.checkbox-edit {
    display: none;
}

.checkbox-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    vertical-align: middle;
}

/* Estilos para iconos de checkboxes */
.checkbox-icon {
    margin-right: 8px;
    font-size: 16px;
}

.checkbox-icon i {
    vertical-align: middle;
}

.checkbox-icon.fa-check-circle {
    color: #28a745; /* Verde para opciones seleccionadas */
}

.checkbox-icon.fa-times-circle {
    color: #dc3545; /* Rojo para opciones no seleccionadas */
}

/* Mejora para checkboxes marcados y bloqueados en ficha.php */
.ficha-page input[type="checkbox"]:disabled:checked {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
    opacity: 1 !important;
    position: relative;
}

.ficha-page input[type="checkbox"]:disabled:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white !important;
    font-weight: bold !important;
    font-size: 12px;
}

.ficha-page input[type="checkbox"]:disabled {
    background-color: #7f8c8d;
    border-color: #95a5a6;
    opacity: 0.8;
}

.ficha-page .checkbox {
    color: #ecf0f1;
    margin-right: 15px;
}

/* Removido el estilo que hacía el texto verde */

.edit-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.edit-btn:hover {
    background-color: #c0392b;
}

.edit-btn.editing {
    background-color: #27ae60;
}

.edit-btn.editing:hover {
    background-color: #229954;
}

/* Estilos específicos para impresión */
.media { align-items: center !important; }
@media print {
    /* Configuración de página A4 - optimizada para una sola hoja */
    @page {
        size: A4;
        margin: 8mm 6mm;
    }
    
    /* Ocultar elementos no necesarios para impresión */
    .edit-btn, .print-btn, .btn, button, .navbar, .footer, .sidebar, .menu {
        display: none !important;
    }
    
    /* Forzar fondo blanco y texto negro con mejor contraste */
    * {
        background: white !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Estilos generales para impresión - compactos */
    body {
        font-family: Arial, sans-serif !important;
        font-size: 9pt !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: #000000 !important;
    }
    
    /* Contenedor principal - más compacto */
    .container, #fichaCompleta {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Tarjetas - más compactas */
    .card {
        border: 1px solid #333333 !important;
        margin-bottom: 4pt !important;
        padding: 4pt !important;
        background: white !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Títulos - más compactos */
    .card-title, h1, h2, h3, h4, h5, h6 {
        font-weight: bold !important;
        margin: 0 0 3pt 0 !important;
        padding: 0 !important;
        background: white !important;
        color: #000000 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .card-title {
        font-size: 10pt !important;
        border-bottom: 1px solid #333333 !important;
        padding-bottom: 2pt !important;
    }
    
    /* Campos y etiquetas - más compactos */
    .field, .form-group {
        margin-bottom: 2pt !important;
        display: block !important;
        visibility: visible !important;
        background: white !important;
    }
    
    .field label, label {
        font-weight: bold !important;
        font-size: 8pt !important;
        margin-bottom: 1pt !important;
        display: inline-block !important;
        background: white !important;
        color: #000000 !important;
    }
    
    /* Inputs y valores - más compactos */
    .field-value, input, select, textarea {
        font-size: 8pt !important;
        border: 1px solid #333333 !important;
        padding: 1pt !important;
        margin: 0 !important;
        background: white !important;
        color: #000000 !important;
        display: inline-block !important;
        visibility: visible !important;
    }
    
    input[type="text"], input[type="email"], input[type="tel"], select, textarea {
        border-bottom: 1px solid #333333 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        background: white !important;
    }
    
    /* Iconos - mantener colores específicos con mejor contraste */
    .icon {
        display: inline-block !important;
        width: 10pt !important;
        height: 10pt !important;
        margin-right: 2pt !important;
        visibility: visible !important;
    }
    
    .icon.green {
        color: #006600 !important;
        background: white !important;
    }
    
    .icon.red {
        color: #CC0000 !important;
        background: white !important;
    }
    
    .icon.gray {
        color: #333333 !important;
        background: white !important;
    }
    
    /* Secciones de radio y checkbox - más compactas */
    .radio-section, .checkbox-section {
        margin: 2pt 0 !important;
        display: block !important;
        visibility: visible !important;
        background: white !important;
    }
    
    .radio-section label, .checkbox-section label {
        margin-right: 6pt !important;
        font-weight: normal !important;
        display: inline-block !important;
        background: white !important;
        color: #000000 !important;
        font-size: 8pt !important;
    }
    
    /* Columnas - layout optimizado para una sola página */
    .col-md-6, .col-md-4, .col-md-3, .col-md-12, .columns, .column {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 1pt !important;
        background: white !important;
    }
    
    /* Layout de dos columnas para datos personales */
    .columns {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .column.is-3 {
        width: 25% !important;
        flex: 0 0 25% !important;
    }
    
    .column.is-9 {
        width: 75% !important;
        flex: 0 0 75% !important;
    }
    
    /* Imágenes - más pequeñas */
    img {
        max-width: 60pt !important;
        height: auto !important;
        display: block !important;
        margin: 2pt 0 !important;
    }
    
    /* Textarea - más compacto */
    textarea {
        width: 100% !important;
        min-height: 15pt !important;
        resize: none !important;
        background: white !important;
        color: #000000 !important;
        border: 1px solid #333333 !important;
        font-size: 8pt !important;
    }
    
    /* Encabezado de impresión - más compacto */
    .print-header {
        text-align: center !important;
        margin-bottom: 6pt !important;
        padding-bottom: 4pt !important;
        border-bottom: 2px solid #333333 !important;
        background: white !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .print-header h1 {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin: 0 0 2pt 0 !important;
        color: #000000 !important;
        background: white !important;
    }
    
    .print-header h2 {
        font-size: 10pt !important;
        font-weight: normal !important;
        margin: 0 !important;
        color: #000000 !important;
        background: white !important;
    }
    
    /* Tags y separadores - más compactos */
    .tag, .badge {
        border: 1px solid #333333 !important;
        padding: 0.5pt 2pt !important;
        font-size: 7pt !important;
        background: white !important;
        color: #000000 !important;
        display: inline-block !important;
        margin: 0.5pt !important;
    }
    
    .separator, hr {
        border: none !important;
        border-top: 1px solid #333333 !important;
        margin: 3pt 0 !important;
        background: white !important;
    }
    
    /* Contenido general */
    .content, .main-content, .form-content {
        display: block !important;
        visibility: visible !important;
        background: white !important;
        color: #000000 !important;
    }
    
    /* Evitar saltos de página en elementos importantes */
    .card, .field, .form-group {
        page-break-inside: avoid;
    }
    
    /* Forzar visibilidad de todos los elementos principales */
    div, span, p, label, input, select, textarea, h1, h2, h3, h4, h5, h6 {
        display: block !important;
        visibility: visible !important;
        background: white !important;
        color: #000000 !important;
    }
    
    span, label {
        display: inline-block !important;
    }
    
    /* Títulos principales más grandes para jerarquía */
    h1.title {
        font-size: 11pt !important;
        font-weight: bold !important;
        color: #000000 !important;
    }
    
    h2.title {
        font-size: 10pt !important;
        font-weight: bold !important;
        color: #000000 !important;
    }
    
    /* Subtítulos */
    .subtitle {
        font-size: 8pt !important;
        color: #000000 !important;
        margin: 1pt 0 !important;
    }
    
    /* Optimización específica para datos personales y espirituales */
     .datos-personales, .datos-espirituales {
         margin-bottom: 3pt !important;
         padding: 2pt !important;
     }
}