    /* Estilos del Formulario en Pantalla */
    .form-comunidad-wrapper { font-family: inherit; max-width: 1200px; margin: 30px auto; background: #ffffff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #dee2e6; }
    .form-header {
    background: radial-gradient(circle at top center, #175d9c 0%, #0f3f67 100%);
    color: #ffffff;
    padding: 20px 25px;
    text-align: center;
}
.form-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}
    .form-body { padding: 30px; }
    .steps-navigation { display: flex; gap: 10px; margin-bottom: 25px; background: #f8f9fa; padding: 10px; border-radius: 6px; border: 1px solid #e9ecef; }
    .step-tag { flex: 1; text-align: center; padding: 10px; background: #e9ecef; color: #495057; font-size: 14px; font-weight: 700; border-radius: 4px; text-transform: uppercase; transition: all 0.3s ease; }
    .step-tag.active { background: linear-gradient(180deg, #175d9c 0%, #0f3f67 100%); color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .step-tag.active:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 6px 10px rgba(0,0,0,0.15); cursor: default; }
    .step-tag.completed { background: #d4f8fc; color: #0f3f67; }
    .step-tag.completed:hover { background: #99F4FF; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.08); cursor: pointer; }
    
    @keyframes fadeInSlide {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .form-section { display: none; background: #fdfdfd; border: 1px solid #eef0f2; border-radius: 6px; padding: 22px; margin-bottom: 25px; border-left: 4px solid #092742; }
    .form-section.active { display: block; animation: fadeInSlide 0.4s ease forwards; }
    .section-title { font-size: 16px; font-weight: 700; color: #092742; text-transform: uppercase; margin-top: 0; margin-bottom: 18px; border-bottom: 1px solid #dee2e6; padding-bottom: 6px; }
    .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-group.full-width { grid-column: 1 / -1; }
    label { font-size: 15px; font-weight: 600; color: #495057; }
    input[type="text"], input[type="email"], select, textarea { padding: 10px 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 16px; background-color: #fff; box-sizing: border-box; }
    .checkbox-trigger-group { display: flex; gap: 25px; background: #f1f3f7; padding: 12px 15px; border-radius: 4px; margin-bottom: 25px; }
    /* .checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0c3252; cursor: pointer; font-size: 13px; } */
    .checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #092742; cursor: pointer; font-size: 15px; }
    .form-navigation-buttons { display: flex; justify-content: space-between; margin-top: 20px; }
    .btn-nav { background-color: #6c757d; color: #fff; border: none; padding: 10px 25px; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: 700; }
    .btn-nav.btn-next { background: radial-gradient(circle at top center, #175d9c 0%, #0f3f67 100%); color: #ffffff; border: none; transition: transform 0.2s ease, filter 0.2s ease; }
    .btn-nav.btn-next:hover { filter: brightness(1.1); transform: translateY(-1px); }
    .btn-nav:disabled { opacity: 0.5; cursor: not-allowed; }
    .alert-success { background: #99F4FF; color: #0f3f67; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #c3e6cb; font-weight: 600; }
    .alert-danger { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #f5c6cb; font-weight: 600; }

    /* =========================================================================
       PESTAÑAS (TABS)
    ========================================================================= */
    .buzon-tabs-nav { display: flex; background: #eef0f2; border-bottom: 1px solid #ced4da; }
    .buzon-tab-btn { flex: 1; padding: 15px; border: none; background: transparent; color: #495057; font-size: 16px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; border-bottom: 3px solid transparent; }
    .buzon-tab-btn:hover { background: #e2e6ea; }
    .buzon-tab-btn.active { color: #0f3f67; border-bottom: 3px solid #0f3f67; background: #fff; }
    .buzon-tab-content { display: none; }
    .buzon-tab-content.active { display: block; animation: fadeInSlide 0.4s ease forwards; }

    /* =========================================================================
       BUSCADOR RESULTADOS
    ========================================================================= */
    .resultado-card { background: #fff; border: 1px solid #dee2e6; border-radius: 6px; padding: 15px; border-left: 4px solid #175d9c; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
    .resultado-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 1px solid #f1f3f7; padding-bottom: 8px; }
    .resultado-codigo { font-weight: 700; color: #0f3f67; font-size: 18px; }
    .resultado-fecha { font-size: 14px; color: #6c757d; }
    .resultado-estatus { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; background: #e2e3e5; color: #383d41; }
    .resultado-estatus.creada { background: #cce5ff; color: #004085; }
    .resultado-estatus.recibida { background: #d4edda; color: #155724; }
    .resultado-estatus.atendida { background: #c3e6cb; color: #155724; }
    .resultado-estatus.devuelta { background: #f8d7da; color: #721c24; }
    .resultado-estatus.terminada { background: #d6d8db; color: #383d41; }
    .resultado-estatus.registrada { background: #cce5ff; color: #004085; }
    .resultado-estatus.asignada { background: #e0e7ff; color: #4338ca; }
    .resultado-estatus.en_proceso { background: #fff3cd; color: #856404; }
    .resultado-estatus.solventada { background: #d1ecf1; color: #0c5460; }
    .resultado-estatus.finalizada { background: #d4edda; color: #155724; }
    .resultado-estatus.rechazada { background: #f8d7da; color: #721c24; }
    .resultado-body { font-size: 13px; color: #495057; line-height: 1.4; }
    .resultado-meta { display: flex; gap: 15px; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: #175d9c; }

    /* =========================================================================
       MODAL DE FINALIZACIÓN
    ========================================================================= */
    #modal_finalizacion { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; }
    #modal_finalizacion.show { display: flex; animation: fadeInModal 0.3s ease; }
    @keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
    .modal-content-box { background: #fff; padding: 30px; border-radius: 8px; max-width: 450px; width: 90%; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
    .modal-content-box h3 { color: #0f3f67; margin-top: 0; margin-bottom: 10px; font-size: 20px; }
    .modal-content-box p { color: #495057; font-size: 14px; margin-bottom: 20px; }
    .codigo-generado-box { display: flex; align-items: center; justify-content: space-between; background: #f1f3f7; padding: 10px 15px; border-radius: 6px; margin-bottom: 25px; border: 1px dashed #175d9c; }
    .codigo-generado-text { font-size: 20px; font-weight: 700; color: #092742; letter-spacing: 1px; margin: 0; }
    .btn-copiar { background: #175d9c; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background 0.2s; }
    .btn-copiar:hover { background: #0f3f67; }
    .modal-actions { display: flex; gap: 10px; justify-content: center; }
    .btn-modal-outline { flex: 1; background: transparent; color: #175d9c; border: 1px solid #175d9c; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; }
    .btn-modal-outline:hover { background: #f1f3f7; }
    .btn-modal-primary { flex: 1; background: #175d9c; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; }
    .btn-modal-primary:hover { background: #0f3f67; }


    /* =========================================================================
        ADAPTACIÓN RESPONSIVE PARA DISPOSITIVOS MÓVILES (PASOS EN 2 COLUMNAS)
    ========================================================================= */
    @media (max-width: 768px) {
        .steps-navigation {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 8px !important;
            padding: 8px !important;
        }
        
        /* Hace que el quinto paso (al ser impar) se expanda a lo ancho para un acabado limpio */
        .steps-navigation #tag_paso_5 {
            grid-column: span 2;
        }

        .step-tag {
            font-size: 11px !important;
            padding: 8px 4px !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

   /* =========================================================================
        ESTILOS CONTROLADOS DE IMPRESIÓN — FORMATO APA (Hoja Carta, márgenes 2.54 cm)
    ========================================================================= */
    #seccion-constancia-pdf { display: none; }

    @media print {
        /* 1. Márgenes APA: 2.54 cm (1 pulgada) por cada lado */
        @page { 
            size: letter portrait; 
            margin: 2.54cm 2.54cm 2.54cm 2.54cm !important;
        }
        
        /* 2. Lienzo base limpio */
        html, body { 
            height: auto !important; 
            max-height: none !important; 
            overflow: visible !important; 
            margin: 0 !important; 
            padding: 0 !important;
            background: #fff !important;
            font-family: "Times New Roman", Times, serif !important;
        }
        
        /* Oculta los bloques del formulario web */
        .form-comunidad-wrapper,
        .whatsapp-status-container,
        #wpadminbar,
        header,
        footer {
            display: none !important;
        }
        
        /* 3. Contenedor de constancia — ocupa el área de impresión con márgenes APA */
        #seccion-constancia-pdf, #contenedor-reimpresion-pdf {
            display: block !important;
            position: relative !important;
            left: auto !important;
            top: auto !important;
            width: 100% !important;
            height: auto !important;
            background: #fff !important;
            padding: 0 !important;
            box-sizing: border-box !important;
            margin: 0 !important;
            page-break-inside: avoid !important;
        }

        /* 4. Neutraliza URLs en enlaces */
        a[href]::after { content: "" !important; }
        a { text-decoration: none !important; color: #000 !important; pointer-events: none !important; cursor: default !important; }
        
        /* Oculta todo excepto la constancia */
        body * { visibility: hidden; }
        #seccion-constancia-pdf, #seccion-constancia-pdf *, #contenedor-reimpresion-pdf, #contenedor-reimpresion-pdf * { visibility: visible; }
        
        /* =========================================================================
            DISEÑO INTERNO DE LA CONSTANCIA — Estilo APA Profesional
           ========================================================================= */
        
        /* Encabezado institucional con logos centrados */
        .print-header { 
            display: flex !important; 
            align-items: center !important; 
            justify-content: center !important;
            gap: 12px !important;
            padding-bottom: 10px !important; 
            margin-bottom: 16px !important; 
            margin-top: 0 !important; 
            border-bottom: 1.5px solid #0f3f67 !important;
        }
        .print-logo-container {
            width: auto !important;
            text-align: center !important;
        }
        .print-logo-container img {
            max-height: 45px !important;
            width: auto !important;
            display: block !important;
        }
        .print-header-text {
            width: auto !important;
            text-align: center !important;
        }
        .print-header h1 { 
            font-size: 14pt !important; 
            margin: 4px 0 2px 0 !important; 
            color: #0f3f67 !important; 
            text-transform: none !important; 
            font-weight: bold !important;
            font-family: "Times New Roman", Times, serif !important;
            line-height: 1.2 !important;
        }
        .print-header p { 
            font-size: 10pt !important; 
            margin: 0 !important; 
            color: #495057 !important;
            font-family: "Times New Roman", Times, serif !important;
        }
        
        /* Badge de correlativo y fecha — estilo limpio */
        .print-badge-container { 
            display: flex !important; 
            justify-content: space-between !important; 
            width: 100% !important; 
            margin-bottom: 14px !important; 
            background: #f4f6f9 !important; 
            padding: 8px 14px !important; 
            border-radius: 0 !important; 
            box-sizing: border-box !important;
            border: 1px solid #dee2e6 !important;
        }
        .print-badge-box { 
            font-size: 10pt !important; 
            font-weight: bold !important; 
            color: #212529 !important;
            font-family: "Times New Roman", Times, serif !important;
        }
        .print-badge-box.right { text-align: right !important; }
        .print-badge-box span { 
            color: #0f3f67 !important; 
            font-size: 11pt !important; 
        }

        /* Encabezado SOLICITUD [CÓDIGO] / [NOMBRE] / [ENTIDAD] */
        .print-solicitud-header {
            margin: 12px 0 10px 0 !important;
            padding: 10px 14px !important;
            background: #f4f6f9 !important;
            border-left: 3px solid #0f3f67 !important;
            border-radius: 0 !important;
            page-break-inside: avoid !important;
        }
        .print-solicitud-label {
            font-size: 12pt !important;
            font-weight: bold !important;
            color: #0f3f67 !important;
            font-family: "Times New Roman", Times, serif !important;
            margin-bottom: 2px !important;
            letter-spacing: 0.5px !important;
        }
        .print-solicitud-nombre {
            font-size: 11pt !important;
            font-weight: bold !important;
            color: #212529 !important;
            font-family: "Times New Roman", Times, serif !important;
            margin-bottom: 2px !important;
        }
        .print-solicitud-entidad {
            font-size: 10pt !important;
            color: #495057 !important;
            font-family: "Times New Roman", Times, serif !important;
            font-style: italic !important;
        }

        /* Títulos de sección — sobrios y profesionales */
        .print-section-title { 
            background: transparent !important; 
            color: #0f3f67 !important; 
            font-size: 11pt !important; 
            padding: 6px 0 4px 0 !important; 
            font-weight: bold !important; 
            text-transform: none !important; 
            margin-top: 14px !important; 
            margin-bottom: 6px !important; 
            letter-spacing: 0 !important; 
            border-radius: 0 !important;
            border-bottom: 1px solid #0f3f67 !important;
            font-family: "Times New Roman", Times, serif !important;
        }
        
        /* Tablas de datos — estilo APA limpio */
        .print-table { 
            width: 100% !important; 
            border-collapse: collapse !important; 
            margin-bottom: 0px !important; 
            table-layout: fixed !important; 
            page-break-inside: avoid !important; 
            font-family: "Times New Roman", Times, serif !important;
        }
        .print-table td { 
            font-size: 10pt !important; 
            border: 0.5px solid #dee2e6 !important; 
            vertical-align: middle !important; 
            word-wrap: break-word !important; 
            overflow: hidden !important; 
            padding: 6px 8px !important;
            color: #212529 !important;
            line-height: 1.4 !important;
        }
        
        .print-table td.label-cell { 
            font-weight: bold !important; 
            background: #f8f9fa !important; 
            width: 24% !important;
            color: #0f3f67 !important;
            font-size: 9.5pt !important;
        }
        
        .print-table td.descripcion-header { 
            font-weight: bold !important; 
            background: #f4f6f9 !important; 
            text-align: center !important; 
            font-size: 9pt !important; 
            letter-spacing: 0.5px !important;
            color: #0f3f67 !important;
            text-transform: uppercase !important;
        }
        
        .print-table td.descripcion-body { 
            height: auto !important; 
            min-height: 60px !important; 
            max-height: 120px !important; 
            vertical-align: top !important; 
            padding: 8px 12px !important; 
            text-align: justify !important; 
            line-height: 1.5 !important; 
            overflow-y: auto !important;
        }

        .text-anonimo { color: #c0392b !important; font-weight: bold !important; font-style: italic !important; }
        
        /* Pie de página — discreto y profesional */
        .print-footer { 
            margin-top: 18px !important; 
            text-align: center !important; 
            font-size: 8pt !important; 
            color: #6c757d !important; 
            border-top: 0.5px solid #dee2e6 !important; 
            padding-top: 8px !important; 
            page-break-inside: avoid !important;
            font-family: "Times New Roman", Times, serif !important;
            line-height: 1.4 !important;
        }
    }
    
    .whatsapp-status-container {
        background-color: #f4fdf7;
        border: 1px solid #c3e6cb;
        border-radius: 8px;
        padding: 15px;
        margin: 0px auto 15px auto;
        max-width: 1200px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .whatsapp-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.whatsapp-status-content p {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
    .whatsapp-link {
        color: #128C7E;
        font-weight: bold;
        text-decoration: underline;
        transition: color 0.2s ease;
    }
    .whatsapp-link:hover {
        color: #075E54;
    }
    .whatsapp-icon {
        display: flex;
        align-items: center;
    }

