* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #fff;
            min-height: 100vh;
        }

        .containertheme {
            width: 100%;
            background: #fff;
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
        }

        .navigation {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px 0;d
            margin-bottom: 20px;
            border-radius: 10px;
        }

        .nav-buttons {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .nav-btn {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.4);
            padding: 18px 35px;
            border-radius: 15px;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 220px;
            justify-content: center;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .nav-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .nav-btn:hover::before {
            left: 100%;
        }

        .nav-btn:hover {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
        }

        .nav-btn.active {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            color: #1e3c72;
            border-color: #ffffff;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px);
        }

        .nav-btn i {
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }

        .nav-btn:hover i {
            transform: scale(1.1);
        }

        .nav-btn.active i {
            color: #1e3c72;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.3;
        }

        .header-content {
            position: relative;
            z-index: 1;
        }

        .logo {
            font-size: 3rem;
            margin-bottom: 10px;
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .main-content {
            padding: 40px;
        }
        
        /* Optimización de contenido principal para móviles */
        @media (max-width: 768px) {
            .main-content {
                padding: 15px;
            }
            
            .content-section {
                margin-bottom: 20px;
            }
            
            .content-section.active {
                display: block;
            }
        }
        
        @media (max-width: 480px) {
            .main-content {
                padding: 10px;
            }
            
            .content-section {
                margin-bottom: 15px;
            }
        }

        .search-section {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 30px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        /* Optimización de sección de búsqueda para móviles */
        @media (max-width: 768px) {
            .search-section {
                padding: 20px 15px;
                margin-bottom: 20px;
                border-radius: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .search-section {
                padding: 15px 10px;
                margin-bottom: 15px;
                border-radius: 8px;
            }
        }

        .search-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #1e3c72, #00A651, #1e3c72);
        }

        .search-title {
            font-size: 2.2rem;
            color: #1e3c72;
            margin-bottom: 15px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .search-title i {
            font-size: 2rem;
            color: #00A651;
        }

        .search-subtitle {
            color: #666;
            margin-bottom: 35px;
            font-size: 1.2rem;
            line-height: 1.6;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-form {
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            gap: 25px;
            justify-content: center;
            align-items: end;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Media Queries para Responsive Design */
        
        /* Tablets y pantallas medianas */
        @media (max-width: 1024px) {
            .containertheme {
                margin: 0;
                border-radius: 0;
            }
            
            .main-content {
                padding: 30px;
            }
            
            .nav-buttons {
                gap: 15px;
            }
            
            .nav-btn {
                min-width: 180px;
                padding: 15px 25px;
                font-size: 1.1rem;
            }
        }
        
        /* Móviles grandes */
        @media (max-width: 768px) {
            body {
                padding: 0;
            }
            
            .containertheme {
                margin: 0;
                border-radius: 0;
            }
            
            .header {
                padding: 20px;
                border-radius: 0;
            }
            
            .header h1 {
                font-size: 1.4rem;
                line-height: 1.3;
                word-wrap: break-word;
                hyphens: auto;
            }
            
            .header p {
                font-size: 0.9rem;
                line-height: 1.3;
            }
            
            .logo {
                font-size: 2rem;
            }
            
            .navigation {
                padding: 10px 0;
                margin-bottom: 15px;
            }
            
            .nav-buttons {
                flex-direction: column;
                gap: 10px;
                padding: 0 10px;
            }
            
            .nav-btn {
                min-width: 100%;
                padding: 12px 10px;
                font-size: 0.85rem;
                height: 50px;
                min-height: 50px;
                word-wrap: break-word;
                text-align: center;
                line-height: 1.2;
            }
            
            .main-content {
                padding: 20px;
            }
            
            .search-section {
                padding: 20px;
                margin-bottom: 20px;
            }
            
            .search-title {
                font-size: 1.2rem;
                flex-direction: column;
                gap: 6px;
                flex-wrap: wrap;
                justify-content: center;
                text-align: center;
                word-wrap: break-word;
                hyphens: auto;
            }
            
            .search-subtitle {
                font-size: 0.9rem;
                margin-bottom: 20px;
                line-height: 1.4;
            }
            
            .search-form {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .form-group {
                min-width: auto;
            }
            
            .form-label {
                font-size: 1rem;
            }
            
            .form-input, .form-select {
                height: 50px;
                font-size: 16px; /* Previene zoom en iOS */
                padding: 12px 15px;
            }
            
            .btn-primary, .btn-secondary {
                height: 50px;
                font-size: 16px;
                padding: 12px 20px;
                min-height: 50px;
            }
        }
        
        /* Móviles pequeños */
        @media (max-width: 480px) {
            .header {
                padding: 15px;
            }
            
            .header h1 {
                font-size: 1.2rem;
                line-height: 1.2;
                word-wrap: break-word;
                hyphens: auto;
            }
            
            .logo {
                font-size: 2rem;
            }
            
            .main-content {
                padding: 15px;
            }
            
            .search-section {
                padding: 15px;
            }
            
            .search-title {
                font-size: 1rem;
                flex-direction: column;
                gap: 4px;
                text-align: center;
                word-wrap: break-word;
                hyphens: auto;
            }
            
            .nav-btn {
                padding: 10px 8px;
                font-size: 0.75rem;
                height: 45px;
                min-height: 45px;
                word-wrap: break-word;
                text-align: center;
                line-height: 1.1;
            }
            
            .form-input, .form-select {
                height: 45px;
                padding: 10px 12px;
            }
            
            .btn-primary, .btn-secondary {
                height: 45px;
                font-size: 14px;
                padding: 10px 15px;
                min-height: 45px;
            }
        }

        .search-section .form-group {
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .search-section .form-label {
            font-weight: 700;
            color: #1e3c72;
            margin-bottom: 10px;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .search-section .form-label::before {
            content: '/f0f6';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: 1.1rem;
            color: #00A651;
        }

        .search-section .form-input {
            padding: 18px 20px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            background: #ffffff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .search-section .form-input:focus {
            outline: none;
            border-color: #00A651;
            box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
            transform: translateY(-1px);
        }

        .search-section .form-input::placeholder {
            color: #999;
            font-style: italic;
        }

        .btn-search {
            background: linear-gradient(135deg, #00A651 0%, #008f47 100%);
            color: white;
            border: none;
            padding: 18px 35px;
            border-radius: 12px;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-search::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn-search:hover::before {
            left: 100%;
        }

        .btn-search:hover {
            background: linear-gradient(135deg, #008f47 0%, #007a3d 100%);
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
        }

        .btn-search:active {
            transform: translateY(-1px) scale(0.98);
        }

        .btn-search i {
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }

        .btn-search:hover i {
            transform: scale(1.1);
        }

        .results-section {
            display: none;
        }

        .results-section.show {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pqrs-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border: 1px solid #e0e0e0;
            transition: all 0.3s ease;
        }

        .pqrs-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        /* Optimización de tarjetas para móviles */
        @media (max-width: 768px) {
            .pqrs-card {
                padding: 15px;
                margin-bottom: 15px;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            }
            
            .pqrs-card:hover {
                transform: none; /* Desactivar hover en móviles */
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            }
            
            .pqrs-header {
                margin-bottom: 15px;
            }
            
            .pqrs-title {
                font-size: 0.9rem;
                margin-bottom: 6px;
                line-height: 1.3;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
            }
            
            .pqrs-number {
                font-size: 0.8rem;
                line-height: 1.3;
            }
            
            .pqrs-details {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .detail-card {
                padding: 12px;
                margin-bottom: 10px;
            }
            
            .detail-card h3 {
                font-size: 0.75rem;
                margin-bottom: 6px;
                line-height: 1.3;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
            }
            
            .detail-card p {
                font-size: 0.75rem;
                line-height: 1.3;
            }
            
            .status-badge, .priority-badge {
                font-size: 0.75rem;
                padding: 4px 8px;
                border-radius: 12px;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 8px;
                margin-top: 15px;
            }
            
            .action-buttons .btn {
                width: 100%;
                height: 40px;
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            .pqrs-card {
                padding: 12px;
                margin-bottom: 12px;
            }
            
            .pqrs-title {
                font-size: 0.8rem;
                line-height: 1.2;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
            }
            
            .pqrs-number {
                font-size: 0.75rem;
            }
            
            .detail-card {
                padding: 10px;
            }
            
            .detail-card h3 {
                font-size: 0.7rem;
                line-height: 1.2;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
            }
            
            .detail-card p {
                font-size: 0.7rem;
                line-height: 1.2;
            }
            
            .action-buttons .btn {
                height: 36px;
                font-size: 0.75rem;
            }
        }

        .pqrs-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
        }

        .pqrs-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: #00A651;
        }

        .pqrs-status {
            padding: 8px 16px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .status-recibida {
            background: #E3F2FD;
            color: #1976D2;
        }

        .status-proceso {
            background: #FFF3E0;
            color: #F57C00;
        }

        .status-resuelta {
            background: #E8F5E8;
            color: #2E7D32;
        }

        .status-cerrada {
            background: #F3E5F5;
            color: #7B1FA2;
        }

        .pqrs-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .detail-item {
            display: flex;
            flex-direction: column;
        }

        .detail-label {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .detail-value {
            font-size: 1.1rem;
            color: #2C2C2C;
            font-weight: 600;
        }

        .time-management {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .time-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .time-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2C2C2C;
        }

        .time-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .time-status.normal {
            background: #E8F5E8;
            color: #2E7D32;
        }

        .time-status.warning {
            background: #FFF3E0;
            color: #F57C00;
        }

        .time-status.critical {
            background: #FFEBEE;
            color: #D32F2F;
        }

        .time-status.expired {
            background: #F3E5F5;
            color: #7B1FA2;
        }

        .time-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }

        .time-item {
            text-align: center;
        }

        .time-label {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 5px;
        }

        .time-value {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2C2C2C;
        }

        .time-progress {
            width: 100%;
            height: 10px;
            background: #e0e0e0;
            border-radius: 5px;
            overflow: hidden;
        }

        .time-progress-bar {
            height: 100%;
            transition: all 0.3s ease;
        }

        .time-progress-bar.normal {
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
        }

        .time-progress-bar.warning {
            background: linear-gradient(90deg, #FF9800, #FFC107);
        }

        .time-progress-bar.critical {
            background: linear-gradient(90deg, #F44336, #E91E63);
        }

        .time-progress-bar.expired {
            background: linear-gradient(90deg, #9C27B0, #673AB7);
        }

        .communications-section {
            margin-top: 20px;
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .communication-item {
            display: flex;
            align-items: center;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            margin-bottom: 10px;
            border-left: 4px solid #00A651;
        }

        .communication-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
            color: white;
        }

        .communication-icon.email {
            background: #2196F3;
        }

        .communication-icon.phone {
            background: #4CAF50;
        }

        .communication-icon.whatsapp {
            background: #25D366;
        }

        .communication-icon.sms {
            background: #FF9800;
        }

        .communication-icon.respuesta {
            background: #00A651;
        }

        .communication-content {
            flex: 1;
        }

        .communication-type {
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 5px;
        }

        .communication-details {
            color: #666;
            font-size: 0.9rem;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .communication-time {
            color: #999;
            font-size: 0.8rem;
        }

        .satisfaction-section {
            background: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 100%);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
        }

        .impugnacion-section {
            background: linear-gradient(135deg, #FFF0F0 0%, #FFE0E0 100%);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }

        .satisfaction-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2E7D32;
            margin-bottom: 15px;
        }

        .satisfaction-stars {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-bottom: 15px;
        }

        .star {
            font-size: 2rem;
            color: #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .star:hover,
        .star.active {
            color: #FFD700;
            transform: scale(1.1);
        }

        .satisfaction-comment {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1rem;
            margin-bottom: 15px;
            resize: vertical;
            min-height: 100px;
        }

        .satisfaction-comment:focus {
            outline: none;
            border-color: #00A651;
            box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
        }

        .btn-submit-satisfaction {
            background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-submit-satisfaction:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
        }

        .no-results {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .no-results i {
            font-size: 4rem;
            color: #ddd;
            margin-bottom: 20px;
        }

        .no-results h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .no-results p {
            font-size: 1.1rem;
        }
        
        /* Optimización de no-results para móviles */
        @media (max-width: 768px) {
            .no-results {
                padding: 30px 20px;
            }
            
            .no-results i {
                font-size: 3rem;
                margin-bottom: 15px;
            }
            
            .no-results h3 {
                font-size: 1.2rem;
                margin-bottom: 8px;
            }
            
            .no-results p {
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 480px) {
            .no-results {
                padding: 25px 15px;
            }
            
            .no-results i {
                font-size: 2.5rem;
                margin-bottom: 12px;
            }
            
            .no-results h3 {
                font-size: 1.1rem;
                margin-bottom: 6px;
            }
            
            .no-results p {
                font-size: 0.85rem;
            }
        }

        .help-section {
            background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
            border-radius: 15px;
            padding: 30px;
            margin-top: 30px;
            text-align: center;
        }
        
        /* Optimización de sección de ayuda para móviles */
        @media (max-width: 768px) {
            .help-section {
                padding: 20px 15px;
                margin-top: 20px;
                border-radius: 10px;
            }
            
            .help-section h3 {
                font-size: 1.2rem;
                margin-bottom: 12px;
            }
            
            .help-section p {
                font-size: 0.9rem;
                line-height: 1.4;
            }
        }
        
        @media (max-width: 480px) {
            .help-section {
                padding: 15px 12px;
                margin-top: 15px;
                border-radius: 8px;
            }
            
            .help-section h3 {
                font-size: 1.1rem;
                margin-bottom: 10px;
            }
            
            .help-section p {
                font-size: 0.85rem;
                line-height: 1.3;
            }
        }

        .help-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 15px;
        }

        .help-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .help-item {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .help-item i {
            font-size: 2rem;
            color: #00A651;
            margin-bottom: 10px;
        }

        .help-item h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 10px;
        }

        .help-item p {
            color: #666;
            font-size: 0.9rem;
        }

        .contact-info {
            background: #2C2C2C;
            color: white;
            padding: 20px;
            text-align: center;
        }

        .contact-info h3 {
            margin-bottom: 15px;
        }

        .contact-details {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .contact-item i {
            color: #00A651;
        }

        /* Estilos del Formulario PQRS */
        .form-section {
            padding: 30px;
            border-bottom: 1px solid #eee;
        }

        .form-section:last-child {
            border-bottom: none;
        }
        
        /* Optimización para móviles - formularios */
        @media (max-width: 768px) {
            .form-containertheme {
                margin: 0;
                border-radius: 0;
                box-shadow: none;
            }
            
            .form-section {
                padding: 15px;
                margin-bottom: 10px;
                border-radius: 8px;
                background: #f8f9fa;
                border: 1px solid #e9ecef;
            }
            
            .form-section:last-child {
                border-bottom: 1px solid #e9ecef;
            }
            
            .section-title {
                font-size: 0.95rem;
                margin-bottom: 8px;
                padding-bottom: 6px;
                border-bottom: 2px solid #1e3c72;
                line-height: 1.3;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
            }
            
            .section-title i {
                font-size: 0.9rem;
                margin-right: 6px;
            }
            
            .field-help-text {
                display: none; /* Ocultar texto de ayuda largo en móviles */
            }
            
            .form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .form-group {
                margin-bottom: 15px;
            }
            
            .form-label {
                font-size: 0.85rem;
                margin-bottom: 5px;
                font-weight: 600;
                line-height: 1.3;
            }
            
            .form-input, .form-select, .form-textarea {
                font-size: 16px; /* Previene zoom en iOS */
                padding: 10px 12px;
                border-radius: 6px;
                border: 2px solid #e9ecef;
            }
            
            .form-textarea {
                min-height: 80px;
                resize: vertical;
            }
            
            .help-tooltip {
                margin-left: 5px;
            }
            
            .help-tooltip .tooltip-content {
                width: 200px;
                font-size: 0.8rem;
                padding: 8px;
            }
            
            .required-indicator {
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            .form-section {
                padding: 12px;
                margin-bottom: 8px;
            }
            
            .section-title {
                font-size: 0.85rem;
                margin-bottom: 6px;
                line-height: 1.2;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
            }
            
            .form-group {
                margin-bottom: 12px;
            }
            
            .form-label {
                font-size: 0.8rem;
                line-height: 1.2;
            }
            
            .form-input, .form-select, .form-textarea {
                font-size: 16px;
                padding: 8px 10px;
            }
            
            .help-tooltip .tooltip-content {
                width: 180px;
                font-size: 0.75rem;
            }
        }
        
        /* Mejoras adicionales para centrado y distribución en móviles */
        @media (max-width: 768px) {
            /* Centrar mejor los elementos del formulario */
            .form-containertheme {
                max-width: 100%;
                margin: 0 auto;
            }
            
            .form-section {
                max-width: 100%;
                margin: 0 auto 15px auto;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                max-width: 100%;
            }
            
            .form-group {
                width: 100%;
                max-width: 100%;
            }
            
            /* Mejorar espaciado de elementos específicos */
            .client-check-options {
                gap: 10px;
            }
            
            .client-check-options .radio-item {
                padding: 12px;
                margin-bottom: 8px;
            }
            
            /* Optimizar selectores de tema y subtema */
            .tema-subtema-containertheme {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            
            .tema-subtema-containertheme .form-group {
                width: 100%;
            }
            
            /* Mejorar espaciado de secciones específicas */
            .datos-bancarios {
                margin-top: 15px;
            }
            
            .datos-bancarios .form-grid {
                grid-template-columns: 1fr;
            }
            
            /* Optimizar botones de satisfacción */
            .satisfaction-stars {
                gap: 8px;
                margin-bottom: 20px;
            }
            
            .star {
                font-size: 1.8rem;
            }
            
            .satisfaction-comment {
                min-height: 80px;
                font-size: 16px;
            }
            
            /* Mejorar espaciado de alertas */
            .alert {
                margin: 10px 0;
                padding: 12px;
                font-size: 0.9rem;
            }
            
            /* Optimizar campos de archivo */
            .file-upload-area {
                padding: 20px 15px;
                border-radius: 8px;
            }
            
            .file-upload-area i {
                font-size: 2rem;
            }
            
            .file-upload-area p {
                font-size: 0.9rem;
                margin: 10px 0;
            }
        }
        
        @media (max-width: 480px) {
            /* Ajustes adicionales para móviles muy pequeños */
            .form-section {
                margin-bottom: 12px;
            }
            
            .form-grid {
                gap: 12px;
            }
            
            .client-check-options .radio-item {
                padding: 10px;
            }
            
            .satisfaction-stars {
                gap: 6px;
            }
            
            .star {
                font-size: 1.5rem;
            }
            
            .satisfaction-comment {
                min-height: 70px;
                font-size: 15px;
            }
            
            .file-upload-area {
                padding: 15px 10px;
            }
            
            .file-upload-area i {
                font-size: 1.8rem;
            }
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: white;
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: #1e3c72;
            box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-secondary:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }

        .pqrs-type-containertheme {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .pqrs-type-option {
            position: relative;
            cursor: pointer;
        }

        .pqrs-type-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .pqrs-type-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        .pqrs-type-card:hover {
            border-color: #1e3c72;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(30, 60, 114, 0.1);
        }

        .pqrs-type-option input[type="radio"]:checked + .pqrs-type-card {
            border-color: #1e3c72;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
        }

        .pqrs-type-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .pqrs-type-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .pqrs-type-description {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .required {
            color: #dc3545;
        }

        .form-actions {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 40px;
            padding: 30px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            border: 1px solid #dee2e6;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }

        .form-actions::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #00A651, #1e3c72, #00A651);
            background-size: 200% 100%;
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .form-actions .btn-secondary,
        .form-actions .btn-primary {
            min-width: 200px;
            height: 55px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .form-actions .btn-secondary {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: white;
        }

        .form-actions .btn-secondary:hover {
            background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
        }

        .form-actions .btn-primary {
            background: linear-gradient(135deg, #00A651 0%, #1e3c72 100%);
            color: white;
        }

        .form-actions .btn-primary:hover {
            background: linear-gradient(135deg, #008f47 0%, #1a345f 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 166, 81, 0.3);
        }

        .form-actions .btn-secondary:active,
        .form-actions .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .form-actions .btn-secondary i,
        .form-actions .btn-primary i {
            font-size: 18px;
            transition: transform 0.3s ease;
        }

        .form-actions .btn-secondary:hover i,
        .form-actions .btn-primary:hover i {
            transform: scale(1.1);
        }

        /* Efecto de ondas al hacer clic */
        .form-actions .btn-secondary::before,
        .form-actions .btn-primary::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .form-actions .btn-secondary:active::before,
        .form-actions .btn-primary:active::before {
            width: 300px;
            height: 300px;
        }

        /* Responsive para formularios en móviles */
        @media (max-width: 768px) {
            .form-actions {
                flex-direction: column;
                gap: 15px;
                padding: 20px;
                margin-top: 30px;
            }

            .form-actions .btn-secondary,
            .form-actions .btn-primary {
                min-width: 100%;
                height: 50px;
                font-size: 16px;
                min-height: 50px;
            }
            
            .form-group {
                margin-bottom: 20px;
            }
            
            .form-label {
                font-size: 1rem;
                margin-bottom: 8px;
            }
            
            .form-input, .form-select, .form-textarea {
                font-size: 16px; /* Previene zoom en iOS */
                padding: 12px 15px;
                border-radius: 8px;
            }
            
            .form-textarea {
                min-height: 120px;
                resize: vertical;
            }
            
            .checkbox-group, .radio-group {
                flex-direction: column;
                gap: 10px;
            }
            
            .checkbox-item, .radio-item {
                padding: 10px;
                border-radius: 8px;
                background: #f8f9fa;
                min-height: 50px; /* Mejorar área táctil */
                display: flex;
                align-items: center;
            }
            
            .checkbox-item input[type="checkbox"], .radio-item input[type="radio"] {
                margin-right: 10px;
                transform: scale(1.3); /* Más grande para touch */
                min-width: 20px;
                min-height: 20px;
            }
            
            .checkbox-item label, .radio-item label {
                font-size: 0.9rem;
                line-height: 1.4;
                cursor: pointer;
                flex: 1;
            }
        }
        
        @media (max-width: 480px) {
            .checkbox-item, .radio-item {
                padding: 8px;
                min-height: 45px;
            }
            
            .checkbox-item input[type="checkbox"], .radio-item input[type="radio"] {
                transform: scale(1.4);
                min-width: 18px;
                min-height: 18px;
            }
            
            .checkbox-item label, .radio-item label {
                font-size: 0.85rem;
            }
        }

        /* Estilos para botón deshabilitado en modal de confirmación */
        #btnConfirmarEnviar:disabled {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: #adb5bd;
            cursor: not-allowed;
            opacity: 0.6;
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        #btnConfirmarEnviar:disabled:hover {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        #btnConfirmarEnviar:disabled i {
            transform: none;
        }

        /* Estilos para la casilla de aprobación */
        #aprobarPlantilla {
            cursor: pointer;
            transform: scale(1.2);
        }

        #aprobarPlantilla:checked + div h4 {
            color: #00A651;
        }

        /* Animación para el botón cuando se habilita */
        #btnConfirmarEnviar:not(:disabled) {
            animation: enableButton 0.3s ease-in-out;
        }

        @keyframes enableButton {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }

        .alert-success {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }

        .alert-error {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
        }

        .section-title {
            font-size: 1.6rem;
            color: #1e3c72;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            border-radius: 2px;
        }

        .section-title i {
            font-size: 1.4rem;
            color: #2a5298;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .form-containertheme {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .page-title {
            font-size: 2.5rem;
            color: #2C2C2C;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .page-subtitle {
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1rem;
        }
        
        /* Optimización de títulos de página para móviles */
        @media (max-width: 768px) {
            .page-title {
                font-size: 1.1rem;
                margin-bottom: 8px;
                gap: 6px;
                line-height: 1.3;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
                flex-direction: column;
                text-align: center;
            }
            
            .page-subtitle {
                font-size: 0.85rem;
                margin-bottom: 20px;
                line-height: 1.3;
            }
        }
        
        @media (max-width: 480px) {
            .page-title {
                font-size: 0.95rem;
                margin-bottom: 6px;
                gap: 4px;
                line-height: 1.2;
                word-wrap: break-word;
                hyphens: auto;
                display: block;
                width: 100%;
                flex-direction: column;
                text-align: center;
            }
            
            .page-subtitle {
                font-size: 0.8rem;
                margin-bottom: 15px;
            }
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        /* Estilos para verificación de cliente */
        .client-check-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            text-align: center;
        }

        .client-check-title {
            font-size: 1.8rem;
            color: #2C2C2C;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .client-check-subtitle {
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1rem;
        }

        .client-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .client-check-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .client-option {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .client-option:hover {
            border-color: #1e3c72;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(30, 60, 114, 0.1);
        }

        .client-option.selected {
            border-color: #1e3c72;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
        }

        .client-option-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #1e3c72;
        }

        .client-option.selected .client-option-icon {
            color: white;
        }

        .client-option-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .client-option-description {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        /* Optimización de opciones de cliente para móviles - Diseño horizontal compacto */
        @media (max-width: 768px) {
            .client-check-options {
                grid-template-columns: 1fr;
                gap: 10px;
                margin-bottom: 15px;
            }
            
            .client-option {
                padding: 10px 12px;
                border-radius: 10px;
                display: flex;
                flex-direction: row;
                align-items: center;
                text-align: left;
                gap: 10px;
                min-height: 60px;
                box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            }
            
            .client-option:hover {
                transform: none;
            }
            
            .client-option.selected {
                transform: none;
                box-shadow: 0 2px 8px rgba(0, 166, 81, 0.15);
            }
            
            .client-option-icon {
                font-size: 1.5rem;
                margin-bottom: 0;
                min-width: 36px;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(30, 60, 114, 0.08);
                border-radius: 50%;
                flex-shrink: 0;
            }
            
            .client-option.selected .client-option-icon {
                background: rgba(0, 166, 81, 0.12);
                color: #00A651;
            }
            
            .client-option-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 2px;
            }
            
            .client-option-title {
                font-size: 0.85rem;
                margin-bottom: 0;
                font-weight: 600;
                line-height: 1.2;
                word-wrap: break-word;
            }
            
            .client-option-description {
                font-size: 0.7rem;
                opacity: 0.8;
                line-height: 1.2;
                word-wrap: break-word;
            }
        }
        
        @media (max-width: 480px) {
            .client-check-options {
                gap: 8px;
                margin-bottom: 12px;
            }
            
            .client-option {
                padding: 8px 10px;
                border-radius: 8px;
                gap: 8px;
                min-height: 54px;
            }
            
            .client-option-icon {
                font-size: 1.3rem;
                min-width: 32px;
                width: 32px;
                height: 32px;
            }
            
            .client-option-title {
                font-size: 0.8rem;
            }
            
            .client-option-description {
                font-size: 0.65rem;
            }
        }

        .client-search-section {
            display: none;
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        /* Optimización de sección de búsqueda de cliente para móviles */
        @media (max-width: 768px) {
            .client-search-section {
                padding: 20px 15px;
                margin-top: 15px;
                border-radius: 10px;
            }
            
            .client-search-section h3 {
                font-size: 1.1rem;
                margin-bottom: 15px;
            }
        }
        
        @media (max-width: 480px) {
            .client-search-section {
                padding: 15px 12px;
                margin-top: 12px;
                border-radius: 8px;
            }
            
            .client-search-section h3 {
                font-size: 1rem;
                margin-bottom: 12px;
            }
        }

        .client-search-section.show {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        .client-info {
            background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            display: none;
        }
        
        /* Optimización de información del cliente para móviles */
        @media (max-width: 768px) {
            .client-info {
                padding: 15px;
                margin-top: 15px;
                border-radius: 8px;
            }
            
            .client-info h3 {
                font-size: 1.1rem;
                margin-bottom: 12px;
            }
            
            .client-details {
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 480px) {
            .client-info {
                padding: 12px;
                margin-top: 12px;
                border-radius: 6px;
            }
            
            .client-info h3 {
                font-size: 1rem;
                margin-bottom: 10px;
            }
            
            .client-details {
                font-size: 0.85rem;
            }
        }

        .client-info.show {
            display: block;
        }

        .vehicle-selector-wrapper {
            background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
            border-radius: 10px;
            padding: 20px;
            margin-top: 15px;
            border: 1px solid #c8e6c9;
        }

        .vehicle-selector-wrapper h3 {
            color: #2e7d32;
            font-size: 1.1rem;
            margin: 0 0 12px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .vehicle-selector-wrapper .form-select {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #c8e6c9;
            border-radius: 8px;
            font-size: 0.95rem;
            background: white;
            transition: border-color 0.2s;
        }

        .vehicle-selector-wrapper .form-select:focus {
            border-color: #2e7d32;
            outline: none;
            box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
        }

        @media (max-width: 768px) {
            .vehicle-selector-wrapper {
                padding: 15px;
                margin-top: 12px;
            }
            .vehicle-selector-wrapper h3 {
                font-size: 1rem;
            }
        }

        .client-info h4 {
            color: #1e3c72;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .client-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .client-detail {
            background: white;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #1e3c72;
        }

        .client-detail-label {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 5px;
        }

        .client-detail-value {
            font-weight: 600;
            color: #2C2C2C;
        }

        /* Estilos para carga de evidencias */
        .evidence-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
        }

        .file-upload-area {
            border: 2px dashed #1e3c72;
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            background: white;
            transition: all 0.3s ease;
            cursor: pointer;
            margin-bottom: 20px;
        }

        .file-upload-area:hover {
            background: #f8f9fa;
            border-color: #2a5298;
        }

        .file-upload-area.dragover {
            background: #e3f2fd;
            border-color: #2a5298;
        }

        .upload-icon {
            font-size: 3rem;
            color: #1e3c72;
            margin-bottom: 15px;
        }

        .upload-text {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

        .upload-hint {
            color: #999;
            font-size: 0.9rem;
        }

        .file-preview {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .file-item {
            background: white;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            position: relative;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .file-item img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .file-item .remove-file {
            position: absolute;
            top: 5px;
            right: 5px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .file-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 5px;
            word-break: break-word;
        }

        .file-size {
            font-size: 0.8rem;
            color: #666;
        }

        .evidence-types {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .evidence-type-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .evidence-type-card:hover {
            border-color: #1e3c72;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(30, 60, 114, 0.1);
        }

        .evidence-type-card.has-file {
            border-color: #28a745;
            background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
        }
        
        /* Optimización de evidence-type-card para móviles - Diseño horizontal compacto */
        @media (max-width: 768px) {
            .evidence-types {
                grid-template-columns: 1fr;
                gap: 8px;
            }
            
            .evidence-type-card {
                padding: 8px 10px;
                border-radius: 8px;
                min-height: auto;
                display: flex;
                flex-direction: row;
                align-items: center;
                text-align: left;
                gap: 8px;
                box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            }
            
            .evidence-type-card:hover {
                transform: none;
            }
            
            .evidence-type-icon {
                font-size: 1.3rem;
                margin-bottom: 0;
                min-width: 32px;
                width: 32px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(30, 60, 114, 0.08);
                border-radius: 50%;
                flex-shrink: 0;
            }
            
            .evidence-type-card.has-file .evidence-type-icon {
                background: rgba(40, 167, 69, 0.12);
                color: #28a745;
            }
            
            .evidence-type-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 1px;
                min-width: 0;
            }
            
            .evidence-type-name {
                font-size: 0.8rem;
                margin-bottom: 0;
                font-weight: 600;
                line-height: 1.2;
                word-wrap: break-word;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .evidence-type-description {
                font-size: 0.65rem;
                opacity: 0.75;
                line-height: 1.1;
                margin-bottom: 0;
                word-wrap: break-word;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                line-clamp: 1;
                -webkit-box-orient: vertical;
            }
            
            .evidence-upload-btn {
                margin-top: 0;
                padding: 4px 8px;
                font-size: 0.65rem;
                height: 26px;
                min-width: 55px;
                border-radius: 13px;
                flex-shrink: 0;
            }
            
            .evidence-upload-btn i {
                font-size: 0.6rem;
            }
            
            .evidence-preview {
                display: none;
            }
        }
        
        @media (max-width: 480px) {
            .evidence-types {
                gap: 6px;
            }
            
            .evidence-type-card {
                padding: 6px 8px;
                border-radius: 6px;
                gap: 6px;
            }
            
            .evidence-type-icon {
                font-size: 1.1rem;
                min-width: 28px;
                width: 28px;
                height: 28px;
            }
            
            .evidence-type-name {
                font-size: 0.75rem;
                line-height: 1.1;
            }
            
            .evidence-type-description {
                font-size: 0.6rem;
                line-height: 1.1;
            }
            
            .evidence-upload-btn {
                padding: 3px 6px;
                font-size: 0.6rem;
                height: 24px;
                min-width: 50px;
                border-radius: 12px;
            }
            
            .evidence-upload-btn i {
                font-size: 0.55rem;
            }
        }

        .evidence-type-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #1e3c72;
        }

        .evidence-type-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: #2C2C2C;
        }

        .evidence-type-description {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 15px;
        }

        .evidence-upload-btn {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 auto;
        }

        .evidence-upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
        }

        .evidence-preview {
            margin-top: 15px;
            min-height: 60px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .evidence-file-item {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .evidence-file-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .file-info-small {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }

        .file-icon-small {
            font-size: 1.2rem;
            color: #1e3c72;
        }

        .file-details-small {
            flex: 1;
        }

        .file-name-small {
            font-size: 0.9rem;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 2px;
        }

        .file-size-small {
            font-size: 0.8rem;
            color: #666;
        }

        .file-actions-small {
            display: flex;
            gap: 5px;
        }

        .file-action-btn {
            background: none;
            border: none;
            padding: 5px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .file-action-btn:hover {
            background: #e9ecef;
        }

        .file-action-btn.view {
            color: #1e3c72;
        }

        .file-action-btn.delete {
            color: #dc3545;
        }

        /* Estilos del Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            overflow-y: auto;
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modalFadeIn 0.3s ease;
            padding: 20px;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            max-width: 90vw;
            max-height: 90vh;
            width: 800px;
            display: flex;
            flex-direction: column;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            padding: 20px 25px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border-radius: 15px 15px 0 0;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .modal-body {
            padding: 25px;
            flex: 1;
            overflow-y: auto;
        }

        .file-modal-content {
            max-width: 90vw;
            max-height: 90vh;
            width: 1000px;
        }

        .file-viewer-containertheme {
            max-height: 60vh;
            overflow: auto;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            background: #ffffff;
        }

        .file-viewer {
            margin-bottom: 20px;
            min-height: 300px;
            border: none;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            padding: 20px;
        }

        .file-viewer img {
            max-width: 100%;
            max-height: 500px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            object-fit: contain;
        }

        .file-viewer video {
            max-width: 100%;
            max-height: 500px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .file-viewer iframe {
            width: 100%;
            height: 500px;
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .file-info {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
        }

        .file-info h4 {
            color: #1e3c72;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .file-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .file-detail {
            background: white;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #1e3c72;
        }

        .file-detail-label {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 5px;
        }

        .file-detail-value {
            font-weight: 600;
            color: #2C2C2C;
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid #e9ecef;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            background: #f8f9fa;
            border-radius: 0 0 15px 15px;
        }

        .btn-danger {
            background: #dc3545;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-danger:hover {
            background: #c82333;
            transform: translateY(-2px);
        }

        /* Estilos para opciones de anonimato */
        .anonymous-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .anonymous-option {
            cursor: pointer;
        }

        .anonymous-option input[type="radio"] {
            display: none;
        }

        .anonymous-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .anonymous-card:hover {
            border-color: #1e3c72;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(30, 60, 114, 0.1);
        }

        .anonymous-option input[type="radio"]:checked + .anonymous-card {
            border-color: #1e3c72;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
        }

        .anonymous-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #1e3c72;
        }

        .anonymous-option input[type="radio"]:checked + .anonymous-card .anonymous-icon {
            color: white;
        }

        .anonymous-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .anonymous-option input[type="radio"]:checked + .anonymous-card .anonymous-title {
            color: white;
        }

        .anonymous-description {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .anonymous-option input[type="radio"]:checked + .anonymous-card .anonymous-description {
            color: rgba(255, 255, 255, 0.9);
        }
        
        /* Optimización de anonymous-card para móviles - Diseño horizontal compacto */
        @media (max-width: 768px) {
            .anonymous-options {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .anonymous-card {
                padding: 10px 12px;
                border-radius: 10px;
                min-height: auto;
                display: flex;
                flex-direction: row;
                align-items: center;
                text-align: left;
                gap: 10px;
                box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            }
            
            .anonymous-card:hover {
                transform: none;
            }
            
            .anonymous-option input[type="radio"]:checked + .anonymous-card {
                transform: none;
                box-shadow: 0 2px 8px rgba(30, 60, 114, 0.25);
            }
            
            .anonymous-icon {
                font-size: 1.5rem;
                margin-bottom: 0;
                min-width: 36px;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(30, 60, 114, 0.08);
                border-radius: 50%;
                flex-shrink: 0;
                color: #1e3c72;
            }
            
            .anonymous-option input[type="radio"]:checked + .anonymous-card .anonymous-icon {
                background: rgba(255, 255, 255, 0.2);
                color: white;
            }
            
            .anonymous-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 2px;
            }
            
            .anonymous-title {
                font-size: 0.85rem;
                margin-bottom: 0;
                font-weight: 600;
                line-height: 1.2;
                word-wrap: break-word;
            }
            
            .anonymous-description {
                font-size: 0.7rem;
                opacity: 0.8;
                line-height: 1.2;
                word-wrap: break-word;
            }
            
            .anonymous-option input[type="radio"]:checked + .anonymous-card .anonymous-description {
                opacity: 0.9;
            }
        }
        
        @media (max-width: 480px) {
            .anonymous-options {
                gap: 8px;
            }
            
            .anonymous-card {
                padding: 8px 10px;
                border-radius: 8px;
                gap: 8px;
            }
            
            .anonymous-icon {
                font-size: 1.3rem;
                min-width: 32px;
                width: 32px;
                height: 32px;
            }
            
            .anonymous-title {
                font-size: 0.8rem;
            }
            
            .anonymous-description {
                font-size: 0.65rem;
            }
        }

        /* Estilos para información de anonimato */
        .alert-info {
            background: #e3f2fd;
            border: 1px solid #2196F3;
            color: #1565C0;
            padding: 20px;
            border-radius: 10px;
            margin-top: 15px;
            line-height: 1.6;
        }

        .alert-info i {
            color: #2196F3;
            margin-right: 10px;
        }

        .help-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 30px;
            margin-top: 30px;
        }

        .help-title {
            font-size: 1.8rem;
            color: #1e3c72;
            margin-bottom: 20px;
            font-weight: 600;
            text-align: center;
        }

        .help-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .help-item {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-left: 5px solid #1e3c72;
        }

        .help-item h4 {
            color: #1e3c72;
            font-size: 1.2rem;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .help-item p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        .help-item .example {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            font-style: italic;
            color: #555;
        }

        .help-item .example strong {
            color: #1e3c72;
        }

        /* Estilos para Acordeón */
        .accordion {
            margin-top: 20px;
        }

        .accordion-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            margin-bottom: 10px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .accordion-header {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 20px 25px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            border-bottom: 1px solid #e9ecef;
        }

        .accordion-header:hover {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
        }

        .accordion-header:hover h4 {
            color: white;
        }

        .accordion-header:hover .accordion-icon {
            color: white;
        }

        .accordion-header h4 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
            color: #1e3c72;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .accordion-icon {
            font-size: 1.2rem;
            color: #1e3c72;
            transition: transform 0.3s ease;
        }

        .accordion-item.active .accordion-icon {
            transform: rotate(180deg);
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: white;
        }

        .accordion-item.active .accordion-content {
            max-height: 1000px;
        }

        .accordion-content {
            padding: 0 25px;
        }

        .accordion-content p {
            margin: 20px 0 15px 0;
            line-height: 1.6;
            color: #666;
        }

        .accordion-content .example {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0 20px 0;
            font-style: italic;
            color: #555;
            border-left: 4px solid #1e3c72;
        }

        .accordion-content .example strong {
            color: #1e3c72;
        }
        
        /* Optimización de help-section y accordion para móviles */
        @media (max-width: 768px) {
            .help-section {
                padding: 20px 15px;
                margin-top: 20px;
                border-radius: 12px;
                text-align: left;
            }
            
            .help-title {
                font-size: 1.2rem;
                margin-bottom: 12px;
                text-align: center;
                line-height: 1.3;
                word-wrap: break-word;
            }
            
            .help-section p {
                font-size: 0.9rem;
                line-height: 1.4;
                margin-bottom: 15px;
                text-align: center;
            }
            
            .accordion {
                margin-top: 15px;
            }
            
            .accordion-item {
                margin-bottom: 10px;
                border-radius: 10px;
            }
            
            .accordion-header {
                padding: 14px 16px;
                border-radius: 10px;
            }
            
            .accordion-header h4 {
                font-size: 0.9rem;
                line-height: 1.3;
                word-wrap: break-word;
                gap: 8px;
            }
            
            .accordion-header h4 i {
                font-size: 0.9rem;
            }
            
            .accordion-icon {
                font-size: 1rem;
            }
            
            .accordion-content {
                padding: 0 16px;
            }
            
            .accordion-content p {
                margin: 15px 0 12px 0;
                font-size: 0.85rem;
                line-height: 1.5;
            }
            
            .accordion-content .example {
                padding: 12px;
                margin: 12px 0 15px 0;
                font-size: 0.8rem;
                border-radius: 6px;
            }
        }
        
        @media (max-width: 480px) {
            .help-section {
                padding: 15px 12px;
                margin-top: 15px;
                border-radius: 10px;
            }
            
            .help-title {
                font-size: 1.1rem;
                margin-bottom: 10px;
            }
            
            .help-section p {
                font-size: 0.85rem;
                margin-bottom: 12px;
            }
            
            .accordion {
                margin-top: 12px;
            }
            
            .accordion-item {
                margin-bottom: 8px;
                border-radius: 8px;
            }
            
            .accordion-header {
                padding: 12px 14px;
                border-radius: 8px;
            }
            
            .accordion-header h4 {
                font-size: 0.85rem;
                gap: 6px;
            }
            
            .accordion-header h4 i {
                font-size: 0.85rem;
            }
            
            .accordion-icon {
                font-size: 0.9rem;
            }
            
            .accordion-content {
                padding: 0 14px;
            }
            
            .accordion-content p {
                margin: 12px 0 10px 0;
                font-size: 0.8rem;
                line-height: 1.4;
            }
            
            .accordion-content .example {
                padding: 10px;
                margin: 10px 0 12px 0;
                font-size: 0.75rem;
            }
        }

        /* Estilos para Editor de Texto Enriquecido */
        .rich-text-editor-containertheme {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            overflow: hidden;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .editor-toolbar {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-bottom: 1px solid #dee2e6;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            gap: 5px;
            flex-wrap: wrap;
        }

        .editor-btn {
            background: none;
            border: 1px solid transparent;
            padding: 8px 10px;
            border-radius: 6px;
            cursor: pointer;
            color: #1e3c72;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 35px;
            height: 35px;
        }

        .editor-btn:hover {
            background: #1e3c72;
            color: white;
            border-color: #1e3c72;
            transform: translateY(-1px);
        }

        .editor-btn.active {
            background: #1e3c72;
            color: white;
            border-color: #1e3c72;
        }

        .editor-separator {
            width: 1px;
            height: 25px;
            background: #dee2e6;
            margin: 0 5px;
        }

        .editor-content {
            min-height: 150px;
            padding: 15px;
            border: none;
            outline: none;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 14px;
            line-height: 1.6;
            color: #2C2C2C;
            background: white;
            resize: vertical;
            overflow-y: auto;
        }

        .editor-content:empty:before {
            content: attr(data-placeholder);
            color: #999;
            font-style: italic;
            pointer-events: none;
        }

        .editor-content:focus {
            outline: none;
        }

        /* Estilos para Editor de Observaciones */
        .observations-editor-containertheme {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            overflow: hidden;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .observations-editor-containertheme:focus-within {
            border-color: #1e3c72;
            box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
        }

        /* Estilos para campos de solo lectura */
        .form-input[readonly] {
            background-color: #f8f9fa;
            color: #6c757d;
            cursor: not-allowed;
            border-color: #e9ecef;
        }

        .form-input[readonly]:focus {
            border-color: #e9ecef;
            box-shadow: none;
        }

        /* Estilos para Footer */
        .footer {
            background: linear-gradient(135deg, #00A651 0%, #00C853 100%);
            color: white;
            text-align: center;
            padding: 20px;
            margin: 20px 10px 10px 10px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .footer p {
            margin: 0;
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .footer .company-name {
            font-weight: 600;
            color: #e8eaec;
        }

        /* Estilos para Editor PQRS */
        .pqrs-editor-containertheme {
            border: 2px dashed #e9ecef;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            background: #f8f9fa;
            transition: all 0.3s ease;
        }

        .pqrs-editor-containertheme:hover {
            border-color: #1e3c72;
            background: #f0f4ff;
        }

        .pqrs-preview {
            margin-bottom: 15px;
            color: #6c757d;
            font-style: italic;
        }

        .pqrs-editor-btn {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
        }

        .pqrs-editor-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
        }

        .pqrs-modal-content {
            width: 95%;
            max-width: 1200px;
            height: 90vh;
            max-height: 900px;
            margin: auto;
            position: relative;
        }

        .pqrs-editor-full {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .pqrs-editor-full .editor-content {
            flex: 1;
            min-height: 400px;
            max-height: 500px;
            overflow-y: auto;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
            font-size: 14px;
            line-height: 1.6;
        }

        .pqrs-editor-full .editor-toolbar {
            margin-bottom: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .pqrs-structure {
            background: #e3f2fd;
            border-left: 4px solid #2196f3;
            padding: 15px;
            margin: 15px 0;
            border-radius: 0 8px 8px 0;
        }

        .pqrs-structure h4 {
            color: #1976d2;
            margin: 0 0 10px 0;
            font-size: 1.1rem;
        }

        .pqrs-structure p {
            margin: 5px 0;
            color: #424242;
        }

        .pqrs-field {
            background: #fff3e0;
            border: 1px solid #ffb74d;
            padding: 8px 12px;
            border-radius: 4px;
            margin: 5px 0;
            font-weight: 500;
            color: #e65100;
        }

        .pqrs-field::before {
            content: "[";
        }

        .pqrs-field::after {
            content: "]";
        }

        .editor-content p {
            margin: 0 0 10px 0;
        }

        .editor-content ul, .editor-content ol {
            margin: 10px 0;
            padding-left: 20px;
        }

        .editor-content li {
            margin: 5px 0;
        }

        .editor-content strong {
            font-weight: bold;
        }

        .editor-content em {
            font-style: italic;
        }

        .editor-content u {
            text-decoration: underline;
        }

        /* Estilos para ayudas de campos */
        .field-help {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .field-help-icon {
            color: #1e3c72;
            font-size: 14px;
            cursor: help;
            transition: color 0.3s ease;
        }

        .field-help-icon:hover {
            color: #2a5298;
        }

        .field-help-text {
            font-size: 12px;
            color: #666;
            font-style: italic;
            line-height: 1.4;
            background: #f8f9fa;
            padding: 8px 12px;
            border-radius: 6px;
            border-left: 3px solid #1e3c72;
            margin-top: 5px;
        }

        .form-label-with-help {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .help-tooltip {
            position: relative;
            display: inline-block;
        }

        .help-tooltip .tooltip-content {
            visibility: hidden;
            width: 250px;
            background-color: #1e3c72;
            color: white;
            text-align: left;
            border-radius: 8px;
            padding: 12px;
            position: absolute;
            z-index: 1000;
            bottom: 125%;
            left: 50%;
            margin-left: -125px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 12px;
            line-height: 1.4;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        /* Optimización de tooltips para móviles */
        @media (max-width: 768px) {
            .help-tooltip .tooltip-content {
                width: 200px;
                font-size: 11px;
                padding: 8px;
                margin-left: -100px;
                bottom: 110%;
            }
            
            .help-tooltip .field-help-icon {
                font-size: 0.9rem;
                color: #00A651;
                cursor: pointer;
            }
            
            /* Mejorar visibilidad del icono de ayuda */
            .help-tooltip:hover .field-help-icon {
                color: #1e3c72;
                transform: scale(1.1);
            }
        }
        
        @media (max-width: 480px) {
            .help-tooltip .tooltip-content {
                width: 180px;
                font-size: 10px;
                padding: 6px;
                margin-left: -90px;
            }
            
            .help-tooltip .field-help-icon {
                font-size: 0.8rem;
            }
        }

        .help-tooltip .tooltip-content::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #1e3c72 transparent transparent transparent;
        }

        .help-tooltip:hover .tooltip-content {
            visibility: visible;
            opacity: 1;
        }

        .required-indicator {
            color: #dc3545;
            font-weight: bold;
        }

        /* ══ CLASES PARA DOCUMENTO PQRS GENERADO ════════════════ */
        .pqrs-documento {
            font-family: 'Times New Roman', serif;
            line-height: 1.6;
            color: #333;
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
            background: white;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        .pqrs-documento h1 {
            color: #1e3c72;
            font-size: 24px;
            margin: 0;
            font-weight: bold;
            text-transform: uppercase;
        }

        .pqrs-documento h2 {
            color: #1e3c72;
            font-size: 18px;
            margin: 0 0 15px 0;
            padding-bottom: 5px;
            border-bottom: 2px solid #e9ecef;
        }

        .pqrs-documento h3 {
            color: #1e3c72;
            font-size: 16px;
            margin: 0 0 15px 0;
            padding-bottom: 5px;
            border-bottom: 1px solid #e9ecef;
        }

        .pqrs-encabezado {
            text-align: center;
            margin-bottom: 40px;
            border-bottom: 3px solid #1e3c72;
            padding-bottom: 20px;
        }

        .pqrs-encabezado .pqrs-asunto {
            margin: 10px 0 0 0;
            font-size: 16px;
            color: #1e3c72;
            font-weight: bold;
        }

        .pqrs-encabezado .pqrs-ley {
            margin: 5px 0 0 0;
            font-size: 12px;
            color: #888;
        }

        .pqrs-radicacion {
            background: #f8f9fa;
            padding: 15px;
            border-left: 4px solid #1e3c72;
            margin-bottom: 30px;
        }

        .pqrs-radicacion p {
            margin: 5px 0 0 0;
        }

        .pqrs-radicacion .pqrs-radicacion-titulo {
            margin: 0;
            font-weight: bold;
            color: #1e3c72;
        }

        .pqrs-tabla {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
        }

        .pqrs-tabla td {
            padding: 8px 0;
            border-bottom: 1px dotted #ccc;
        }

        .pqrs-tabla td:first-child {
            width: 30%;
            font-weight: bold;
        }

        .pqrs-alerta {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 15px;
        }

        .pqrs-alerta p {
            margin: 0;
        }

        .pqrs-alerta .pqrs-alerta-titulo {
            font-weight: bold;
            color: #856404;
        }

        .pqrs-alerta .pqrs-alerta-texto {
            color: #856404;
        }

        .pqrs-alerta-verde {
            background: #e8f5e8;
            border: 1px solid #c3e6c3;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 15px;
        }

        .pqrs-alerta-verde p {
            margin: 0;
        }

        .pqrs-alerta-verde .pqrs-alerta-titulo {
            font-weight: bold;
            color: #2d5a2d;
        }

        .pqrs-alerta-verde .pqrs-alerta-texto {
            color: #2d5a2d;
        }

        .pqrs-seccion {
            margin-bottom: 30px;
        }

        .pqrs-caja {
            background: #f8f9fa;
            padding: 20px;
            border: 1px solid #e9ecef;
            border-radius: 5px;
            min-height: 100px;
        }

        .pqrs-caja .pqrs-caja-label {
            margin: 0 0 15px 0;
            font-style: italic;
            color: #666;
        }

        .pqrs-caja .pqrs-caja-placeholder {
            margin: 0;
            color: #999;
            font-style: italic;
        }

        .pqrs-firma {
            text-align: center;
            margin-top: 50px;
        }

        .pqrs-firma .pqrs-firma-linea {
            border-top: 1px solid #333;
            width: 300px;
            margin: 0 auto 10px auto;
            padding-top: 10px;
        }

        .pqrs-firma .pqrs-firma-ciudad {
            margin: 10px 0 0 0;
            font-size: 14px;
            color: #666;
        }

        /* Opciones de sección al generar documento */
        .pqrs-section-opts {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            padding: 10px 15px;
            background: #f0f4ff;
            border: 1px solid #c7d4f0;
            border-radius: 8px;
            margin: 10px 0;
            align-items: center;
        }

        .pqrs-section-opts label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #1e3c72;
            cursor: pointer;
            user-select: none;
        }

        .pqrs-section-opts label input[type="checkbox"] {
            accent-color: #1e3c72;
        }

        /* Responsive para el editor */
        @media (max-width: 768px) {
            .editor-toolbar {
                padding: 10px;
                gap: 5px;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .editor-btn {
                padding: 8px 10px;
                min-width: 40px;
                height: 40px;
                font-size: 14px;
                min-height: 40px;
            }
            
            .editor-content {
                min-height: 150px;
                padding: 15px;
                font-size: 16px; /* Previene zoom en iOS */
                line-height: 1.5;
            }
            
            .editor-toolbar .editor-btn-group {
                display: flex;
                gap: 5px;
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 480px) {
            .editor-toolbar {
                padding: 8px;
                gap: 3px;
            }
            
            .editor-btn {
                padding: 6px 8px;
                min-width: 35px;
                height: 35px;
                font-size: 12px;
                min-height: 35px;
            }
            
            .editor-content {
                min-height: 120px;
                padding: 12px;
                font-size: 14px;
            }
        }

        /* Estilos para secciones adicionales */
        .documents-section {
            margin-top: 20px;
        }

        .document-item {
            display: flex;
            align-items: center;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            margin-bottom: 10px;
            border-left: 4px solid #2196F3;
            transition: all 0.3s ease;
        }

        .document-item:hover {
            background: #e3f2fd;
            transform: translateX(5px);
        }

        .document-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
            color: white;
            background: #2196F3;
        }

        .document-content {
            flex: 1;
        }

        .document-name {
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 5px;
        }

        .document-meta {
            color: #666;
            font-size: 0.9rem;
        }

        .document-download {
            background: #00A651;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .document-download:hover {
            background: #008F47;
            transform: translateY(-2px);
        }

        .status-history {
            margin-top: 20px;
        }

        .status-timeline {
            position: relative;
            padding-left: 30px;
        }

        .status-timeline::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #e0e0e0;
        }

        .status-item {
            position: relative;
            margin-bottom: 20px;
            padding: 15px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-left: 4px solid #00A651;
        }

        .status-item::before {
            content: '';
            position: absolute;
            left: -22px;
            top: 20px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #00A651;
            border: 3px solid white;
            box-shadow: 0 0 0 2px #00A651;
        }

        .status-item.completed::before {
            background: #4CAF50;
            box-shadow: 0 0 0 2px #4CAF50;
        }

        .status-item.current::before {
            background: #FF9800;
            box-shadow: 0 0 0 2px #FF9800;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 2px #FF9800; }
            50% { box-shadow: 0 0 0 8px rgba(255, 152, 0, 0.3); }
            100% { box-shadow: 0 0 0 2px #FF9800; }
        }

        .status-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .status-name {
            font-weight: 600;
            color: #2C2C2C;
            font-size: 1.1rem;
        }

        .status-date {
            color: #666;
            font-size: 0.9rem;
        }

        .status-user {
            color: #00A651;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .status-observations {
            color: #666;
            font-style: italic;
        }

        .priority-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .priority-alta {
            background: #FFEBEE;
            color: #D32F2F;
        }

        .priority-media {
            background: #FFF3E0;
            color: #F57C00;
        }

        .priority-baja {
            background: #E8F5E8;
            color: #2E7D32;
        }

        .estimated-resolution {
            background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
        }

        .estimated-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2C2C2C;
            margin-bottom: 10px;
        }

        .estimated-date {
            font-size: 1.3rem;
            font-weight: 700;
            color: #00A651;
            margin-bottom: 5px;
        }

        .estimated-note {
            color: #666;
            font-size: 0.9rem;
        }

        .communication-user {
            color: #00A651;
            font-weight: 600;
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 20px;
            }

            .search-form {
                flex-direction: column;
                align-items: stretch;
            }

            .form-group {
                min-width: auto;
            }

            .pqrs-details {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .time-details {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .contact-details {
                flex-direction: column;
                gap: 15px;
            }
            
            .detail-card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .detail-card h3 {
                font-size: 1.1rem;
                margin-bottom: 10px;
            }
            
            .detail-card p {
                font-size: 0.9rem;
                line-height: 1.4;
            }
            
            .status-badge {
                font-size: 0.8rem;
                padding: 6px 12px;
            }
            
            .priority-badge {
                font-size: 0.8rem;
                padding: 6px 12px;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .action-buttons .btn {
                width: 100%;
                height: 45px;
                font-size: 14px;
            }
        }

        /* Estilos para modales de confirmación y éxito */
        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modalFadeIn 0.3s ease;
            padding: 20px;
        }

        .modal-content {
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
            max-height: 90vh;
            overflow: hidden;
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #e9ecef;
            background: #f8f9fa;
            border-radius: 10px 10px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-body {
            padding: 20px;
            overflow-y: auto;
            max-height: calc(90vh - 140px);
        }

        .modal-footer {
            padding: 20px;
            border-top: 1px solid #e9ecef;
            background: #f8f9fa;
            border-radius: 0 0 10px 10px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .modal-close {
            font-size: 24px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #000;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes modalSlideIn {
            from { 
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Estilos específicos para el modal de éxito */
        #successModal .modal-content {
            text-align: center;
        }

        #successModal .modal-header {
            background: #d4edda;
            border-bottom: 1px solid #c3e6cb;
        }

        #successModal .modal-body {
            text-align: center;
        }

        #successModal .modal-footer {
            justify-content: center;
        }
        
        /* Responsive para modales en móviles */
        @media (max-width: 768px) {
            .modal {
                padding: 0;
                align-items: stretch;
            }
            
            .modal-content {
                width: 100% !important;
                max-width: 100% !important;
                height: 100vh !important;
                max-height: 100vh !important;
                margin: 0;
                border-radius: 0;
            }
            
            .pqrs-modal-content {
                width: 100% !important;
                max-width: 100% !important;
                height: 100vh !important;
                max-height: 100vh !important;
                display: flex;
                flex-direction: column;
                border-radius: 0;
            }
            
            .file-modal-content {
                width: 95% !important;
                max-width: 95% !important;
                height: 90vh !important;
                max-height: 90vh !important;
            }
            
            .modal-header {
                padding: 10px 12px;
                flex-direction: row;
                align-items: center;
                gap: 8px;
                flex-shrink: 0;
                min-height: 44px;
            }
            
            .modal-header h2, .modal-header h3 {
                font-size: 0.95rem;
                margin: 0;
                flex: 1;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .modal-header h3 i {
                font-size: 0.9rem;
                margin-right: 4px;
            }
            
            .modal-close {
                position: relative;
                top: auto;
                right: auto;
                font-size: 16px;
                padding: 4px;
                background: rgba(0,0,0,0.08);
                border-radius: 50%;
                width: 30px;
                height: 30px;
                min-width: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
            }
            
            .modal-body {
                padding: 0;
                flex: 1;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            
            .pqrs-modal-content .modal-body {
                padding: 0 !important;
                overflow: hidden;
                margin: 0;
            }
            
            .pqrs-editor-full {
                margin: 0;
                padding: 0;
            }
            
            .modal-footer {
                padding: 8px;
                flex-direction: row;
                gap: 8px;
                flex-shrink: 0;
                min-height: 44px;
            }
            
            .modal-footer .btn {
                flex: 1;
                height: 38px;
                font-size: 0.8rem;
                padding: 8px 12px;
                min-height: 38px;
            }
            
            .modal-footer .btn i {
                font-size: 0.75rem;
                margin-right: 4px;
            }
            
            .pqrs-editor-full {
                height: 100%;
                display: flex;
                flex-direction: column;
            }
            
            .editor-toolbar {
                padding: 4px;
                gap: 2px;
                flex-wrap: wrap;
                flex-shrink: 0;
                background: #f8f9fa;
                border-bottom: 1px solid #dee2e6;
                justify-content: flex-start;
                overflow-x: auto;
                overflow-y: hidden;
                white-space: nowrap;
            }
            
            .editor-btn {
                padding: 4px 6px;
                min-width: 28px;
                height: 28px;
                font-size: 0.7rem;
                border-radius: 4px;
                flex-shrink: 0;
            }
            
            .editor-btn i {
                font-size: 0.7rem;
            }
            
            .editor-separator {
                width: 1px;
                height: 20px;
                background: #dee2e6;
                margin: 0 2px;
                flex-shrink: 0;
            }
            
            .editor-content {
                flex: 1;
                min-height: 0;
                font-size: 0.75rem !important;
                padding: 6px 8px;
                overflow-y: auto;
                line-height: 1.3;
                -webkit-overflow-scrolling: touch;
            }
            
            /* Estilos para el contenido del editor en móviles */
            .editor-content * {
                font-size: 0.75rem !important;
                line-height: 1.3 !important;
            }
            
            .editor-content p {
                margin: 4px 0 !important;
            }
            
            .editor-content h1 {
                font-size: 1rem !important;
                margin: 6px 0 !important;
            }
            
            .editor-content h2 {
                font-size: 0.9rem !important;
                margin: 5px 0 !important;
            }
            
            .editor-content h3 {
                font-size: 0.85rem !important;
                margin: 4px 0 !important;
            }
            
            .editor-content ul, .editor-content ol {
                margin: 4px 0 !important;
                padding-left: 20px !important;
            }
            
            .editor-content li {
                margin: 2px 0 !important;
            }
            
            .editor-content:empty:before {
                font-size: 0.75rem !important;
            }
        }
        
        @media (max-width: 480px) {
            .modal {
                padding: 2px;
            }
            
            .modal-content {
                width: 100% !important;
                max-width: 100% !important;
                height: 100vh !important;
                max-height: 100vh !important;
                border-radius: 0;
            }
            
            .pqrs-modal-content {
                width: 100% !important;
                max-width: 100% !important;
                height: 100vh !important;
                max-height: 100vh !important;
                border-radius: 0;
            }
            
            .modal-header {
                padding: 8px 10px;
                min-height: 40px;
            }
            
            .modal-header h2, .modal-header h3 {
                font-size: 0.9rem;
            }
            
            .modal-header h3 i {
                font-size: 0.85rem;
            }
            
            .modal-close {
                width: 28px;
                height: 28px;
                min-width: 28px;
                font-size: 14px;
            }
            
            .modal-body {
                padding: 6px;
            }
            
            .pqrs-modal-content .modal-body {
                padding: 0;
            }
            
            .modal-footer {
                padding: 6px;
                min-height: 40px;
            }
            
            .modal-footer .btn {
                height: 36px;
                font-size: 0.75rem;
                padding: 6px 10px;
                min-height: 36px;
            }
            
            .modal-footer .btn i {
                font-size: 0.7rem;
            }
            
            .editor-toolbar {
                padding: 3px;
                gap: 1px;
            }
            
            .editor-btn {
                padding: 3px 5px;
                min-width: 26px;
                height: 26px;
                font-size: 0.65rem;
            }
            
            .editor-btn i {
                font-size: 0.65rem;
            }
            
            .editor-separator {
                height: 18px;
                margin: 0 1px;
            }
            
            .editor-content {
                font-size: 0.7rem !important;
                padding: 5px 6px;
                line-height: 1.25;
                -webkit-overflow-scrolling: touch;
            }
            
            /* Estilos para el contenido del editor en móviles pequeños */
            .editor-content * {
                font-size: 0.7rem !important;
                line-height: 1.25 !important;
            }
            
            .editor-content p {
                margin: 3px 0 !important;
            }
            
            .editor-content h1 {
                font-size: 0.95rem !important;
                margin: 5px 0 !important;
            }
            
            .editor-content h2 {
                font-size: 0.85rem !important;
                margin: 4px 0 !important;
            }
            
            .editor-content h3 {
                font-size: 0.8rem !important;
                margin: 3px 0 !important;
            }
            
            .editor-content ul, .editor-content ol {
                margin: 3px 0 !important;
                padding-left: 18px !important;
            }
            
            .editor-content li {
                margin: 1px 0 !important;
            }
            
            .editor-content:empty:before {
                font-size: 0.7rem !important;
            }
        }
        
        /* Estilos para tablas responsive */
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
            background: white;
        }
        
        th, td {
            padding: 12px 8px;
            text-align: left;
            border-bottom: 1px solid #e9ecef;
            vertical-align: top;
        }
        
        th {
            background: #f8f9fa;
            font-weight: 600;
            color: #495057;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        td {
            font-size: 0.9rem;
            line-height: 1.4;
        }
        
        tr:hover {
            background: #f8f9fa;
        }
        
        /* Responsive para tablas en móviles */
        @media (max-width: 768px) {
            .table-responsive {
                margin: 0 -15px;
                border-radius: 0;
            }
            
            table {
                font-size: 0.8rem;
                min-width: 600px; /* Ancho mínimo para scroll horizontal */
            }
            
            th, td {
                padding: 8px 6px;
                white-space: nowrap;
            }
            
            th {
                font-size: 0.75rem;
                position: sticky;
                top: 0;
                z-index: 10;
            }
            
            /* Para tablas de datos en modales */
            .modal-body table {
                font-size: 0.75rem;
                min-width: 500px;
            }
            
            .modal-body th, .modal-body td {
                padding: 6px 4px;
            }
        }
        
        @media (max-width: 480px) {
            table {
                font-size: 0.7rem;
                min-width: 500px;
            }
            
            th, td {
                padding: 6px 4px;
            }
            
            .modal-body table {
                font-size: 0.7rem;
                min-width: 400px;
            }
        }
        
        /* Estilos para cards en lugar de tablas en móviles muy pequeños */
        @media (max-width: 600px) {
            .table-mobile-cards {
                display: none;
            }
            
            .table-mobile-cards .card {
                background: white;
                border: 1px solid #e9ecef;
                border-radius: 8px;
                margin-bottom: 15px;
                padding: 15px;
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            
            .table-mobile-cards .card-header {
                font-weight: 600;
                color: #495057;
                margin-bottom: 10px;
                padding-bottom: 8px;
                border-bottom: 1px solid #e9ecef;
            }
            
            .table-mobile-cards .card-row {
                display: flex;
                justify-content: space-between;
                margin-bottom: 8px;
                padding: 4px 0;
            }
            
            .table-mobile-cards .card-label {
                font-weight: 500;
                color: #6c757d;
                font-size: 0.85rem;
            }
            
            .table-mobile-cards .card-value {
                color: #495057;
                font-size: 0.85rem;
                text-align: right;
                flex: 1;
                margin-left: 10px;
            }
        }
        
        /* Mostrar tabla normal en pantallas grandes */
        @media (min-width: 601px) {
            .table-mobile-cards {
                display: none;
            }
        }
        
        /* Mejoras adicionales de tipografía y espaciado para móviles */
        @media (max-width: 768px) {
            /* Prevenir recorte de texto en todos los elementos */
            * {
                word-wrap: break-word;
                overflow-wrap: break-word;
                hyphens: auto;
            }
            
            /* Asegurar que los contenedores no recorten el contenido */
            .containertheme, .main-content, .content-section, .form-section {
                overflow-x: hidden;
                word-wrap: break-word;
            }
            
            /* Prevenir recorte en elementos flex */
            .nav-buttons, .search-title, .page-title, .section-title {
                flex-wrap: wrap;
                word-wrap: break-word;
            }
            /* Mejorar legibilidad del texto */
            body {
                font-size: 16px;
                line-height: 1.6;
            }
            
            h1, h2, h3, h4, h5, h6 {
                line-height: 1.2;
                margin-bottom: 12px;
            }
            
            h1 {
                font-size: 1.5rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            h2 {
                font-size: 1.3rem;
                line-height: 1.1;
            }
            
            h3 {
                font-size: 1.1rem;
                line-height: 1.1;
            }
            
            h4 {
                font-size: 1rem;
                line-height: 1.1;
            }
            
            h5 {
                font-size: 0.9rem;
                line-height: 1.1;
            }
            
            h6 {
                font-size: 0.85rem;
                line-height: 1.1;
            }
            
            p {
                margin-bottom: 15px;
                line-height: 1.6;
            }
            
            /* Mejorar espaciado de secciones */
            .section {
                margin-bottom: 30px;
            }
            
            .card {
                margin-bottom: 20px;
                padding: 20px;
            }
            
            /* Mejorar botones para touch */
            .btn, .nav-btn {
                min-height: 44px; /* Tamaño mínimo recomendado para touch */
                touch-action: manipulation; /* Mejora la respuesta táctil */
            }
            
            /* Mejorar inputs para touch */
            .form-input, .form-select, .form-textarea {
                min-height: 44px;
                touch-action: manipulation;
            }
            
            /* Mejorar espaciado de listas */
            ul, ol {
                padding-left: 20px;
                margin-bottom: 15px;
            }
            
            li {
                margin-bottom: 8px;
                line-height: 1.5;
            }
            
            /* Mejorar iconos */
            .fas, .far, .fab {
                font-size: 1.1em;
            }
            
            /* Mejorar badges y etiquetas */
            .badge, .status-badge, .priority-badge {
                font-size: 0.8rem;
                padding: 6px 10px;
                border-radius: 12px;
            }
            
            /* Mejorar espaciado de formularios */
            .form-group {
                margin-bottom: 20px;
            }
            
            .form-label {
                margin-bottom: 8px;
                font-weight: 600;
            }
            
            /* Mejorar scroll suave */
            .modal-body, .pqrs-details, .search-results {
                -webkit-overflow-scrolling: touch;
                scroll-behavior: smooth;
            }
            
            /* Mejorar visibilidad de enlaces */
            a {
                color: #1e3c72;
                text-decoration: underline;
            }
            
            a:hover {
                color: #00A651;
            }
            
            /* Mejorar contraste para mejor legibilidad */
            .text-muted {
                color: #6c757d !important;
            }
            
            .text-primary {
                color: #1e3c72 !important;
            }
            
            .text-success {
                color: #00A651 !important;
            }
        }
        
        @media (max-width: 480px) {
            /* Ajustes adicionales para móviles muy pequeños */
            body {
                font-size: 15px;
            }
            
            /* Prevenir recorte en móviles muy pequeños */
            * {
                word-wrap: break-word;
                overflow-wrap: break-word;
                hyphens: auto;
            }
            
            /* Asegurar que todos los contenedores permitan el wrap */
            .containertheme, .main-content, .content-section, .form-section {
                overflow-x: hidden;
                word-wrap: break-word;
                max-width: 100%;
            }
            
            /* Forzar wrap en elementos críticos */
            h1, h2, h3, h4, h5, h6, .nav-btn, .page-title, .section-title, .search-title {
                word-wrap: break-word;
                overflow-wrap: break-word;
                hyphens: auto;
                max-width: 100%;
            }
            
            h1 {
                font-size: 1.3rem;
                line-height: 1.1;
            }
            
            h2 {
                font-size: 1.2rem;
                line-height: 1.1;
            }
            
            h3 {
                font-size: 1.1rem;
                line-height: 1.1;
            }
            
            h4 {
                font-size: 1rem;
                line-height: 1.1;
            }
            
            h5 {
                font-size: 0.9rem;
                line-height: 1.1;
            }
            
            h6 {
                font-size: 0.85rem;
                line-height: 1.1;
            }
            
            .card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .section {
                margin-bottom: 25px;
            }
            
            /* Ajustar espaciado de elementos pequeños */
            .badge, .status-badge, .priority-badge {
                font-size: 0.75rem;
                padding: 4px 8px;
            }
            
            /* Mejorar botones pequeños */
            .btn-sm {
                min-height: 36px;
                font-size: 0.85rem;
                padding: 8px 12px;
            }
        }
        
        /* Mejoras de accesibilidad y usabilidad */
        @media (max-width: 768px) {
            /* Mejorar foco para navegación por teclado */
            .btn:focus, .nav-btn:focus, .form-input:focus, .form-select:focus {
                outline: 3px solid #00A651;
                outline-offset: 2px;
            }
            
            /* Mejorar contraste de elementos interactivos */
            .btn-primary {
                background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
                border: 2px solid #1e3c72;
            }
            
            .btn-secondary {
                background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
                border: 2px solid #6c757d;
            }
            
            /* Mejorar visibilidad de estados */
            .btn:active, .nav-btn:active {
                transform: scale(0.98);
            }
            
            /* Mejorar espaciado de elementos agrupados */
            .btn-group {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }
            
            .btn-group .btn {
                width: 100%;
            }
        }

        #pqrsSaveIndicator {
            transition: opacity 0.3s ease;
        }


        /* ============================================
           FIXES RESPONSIVE MÓVIL
           ============================================ */

        /* Fix 1: form-actions apila botones en móvil */
        @media (max-width: 480px) {
            .form-actions {
                flex-direction: column;
                gap: 12px;
                padding: 20px 15px;
            }
            .form-actions .btn-secondary,
            .form-actions .btn-primary {
                min-width: 100%;
                width: 100%;
            }
        }

        /* Fix 2: evidencia-item responsive */
        .evidencia-item {
            width: calc(33.333% - 8px);
            min-width: 200px;
        }
        @media (max-width: 768px) {
            .evidencia-item {
                width: calc(50% - 6px);
                min-width: 0;
            }
        }
        @media (max-width: 480px) {
            .evidencia-item {
                width: 100%;
                min-width: 0;
            }
        }

        /* Fix 3: client-validation apila input y botón en móvil */
        .client-validation-row {
            display: flex;
            gap: 10px;
        }
        @media (max-width: 480px) {
            .client-validation-row {
                flex-direction: column;
            }
            .client-validation-row .btn-primary {
                width: 100%;
            }
        }

        /* Fix 4: hints con ícono alineados arriba (para textos largos que envuelven) */
        .search-section .form-group small {
            align-items: flex-start !important;
        }

        /* Fix 5: botón CONSULTAR ESTADO centrado vertical (align-self supera al align-items: end del grid) */
        .search-form .btn-search {
            align-self: center;
        }