
         * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            line-height: 1.6;
        }

        .container_den {
            max-width: 1200px;
            margin: 10px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        header {
            background-color: #004A81;
            color: #fff;
            padding: 20px 0;
            text-align: center;
            margin-bottom: 30px;
            border-radius: 8px 8px 0 0;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .header-content img {
            width: 80px;
            height: 80px;
            margin-right: 20px;
            border-radius: 50%;
            background-color: #fff;
            padding: 10px;
        }

        .header-content h1 {
            margin: 0;
            font-size: 1.8rem;
        }

        .form-section {
            margin-bottom: 30px;
            padding: 20px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            background-color: #fafafa;
        }

        .form-section h2 {
            color: #004A81;
            margin-top: 0;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #004A81;
            font-size: 1.4rem;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #333;
            font-size: 0.9rem;
        }

        input[type="text"],
        input[type="email"],
        input[type="datetime-local"],
        input[type="file"],
        input[type="date"],
        input[type="number"],
        input[type="url"],
        textarea,
        select {
            font-family: Arial, sans-serif;
            width: 100%;
            margin-bottom: 15px;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 14px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #0364a5;
            box-shadow: 0 0 5px rgba(3, 100, 165, 0.3);
        }

        textarea {
            height: 100px;
            resize: vertical;
        }

        button {
            background-color: #0364a5;
            color: #fff;
            border: none;
            cursor: pointer;
            padding: 12px 24px;
            border-radius: 5px;
            font-size: 14px;
            font-weight: bold;
            transition: background-color 0.3s ease, transform 0.2s ease;
            margin-right: 10px;
            margin-bottom: 10px;
        }

        button:hover {
            background-color: #004A81;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: #6c757d;
        }

        .btn-secondary:hover {
            background-color: #545b62;
        }

        .btn-success {
            background-color: #28a745;
        }

        .btn-success:hover {
            background-color: #218838;
        }

        .diagnostic-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            font-size: 0.9rem;
            overflow-x: auto;
            display: block;
            white-space: nowrap;
        }

        .diagnostic-table thead {
            background-color: #004A81;
            color: white;
        }

        .diagnostic-table th,
        .diagnostic-table td {
            padding: 12px 8px;
            text-align: left;
            border: 1px solid #ddd;
            min-width: 120px;
        }

        .diagnostic-table tbody tr:nth-child(even) {
            background-color: #f8f9fa;
        }

        .diagnostic-table tbody tr:hover {
            background-color: #e9ecef;
        }

        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            min-width: 150px;
        }

        .checkbox-item input[type="radio"] {
            margin-right: 8px;
            width: auto;
            margin-bottom: 0;
        }

        .photo-upload {
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            margin-bottom: 15px;
            transition: border-color 0.3s ease;
        }

        .photo-upload:hover {
            border-color: #0364a5;
        }
        
        .photo-upload {
            border: 2px dashed #667eea;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            background: #f8f9ff;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .photo-upload:hover {
            background: #e6ebff;
            border-color: #5a67d8;
        }

        .photo-upload input[type="file"] {
            display: none;
        }

        .photo-upload-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .photo-upload-icon {
            font-size: 2rem;
            color: #667eea;
        }

        .photo-preview {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .photo-preview img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            border: 2px solid #e9ecef;
        }


        .photo-preview {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .photo-preview img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 5px;
            border: 1px solid #ddd;
        }

        .observations-section {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 5px;
            padding: 15px;
            margin-top: 20px;
        }

        .observations-section h3 {
            color: #856404;
            margin-top: 0;
        }

        .button-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
        }

        /* Responsive Design */
        @media screen and (max-width: 768px) {
            .container_den {
                margin: 5px;
                padding: 15px;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .header-content img {
                margin-right: 0;
                margin-bottom: 15px;
            }

            .header-content h1 {
                font-size: 1.5rem;
            }

            .form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .form-group-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .diagnostic-table {
                font-size: 0.8rem;
            }

            .diagnostic-table th,
            .diagnostic-table td {
                padding: 8px 5px;
                min-width: 100px;
            }

            .checkbox-group {
                flex-direction: column;
                gap: 10px;
            }

            .checkbox-item {
                min-width: auto;
            }

            .button-group {
                flex-direction: column;
                align-items: stretch;
            }

            .button-group button {
                margin-right: 0;
                width: 100%;
            }
        }

        @media screen and (max-width: 480px) {
            .container_den {
                margin: 2px;
                padding: 10px;
            }

            .form-section {
                padding: 15px;
            }

            .form-section h2 {
                font-size: 1.2rem;
            }

            input,
            textarea,
            select,
            button {
                padding: 10px;
                font-size: 16px;
                /* Evita zoom en iOS */
            }

            .diagnostic-table {
                display: block;
                overflow-x: scroll;
                white-space: nowrap;
            }

            .photo-preview img {
                width: 80px;
                height: 80px;
            }
        }

        /* Utilidades */
        .text-center {
            text-align: center;
        }

        .text-right {
            text-align: right;
        }

        .mb-0 {
            margin-bottom: 0;
        }

        .mt-20 {
            margin-top: 20px;
        }

        .hidden {
            display: none;
        }

        .required {
            color: red;
        }

        /* Animaciones */
        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Notificaciones (manteniendo tu estilo original) */
        .ui-pnotify-icon {
            font-size: 2.5rem;
        }

        .ui-pnotify-title {
            font-size: 1rem;
        }

        .ui-pnotify .notification .ui-pnotify-text {
            font-size: .8rem;
        }

        .notification-success {
            background: #2ca92c;
            color: white;
        }

        .notification-danger {
            background: rgb(233, 12, 12);
            color: white;
        }

        .notification-warning {
            background: rgba(237, 156, 40, 0.95);
            color: white;
        }

        .notification-info {
            background: #29d5f8;
            color: white;
        }
 